Ejemplo n.º 1
0
        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);
            }
        }
Ejemplo n.º 2
0
        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");
                }
            }
        }