Beispiel #1
0
 private void retainerinvoice_Click(object sender, EventArgs e)
 {
     ric           = new RetainerInvoices();
     ric.MdiParent = this;
     ric.Dock      = DockStyle.Fill;
     ric.Show();
 }
Beispiel #2
0
 private void RetainerInvoices_Deactivate(object sender, EventArgs e)
 {
     if (textBox2.Text != "#" || textBox11.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)
         {
             RetainerInvoices ep = new RetainerInvoices();
             ep.Close();
         }
     }
 }