private void btn_add_category_Click(object sender, EventArgs e) { form_add_edit_category add_Category = new form_add_edit_category(); add_Category.ShowDialog(); //categoryListInInterface(); categoryListViewInInterface(); }
private void btn_edit_category_Click(object sender, EventArgs e) { form_add_edit_category edit_Category = new form_add_edit_category(); edit_Category.passDataToEditForm(category); edit_Category.ShowDialog(); //categoryListInInterface(); categoryListViewInInterface(); btn_delete_category.Enabled = false; btn_edit_category.Enabled = false; }