Beispiel #1
0
 public static ManageCategory createInstance()
 {
     if (manageCaetgory == null)
     {
         manageCaetgory = new ManageCategory();
     }
     return(manageCaetgory);
 }
        private void manageCategoryBtn_Click(object sender, EventArgs e)
        {
            ManageCategory manageCategory = ManageCategory.createInstance();

            manageCategory.ShowDialog();
            if (manageCategory.Focused == false)
            {
                this.Focus();
                loadCategories();
            }
        }