Пример #1
0
 public static void Exit()
 {
     Game1.Exit();
 }
Пример #2
0
 private void button1_Click(object sender, EventArgs e)
 {
     this.Close();
     Game1.Exit();
 }