Commit f4b5b84e authored by wangjunqiang's avatar wangjunqiang

修复方法窗口问题

parent b12f3fbe
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
this.closebth = new System.Windows.Forms.Button(); this.closebth = new System.Windows.Forms.Button();
this.mixbth = new System.Windows.Forms.Button(); this.mixbth = new System.Windows.Forms.Button();
this.panelmain = new System.Windows.Forms.Panel(); this.panelmain = new System.Windows.Forms.Panel();
this.tabmain = new GcDevicePc.ConfigMethod.TabContorlEx(this.components); this.tabmain = new GcDevicePc.ConfigMethod.TabContorlEx();
this.tabPage1 = new System.Windows.Forms.TabPage(); this.tabPage1 = new System.Windows.Forms.TabPage();
this.tabPage2 = new System.Windows.Forms.TabPage(); this.tabPage2 = new System.Windows.Forms.TabPage();
this.tabPage3 = new System.Windows.Forms.TabPage(); this.tabPage3 = new System.Windows.Forms.TabPage();
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
this.tabPage6 = new System.Windows.Forms.TabPage(); this.tabPage6 = new System.Windows.Forms.TabPage();
this.tabPage7 = new System.Windows.Forms.TabPage(); this.tabPage7 = new System.Windows.Forms.TabPage();
this.tabPage8 = new System.Windows.Forms.TabPage(); this.tabPage8 = new System.Windows.Forms.TabPage();
this.methodimages = new System.Windows.Forms.ImageList(this.components); this.methodimages = new System.Windows.Forms.ImageList();
this.panelright = new System.Windows.Forms.Panel(); this.panelright = new System.Windows.Forms.Panel();
this.savebth = new System.Windows.Forms.Button(); this.savebth = new System.Windows.Forms.Button();
this.saveasbth = new System.Windows.Forms.Button(); this.saveasbth = new System.Windows.Forms.Button();
......
...@@ -1662,7 +1662,7 @@ namespace GcDevicePc ...@@ -1662,7 +1662,7 @@ namespace GcDevicePc
OpenFileDialog fileDlg = new OpenFileDialog(); OpenFileDialog fileDlg = new OpenFileDialog();
fileDlg.Multiselect = false; fileDlg.Multiselect = false;
fileDlg.InitialDirectory = globaldata.m_pcbuffer.gcpcinfo.pcfolderinfo.MethodFolder; fileDlg.InitialDirectory = globaldata.m_pcbuffer.gcpcinfo.pcfolderinfo.MethodFolder;
fileDlg.RestoreDirectory = true; fileDlg.RestoreDirectory = false;
fileDlg.Title = "请选择方法文件"; fileDlg.Title = "请选择方法文件";
fileDlg.Filter = "配置文件(*.ini)|*.ini"; fileDlg.Filter = "配置文件(*.ini)|*.ini";
if (fileDlg.ShowDialog() == DialogResult.OK) if (fileDlg.ShowDialog() == DialogResult.OK)
......
...@@ -173,7 +173,6 @@ namespace GcDevicePc ...@@ -173,7 +173,6 @@ namespace GcDevicePc
fileDlg.RestoreDirectory = true; fileDlg.RestoreDirectory = true;
fileDlg.Title = "请选择方法文件"; fileDlg.Title = "请选择方法文件";
fileDlg.Filter = "更新程序(*.*)|*.*"; fileDlg.Filter = "更新程序(*.*)|*.*";
if (fileDlg.ShowDialog() == DialogResult.OK) if (fileDlg.ShowDialog() == DialogResult.OK)
{ {
file = fileDlg.FileName; file = fileDlg.FileName;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment