Exemplo n.º 1
0
 private void btnAddRecords_Click_1(object sender, EventArgs e)
 {
     try
     {
         AddNewRecordsForm frm = new AddNewRecordsForm();
         frm.Show();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
Exemplo n.º 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();
     }
 }