Beispiel #1
0
 private void viewModifySupplierDetailsToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (!funcIsFormOpen("supplierDetails"))
     {
         supplierDetails frmSupDetails = new supplierDetails(2);
         frmSupDetails.MdiParent = this;
         frmSupDetails.Show();
     }
     else
     {
         funcBringToFront("supplierDetails");
     }
 }
Beispiel #2
0
 protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
 {
     if (keyData == Keys.F2)//Add New Supplier
     {
         supplierDetails frmSupDetails = new supplierDetails(1);
         frmSupDetails.ShowDialog(this);
         funcPopulateSupplierList();
         return(true);
     }
     if (keyData == Keys.F3)//Add New Product
     {
         productDetails frmProdDetails = new productDetails(1);
         frmProdDetails.ShowDialog(this);
         funcPopulateProductList();
         return(true);
     }
     return(base.ProcessCmdKey(ref msg, keyData));
 }