コード例 #1
0
 public ProjectBuilder()
 {
     InitializeComponent();
     //Generate Content of toolbox
     Core.ToolBox getTools             = new Core.ToolBox();
     Core.ToolBox.ToolCategory[] tools = getTools.getToolBox();
     //Adding Items to Toolbox
     category.ItemsSource = tools;
     //setting Properties
     toolsBox.AllowDrop    = true;
     mainBuilder.AllowDrop = true;
 }
コード例 #2
0
 private Boolean checkForErrors()
 {
     Core.ToolBox getTools             = new Core.ToolBox();
     Core.ToolBox.ToolCategory[] tools = getTools.getToolBox();
     for (int i = 0; i < tools.Length; i++)
     {
         for (int j = 0; j < tools[i].Tools.Length; j++)
         {
             string name = tools[i].Tools[j].toolName;
             MessageBox.Show(name);
         }
     }
     return(false);
 }