private void btnAddCategory_Click(object sender, System.EventArgs e) { AddCategoryPrompt f = new AddCategoryPrompt(); if (f.ShowDialog() == DialogResult.OK) { LoadCategories(); // reload the categories to reflect the new change } }
private void btnAddCat_Click(object sender, System.EventArgs e) { AddCategoryPrompt f = new AddCategoryPrompt(); if (f.ShowDialog() == DialogResult.OK) { BuildCategoryList(); needCategoryRefresh = true; } }