Exemplo n.º 1
0
 public static ManageProduct createInstance()
 {
     if (manageProduct == null)
     {
         manageProduct = new ManageProduct();
     }
     return(manageProduct);
 }
        private void manageProductBtn_Click(object sender, EventArgs e)
        {
            ManageProduct manageProduct = ManageProduct.createInstance();

            manageProduct.ShowDialog();
            if (manageProduct.Focused == false)
            {
                this.Focus();
                loadProducts();
            }
        }