private void btnBankDeposit_Click(object sender, EventArgs e) { try { frmBankDeposit frmc = new frmBankDeposit(); frmc.ShowDialog(); } catch (Exception ex) { MessageBox.Show(ex.Message); } }
private void rbpBankTransaction_Click(object sender, EventArgs e) { frmBankDeposit frm = new frmBankDeposit(); frm.ShowDialog(); }
private void frmNewIndex_KeyDown(object sender, KeyEventArgs e) { try { if (e.KeyCode == Keys.Escape) { try { this.Close(); } catch (Exception ex) { MessageBox.Show(ex.Message); } } if (e.KeyCode == Keys.F1) { try { frmCustomerDetails frmc = new frmCustomerDetails(); frmc.ShowDialog(); } catch (Exception ex) { MessageBox.Show(ex.Message); } } if (e.KeyCode == Keys.F2) { try { frmDealerMaster frmc = new frmDealerMaster(); frmc.ShowDialog(); } catch (Exception ex) { MessageBox.Show(ex.Message); } } if (e.KeyCode == Keys.F3) { try { frmItemDetails frmc = new frmItemDetails(); frmc.ShowDialog(); } catch (Exception ex) { MessageBox.Show(ex.Message); } } if (e.KeyCode == Keys.F4) { try { frmCompany frmc = new frmCompany(); frmc.ShowDialog(); } catch (Exception ex) { MessageBox.Show(ex.Message); } } if (e.KeyCode == Keys.F5) { try { btnPurchaseOrder_Click(sender, e); } catch (Exception ex) { MessageBox.Show(ex.Message); } } if (e.KeyCode == Keys.F6) { try { frmPurchaseInvoice frmc = new frmPurchaseInvoice(); frmc.ShowDialog(); } catch (Exception ex) { MessageBox.Show(ex.Message); } } if (e.KeyCode == Keys.F7) { try { btnPurchaseChalan_Click(sender, e); } catch (Exception ex) { MessageBox.Show(ex.Message); } } if (e.KeyCode == Keys.F8) { try { frmPurchaseReturn frmc = new frmPurchaseReturn(); frmc.ShowDialog(); } catch (Exception ex) { MessageBox.Show(ex.Message); } } if (e.KeyCode == Keys.F8 && e.Alt) { try { frmVoucherPayment frmc = new frmVoucherPayment(); frmc.ShowDialog(); } catch (Exception ex) { MessageBox.Show(ex.Message); } } if (e.KeyCode == Keys.F9 && e.Alt) { try { frmVoucherRecipt frmc = new frmVoucherRecipt(); frmc.ShowDialog(); } catch (Exception ex) { MessageBox.Show(ex.Message); } } if (e.KeyCode == Keys.F9) { try { frmSaleInvoive frmc = new frmSaleInvoive(); frmc.ShowDialog(); } catch (Exception ex) { MessageBox.Show(ex.Message); } } if (e.KeyCode == Keys.F10) { try { FrmSaleReturn frmc = new FrmSaleReturn(); frmc.ShowDialog(); } catch (Exception ex) { MessageBox.Show(ex.Message); } } if (e.KeyCode == Keys.F11) { try { frmSaleChallan frmc = new frmSaleChallan(); frmc.ShowDialog(); } catch (Exception ex) { MessageBox.Show(ex.Message); } } if (e.KeyCode == Keys.F11 && e.Alt) { try { frmSalesOrder frmc = new frmSalesOrder(); frmc.ShowDialog(); } catch (Exception ex) { MessageBox.Show(ex.Message); } } if (e.KeyCode == Keys.F12) { try { frmStockRegister frmc = new frmStockRegister(); frmc.ShowDialog(); } catch (Exception ex) { MessageBox.Show(ex.Message); } } if (e.KeyCode == Keys.E && e.Control) { try { frmExpenses frmc = new frmExpenses(); frmc.ShowDialog(); } catch (Exception ex) { MessageBox.Show(ex.Message); } } if (e.KeyCode == Keys.B && e.Control) { try { frmBankDeposit frmc = new frmBankDeposit(); frmc.ShowDialog(); } catch (Exception ex) { MessageBox.Show(ex.Message); } } if (e.KeyCode == Keys.C && e.Alt) { try { frmCreditNote frmc = new frmCreditNote(); frmc.ShowDialog(); } catch (Exception ex) { MessageBox.Show(ex.Message); } } if (e.KeyCode == Keys.D && e.Alt) { try { debitNotecs frmc = new debitNotecs(); frmc.ShowDialog(); } catch (Exception ex) { MessageBox.Show(ex.Message); } } if (e.KeyCode == Keys.F10 && e.Alt) { try { frmExpenses frmc = new frmExpenses(); frmc.ShowDialog(); } catch (Exception ex) { MessageBox.Show(ex.Message); } } if (e.KeyCode == Keys.F12 && e.Alt) { try { frmBankDeposit frmc = new frmBankDeposit(); frmc.ShowDialog(); } catch (Exception ex) { MessageBox.Show(ex.Message); } } } catch (Exception ex) { MessageBox.Show(ex.Message); } }