Example #1
0
 private void Form1_FormClosing(object sender, FormClosingEventArgs e)
 {
     if (MessageBox.Show("Сохранить результаты?", "", MessageBoxButtons.YesNo) == DialogResult.Yes)
     {
         nw.SaveState();
     }
 }
Example #2
0
 private void Form1_FormClosing(object sender, FormClosingEventArgs e)
 {
     nw.SaveState();
 }