Beispiel #1
0
 private void TestManager_FormClosing(object sender, FormClosingEventArgs e)
 {
     if (this.rezult == TestManager.DialogRezult.None)
     {
         this.rezult = TestManager.DialogRezult.Cancel;
     }
     Save();
 }
Beispiel #2
0
 private void открытьToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (listBox1.SelectedItems.Count > 0)
     {
         this.rezult = TestManager.DialogRezult.Open;
         SaveAndClose();
     }
 }
Beispiel #3
0
 private void button2_Click(object sender, EventArgs e)
 {
     this.rezult = TestManager.DialogRezult.Cancel;
     Close();
 }
Beispiel #4
0
 private void button1_Click(object sender, EventArgs e)
 {
     this.rezult = TestManager.DialogRezult.Select;
     SaveAndClose();
 }
Beispiel #5
0
 private void listBox1_DoubleClick(object sender, EventArgs e)
 {
     this.rezult = TestManager.DialogRezult.Select;
     SaveAndClose();
 }
Beispiel #6
0
 private void выбратьToolStripMenuItem_Click(object sender, EventArgs e)
 {
     this.rezult = TestManager.DialogRezult.Select;
     SaveAndClose();
 }