コード例 #1
0
ファイル: FormDesigner.cs プロジェクト: harpreetoxyent/pnl
 public FormDesigner()
 {
     this.UniqueID       = "application" + projectCOunter;
     propertyWindow      = new PropertyWindow();
     projectExplorer     = new ProjectExplorer(this);
     dataPatternExplorer = new DataPatternExlorer(this);
     displayNameExplorer = new DisplayNameExplorer(this);
     webServiceExplorer  = new EIBFormDesigner.Designer.WebServiceExplorer.WebServiceExplorer(this);
     eventManager        = getEventManagerInstance();
     DragDropHandler.Initialize(eventManager, this);
     this.Disposed += new EventHandler(FormDesigner_Disposed);
     InitializeComponent();
     ToolBoxWindow.form = this;
     toolBoxWindow      = new ToolBoxWindow();
     startupImage       = new StartupHIC();
     formulaEditor      = new FormulaEditorWindow(this);
     workEditor         = new WorkflowEditorWindow(this);
     buildtool          = new EIBFormDesigner.Build.BuildTool(this);
     buildwindow        = new BuildWindow(this);
     setFromPatternsForACL();
     //UserAdmin.UserAdminConstants.CompanyId = company;
     //UserAdmin.UserAdminConstants.CompanyName = company;
     history = new UndoRedoHistory <ControlPool>(controlpool);
     this.SetStyle(ControlStyles.DoubleBuffer, true);
     this.SetStyle(ControlStyles.UserPaint, true);
     this.SetStyle(ControlStyles.AllPaintingInWmPaint, true);
 }
コード例 #2
0
 public void displayProperties(PropertyWindow form, object controlObject)
 {
     try
     {
         List<IEIBControl> currentcontrol = (List<IEIBControl>)controlObject;
         if (currentcontrol.Count == 1)
             form.propertyGrid.SelectedObject = currentcontrol[0];
         else
             form.propertyGrid.SelectedObjects = (object[])currentcontrol.ToArray();
         form.propertyGrid.Refresh();
     }
     catch (Exception exp)
     {
         Console.Write(exp.StackTrace);
     }
 }
コード例 #3
0
ファイル: FormDesigner.cs プロジェクト: harpreetoxyent/pnl
 public FormDesigner()
 {
     this.UniqueID = "application" + projectCOunter;
     propertyWindow = new PropertyWindow();
     projectExplorer = new ProjectExplorer(this);
     dataPatternExplorer = new DataPatternExlorer(this);
     displayNameExplorer = new DisplayNameExplorer(this);
     webServiceExplorer = new EIBFormDesigner.Designer.WebServiceExplorer.WebServiceExplorer(this);
     eventManager = getEventManagerInstance();
     DragDropHandler.Initialize(eventManager, this);
     this.Disposed += new EventHandler(FormDesigner_Disposed);
     InitializeComponent();
     ToolBoxWindow.form = this;
     toolBoxWindow = new ToolBoxWindow();
     startupImage = new StartupHIC();
     formulaEditor = new FormulaEditorWindow(this);
     workEditor = new WorkflowEditorWindow(this);
     buildtool = new EIBFormDesigner.Build.BuildTool(this);
     buildwindow = new BuildWindow(this);
     setFromPatternsForACL();
     //UserAdmin.UserAdminConstants.CompanyId = company;
     //UserAdmin.UserAdminConstants.CompanyName = company;
     history = new UndoRedoHistory<ControlPool>(controlpool);
     this.SetStyle(ControlStyles.DoubleBuffer, true);
     this.SetStyle(ControlStyles.UserPaint, true);
     this.SetStyle(ControlStyles.AllPaintingInWmPaint, true);
 }