private void viewProductsToolStripMenuItem_Click(object sender, EventArgs e)
 {
     try
     {
         viewProducts viewProducts = new viewProducts();
         viewProducts.Show();
     }
     catch (Exception err) { logger.Error("UI Error in viewProductsToolStripMenuItem_Click: " + err.ToString()); }
 }
 public editProducts(products product, viewProducts currentView)
 {
     InitializeComponent();
     this.product                 = product;
     this.currentView             = currentView;
     pcodeVerify.Font             = new Font("Calibri", 10);
     pnameVerify.Font             = new Font("Calibri", 10);
     ppriceVerify.Font            = new Font("Calibri", 10);
     cmbCatVerify.Font            = new Font("Calibri", 10);
     labelTimer                   = new Timer();
     this.txtProductPrc.KeyPress += new KeyPressEventHandler(txtProductPrc_KeyPress);
     setData();
 }