Example #1
0
 protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
 {
     if (keyData == Keys.F2)//Add New Supplier
     {
         buyerDetails frmBuyerDetails = new buyerDetails(1);
         frmBuyerDetails.ShowDialog(this);
         funcPopulateCustomerList();
         return(true);
     }
     return(base.ProcessCmdKey(ref msg, keyData));
 }
Example #2
0
 private void toolStripMenuModifyCustomer_Click(object sender, EventArgs e)
 {
     if (!funcIsFormOpen("buyerDetails"))
     {
         buyerDetails frmBuyerDetails = new buyerDetails(2);
         frmBuyerDetails.MdiParent = this;
         frmBuyerDetails.Show();
     }
     else
     {
         funcBringToFront("buyerDetails");
     }
 }