Пример #1
0
 private void btnSaleReturn_Click(object sender, EventArgs e)
 {
     try
     {
         AddSaleReturn addSaleReturn = new AddSaleReturn();
         addSaleReturn.Show();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
Пример #2
0
 private void home_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.Modifiers == Keys.Control && e.KeyCode == Keys.N)
     {
         AddNewRecordsForm frm = new AddNewRecordsForm();
         frm.Show();
     }
     if (e.Modifiers == Keys.Control && e.KeyCode == Keys.S)
     {
         AddSaleReturn addSaleReturn = new AddSaleReturn();
         addSaleReturn.Show();
     }
     if (e.Modifiers == Keys.Control && e.KeyCode == Keys.B)
     {
         AddBorrowForm frm = new AddBorrowForm();
         frm.Show();
     }
 }