Example #1
0
 private void ts_AddProduct_Click(object sender, EventArgs e)
 {
     if (!formExist("CreateProduct"))
     {
         frm_CreateProduct           = new CreateProduct();
         frm_CreateProduct.MdiParent = this;
         frm_CreateProduct.Show();
     }
 }
Example #2
0
        private void btn_AddProduct_Click(object sender, EventArgs e)
        {
            parent = (MdiParent)this.MdiParent;

            if (!parent.formExist("CreateProduct"))
            {
                CreateProduct frm_CreateProduct = new CreateProduct();
                frm_CreateProduct.Show();
            }
        }