Ejemplo n.º 1
0
        private void OptionAndSettingsButton_Click(object sender, EventArgs e)
        {
            ConfigForm2 cf = new ConfigForm2();

            cf.Show();

            // リロードする
            string filePah = _defaultDirectory + "\\" + SettingFileList.Text + ".xml";

            if (File.Exists(filePah))
            {
                _entity = Serializer.Load <ConfigEntity>(filePah);
            }
        }
Ejemplo n.º 2
0
 public void LoadControl()
 {
     if (System.IO.File.Exists(Application.StartupPath + "\\Settings.ini"))
     {
         settingsini = new Classes.INIObject(Application.StartupPath + "\\Settings.ini");
         ElsDir      = settingsini.Read("Settings.ini", "ElsDir");
         if (ElsDir.Length > 0)
         {
             //The Setting actually exists and is not a empty String so we do not need to open the dialog again.
         }
         else
         {
             ConfigForm2?.Invoke(this, new EventArgs());
         }
     }
     else
     {
         ConfigForm2?.Invoke(this, new EventArgs());
     }
     timer5.Enabled = true;
 }