Exemplo n.º 1
0
 private void toolStripLabel5_Click(object sender, EventArgs e)
 {
     using (SettingsForm sf = new SettingsForm(Global.DefaultGameSettings, true))
     {
         if(sf.ShowDialog() == DialogResult.OK)
         {
             Global.DefaultGameSettings = sf.ToDefaultSettings();
             WriteToFile("Default settings changed");
             SaveDefaultSettings();
         }
     }
 }
Exemplo n.º 2
0
 private void toolStripLabel3_Click(object sender, EventArgs e)
 {
     using (MultiAddForm maf = new MultiAddForm())
     {
         if (maf.ShowDialog() == System.Windows.Forms.DialogResult.OK)
         {
             using (SettingsForm sf = new SettingsForm(Global.DefaultGameSettings))
             {
                 if (sf.ShowDialog() == System.Windows.Forms.DialogResult.OK)
                 {
                     for (int i = 0; i < maf.SpawnAmmount; i++)
                         AddGamePanel(new gamePanel(sf));
                 }
             }
         }
     }
 }