コード例 #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;
 }