Example #1
0
 private void btnDelPath_Click(object sender, EventArgs e)
 //Кнопка Удалить путь
 {
     lblGamePath.Text = Sepo.VPathGame + Sepo.VNotExist;
     tbGamePath.Text  = Sepo.DefGamePath;
     Sepo.CreateParamData("GamePath", Sepo.DefGamePath);
     SetBoolStatus(true, false, false, true);
 }
Example #2
0
 private void btnAddPath_Click(object sender, EventArgs e)
 //Кнопка Добавить путь
 {
     if (lblGamePath.Text.Contains(Sepo.VNotExist) && !File.Exists(tbGamePath.Text))
     {
         OpenDir();
     }
     else if ((lblGamePath.Text.Contains(Sepo.VNotExist) && File.Exists(tbGamePath.Text)) ||
              !lblGamePath.Text.Contains(tbGamePath.Text))
     {
         Sepo.CreateParamData("GamePath", tbGamePath.Text);
         lblGamePath.Text = Sepo.VPathGame + tbGamePath.Text;
         SetBoolStatus(false, true, true, false);
     }
 }
Example #3
0
 private void btnSavePause_Click(object sender, EventArgs e)
 //Кнопка Сохранить паузы
 {
     if (tbStartPause.Text.Length == 0 ||
         tbLoginPause.Text.Length == 0 ||
         tbClosePause.Text.Length == 0)
     {
         MessageBox.Show("Поля не должны быть пустыми.", "Sepo");
     }
     else
     {
         Sepo.CreateParamData("PauseStart", tbStartPause.Text);
         Sepo.CreateParamData("PauseLogin", tbLoginPause.Text);
         Sepo.CreateParamData("PauseClose", tbClosePause.Text);
         btnSavePause.Enabled = false;
     }
     Sepo.CreateAndReadPauseTime();
 }
Example #4
0
 private void cbSaveCheckedAccs_CheckedChanged(object sender, EventArgs e)
 {
     Sepo.CreateParamData("SaveChoise", Convert.ToBoolean(cbSaveCheckedAccs.CheckState).ToString());
 }