Пример #1
0
 private void picSettings_Click(object sender, EventArgs e)
 {
     if (SettingsForm == null)
     {
         SettingsForm = new FormSettings(this);
         SettingsForm.Show();
     }
     else
     {
         SettingsForm.Activate();
     }
 }
Пример #2
0
 private void picSettings_Click(object sender, EventArgs e)
 {
     if (SettingsForm == null)
     {
         SettingsForm = new FormSettings(this, player.BasePlayer);
         SettingsForm.StartPosition = FormStartPosition.CenterScreen;
         SettingsForm.Show();
     }
     else
     {
         SettingsForm.Activate();
     }
 }