private void buttonRemoveCategory_Click(object sender, EventArgs e) { string categoryName = Interaction.InputBox("Enter the name of the cateogory you'd like to remove", "Remove Category", ""); if (categoryName != "") { TabControlImageTagger.RemoveCategory(categoryName); } }
private void buttonAddCategory_Click(object sender, EventArgs e) { string categoryName = Interaction.InputBox("Enter the name of your category", "Add Category", ""); if (categoryName != "") { if (!TabControlImageTagger.CreateCategory(categoryName)) { MessageBox.Show(categoryName + " already exists"); } } }