Ejemplo n.º 1
0
 private void redoToolStripMenuItem_Click_1(object sender, EventArgs e)
 {
     so           = new salesOrder();
     so.MdiParent = this;
     so.Dock      = DockStyle.Fill;
     so.Show();
 }
Ejemplo n.º 2
0
 private void salesOrder_Deactivate(object sender, EventArgs e)
 {
     if (textBox2.Text != "#" || textBox3.Text != "0" || textBox5.Text != "0" || textBox7.Text != "0" || textBox8.Text != "0" || textBox13.Text != "0" || textBox14.Text != "#")
     {
         DialogResult result = MessageBox.Show("Do you want to save the record ?", "caption", MessageBoxButtons.YesNo);
         if (result == DialogResult.Yes)
         {
             save1();
         }
         else if (result == DialogResult.No)
         {
             salesOrder ep = new salesOrder();
             ep.Close();
         }
     }
 }