private void BtnAddProductCatagories_Click(object sender, EventArgs e)
        { //loads add product catagories and closes this
            FrmAddProductCategories frmAddProductCategories = new FrmAddProductCategories();

            this.Hide();
            frmAddProductCategories.ShowDialog();
            this.Close();
        }
Esempio n. 2
0
 private void PageReset()
 { // reloads this form allowing for duplicate object names
     if (this.Name == "frmProductCatagories")
     {
         FrmAddProductCategories frmAddProductCategories1 = new FrmAddProductCategories();
         this.Hide();
         frmAddProductCategories1.ShowDialog();
         this.Close();
     }
     else
     {
         FrmAddProductCategories frmAddProductCategories = new FrmAddProductCategories();
         this.Hide();
         frmAddProductCategories.ShowDialog();
         this.Close();
     }
 }