Example #1
0
 private void Form1_Load(object sender, EventArgs e)
 {
     //做一些初始化的工作
     //在配置文件中初始化文本编辑器路径
     uePath = INIHelper.Read("TXTEDIT", "uePath", iniFile);
     if (uePath == "123")
     {
         MyDialog dialog = new MyDialog("and the UE exe path");
         if (dialog.ShowDialog(this) == DialogResult.OK)
         {
             Console.WriteLine(dialog.result);
             INIHelper.Write("TXTEDIT", "uePath", dialog.result, iniFile);
             uePath = INIHelper.Read("TXTEDIT", "uePath", iniFile);
         }
     }
     //MessageBox.Show(uePath, "UE", MessageBoxButtons.OK, MessageBoxIcon.Warning);
     Console.WriteLine("uePath=" + uePath);
 }
 private void Form1_Load(object sender, EventArgs e)
 {
     //做一些初始化的工作
     //在配置文件中初始化文本编辑器路径
     uePath = INIHelper.Read("TXTEDIT", "uePath", iniFile);
     if (uePath == "123")
     {
         MyDialog dialog = new MyDialog("and the UE exe path");
         if(dialog.ShowDialog(this) == DialogResult.OK)
         {
             Console.WriteLine(dialog.result);
             INIHelper.Write("TXTEDIT", "uePath", dialog.result, iniFile);
             uePath = INIHelper.Read("TXTEDIT", "uePath", iniFile);
         }
     }
     //MessageBox.Show(uePath, "UE", MessageBoxButtons.OK, MessageBoxIcon.Warning);
     Console.WriteLine("uePath=" + uePath);
 }