void renameCategoryButtonClick(object sender, System.EventArgs e)
        {
            RenameCategoryDialog renameCategoryDialog = new RenameCategoryDialog(this.CurrentCategory.Name, this);

            if (renameCategoryDialog.ShowDialog(this) == DialogResult.OK)
            {
                this.CurrentCategory.Name = renameCategoryDialog.CategoryName;
                FillCategories();
            }
        }
        void newCategoryButtonClick(object sender, System.EventArgs e)
        {
            RenameCategoryDialog renameCategoryDialog = new RenameCategoryDialog(null, this);

            if (renameCategoryDialog.ShowDialog(this) == DialogResult.OK)
            {
                ToolboxProvider.ComponentLibraryLoader.Categories.Add(new Category(renameCategoryDialog.CategoryName));
                FillCategories();
            }
        }
예제 #3
0
		void renameCategoryButtonClick(object sender, System.EventArgs e)
		{
			RenameCategoryDialog renameCategoryDialog = new RenameCategoryDialog(this.CurrentCategory.Name, this);
			if (renameCategoryDialog.ShowDialog(this) == DialogResult.OK) {
				this.CurrentCategory.Name = renameCategoryDialog.CategoryName;
				FillCategories();
			}
		}
예제 #4
0
		void newCategoryButtonClick(object sender, System.EventArgs e)
		{
			RenameCategoryDialog renameCategoryDialog = new RenameCategoryDialog(null, this);
			if (renameCategoryDialog.ShowDialog(this) == DialogResult.OK) {
				ToolboxProvider.ComponentLibraryLoader.Categories.Add(new Category(renameCategoryDialog.CategoryName));
				FillCategories();
			}
		}