Пример #1
0
 private void undoToolStripMenuItem_Click(object sender, EventArgs e)
 {
     es           = new Estimates();
     es.MdiParent = this;
     es.Dock      = DockStyle.Fill;
     es.Show();
 }
Пример #2
0
 private void Estimates_Deactivate(object sender, EventArgs e)
 {
     if (textBox2.Text != "#" || textBox3.Text != "0" || textBox5.Text != "0" || textBox7.Text != "0" || textBox8.Text != "0")
     {
         DialogResult result = MessageBox.Show("Do you want to save the record ?", "caption", MessageBoxButtons.YesNo);
         if (result == DialogResult.Yes)
         {
             save1();
         }
         else if (result == DialogResult.No)
         {
             Estimates ep = new Estimates();
             ep.Close();
         }
     }
 }
Пример #3
0
 void es_FormClosed(object sender, FormClosedEventArgs e)
 {
     es = null;
 }