public void addCategory() { frmCategoryDetail categoryDetail = new frmCategoryDetail(true, this); categoryDetail.setStateUpdate(false); categoryDetail.ShowDialog(); }
public void editCategory() { frmCategoryDetail categoryDetail = new frmCategoryDetail(true, this); categoryDetail.setStateUpdate(true); categoryDetail.getCategoryName().Text = form.getNameCategory().Text; categoryDetail.ShowDialog(); }