Пример #1
0
 public DesignerMain(PropertyGrid props, ToolBoxPane t, Panel p)
 {
     propertyGrid            = props;
     toolbox                 = t;
     panelMain               = p;
     hostingServiceContainer = new ServiceContainer();
     generatedCode           = new CodeStrings();
     hostingServiceContainer.AddService(typeof(CodeStrings), generatedCode);
     hostingServiceContainer.AddService(typeof(PropertyGrid), propertyGrid);
     hostingServiceContainer.AddService(typeof(ToolBoxPane), toolbox);
 }
Пример #2
0
 public DesignerMain(PropertyGrid props, ToolBoxPane t, Panel p)
 {
     propertyGrid = props;
     toolbox = t;
     panelMain = p;
     hostingServiceContainer = new ServiceContainer();
     generatedCode = new CodeStrings();
     hostingServiceContainer.AddService(typeof(CodeStrings), generatedCode);
     hostingServiceContainer.AddService(typeof(PropertyGrid), propertyGrid);
     hostingServiceContainer.AddService(typeof(ToolBoxPane), toolbox);
 }