Exemplo n.º 1
0
        public DocumentManagerSupport(DevExpress.XtraBars.Docking2010.DocumentManager manager, DevExpress.XtraBars.BarItem[] saveComponents, DevExpress.XtraBars.BarItem[] saveAllComponents)
        {
            _manager = manager;
            _State   = new DocumentManagerState();

            _proxy = SEventProxy.getInstance();
            _proxy.addEventHandler <DocumentChangedEvent>(EventType.DocumentChangedEvent, HandleDocumentChanged);
            _proxy.addEventHandler <VisualControlActionEvent>(EventType.VisualControlActionEvent, HandleVisualControlAction);
            _saveComponents    = saveComponents;
            _saveAllComponents = saveAllComponents;
        }
Exemplo n.º 2
0
        public DocumentManagerSupport(DevExpress.XtraBars.Docking2010.DocumentManager manager, DevExpress.XtraBars.BarItem[] saveComponents, DevExpress.XtraBars.BarItem[] saveAllComponents)
        {
            _manager = manager;
            _State = new DocumentManagerState();

            _proxy = SEventProxy.getInstance();
            _proxy.addEventHandler<DocumentChangedEvent>(EventType.DocumentChangedEvent, HandleDocumentChanged);
            _proxy.addEventHandler<VisualControlActionEvent>(EventType.VisualControlActionEvent, HandleVisualControlAction);
            _saveComponents = saveComponents;
            _saveAllComponents = saveAllComponents;
        }
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     this.barManager1 = new DevExpress.XtraBars.BarManager(this.components);
     this.bar1 = new DevExpress.XtraBars.Bar();
     this.barButtonItem3 = new DevExpress.XtraBars.BarButtonItem();
     this.barButtonItem4 = new DevExpress.XtraBars.BarButtonItem();
     this.barButtonItem6 = new DevExpress.XtraBars.BarButtonItem();
     this.bar2 = new DevExpress.XtraBars.Bar();
     this.barButtonItem1 = new DevExpress.XtraBars.BarButtonItem();
     this.barSubItem1 = new DevExpress.XtraBars.BarSubItem();
     this.barButtonItem5 = new DevExpress.XtraBars.BarButtonItem();
     this.bar3 = new DevExpress.XtraBars.Bar();
     this.barDockControlTop = new DevExpress.XtraBars.BarDockControl();
     this.barDockControlBottom = new DevExpress.XtraBars.BarDockControl();
     this.barDockControlLeft = new DevExpress.XtraBars.BarDockControl();
     this.barDockControlRight = new DevExpress.XtraBars.BarDockControl();
     this.dockManager1 = new DevExpress.XtraBars.Docking.DockManager(this.components);
     this.dockPanel1 = new DevExpress.XtraBars.Docking.DockPanel();
     this.dockPanel1_Container = new DevExpress.XtraBars.Docking.ControlContainer();
     this.gridControl1 = new DevExpress.XtraGrid.GridControl();
     this.gridView1 = new DevExpress.XtraGrid.Views.Grid.GridView();
     this.col_表名 = new DevExpress.XtraGrid.Columns.GridColumn();
     this.col_说明 = new DevExpress.XtraGrid.Columns.GridColumn();
     this.col_object_id = new DevExpress.XtraGrid.Columns.GridColumn();
     this.col_Pname = new DevExpress.XtraGrid.Columns.GridColumn();
     this.col_类型 = new DevExpress.XtraGrid.Columns.GridColumn();
     this.barButtonItem2 = new DevExpress.XtraBars.BarButtonItem();
     this.documentManager1 = new DevExpress.XtraBars.Docking2010.DocumentManager(this.components);
     this.tabbedView1 = new DevExpress.XtraBars.Docking2010.Views.Tabbed.TabbedView(this.components);
     ((System.ComponentModel.ISupportInitialize)(this.barManager1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.dockManager1)).BeginInit();
     this.dockPanel1.SuspendLayout();
     this.dockPanel1_Container.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.gridControl1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.gridView1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.documentManager1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.tabbedView1)).BeginInit();
     this.SuspendLayout();
     //
     // barManager1
     //
     this.barManager1.Bars.AddRange(new DevExpress.XtraBars.Bar[] {
     this.bar1,
     this.bar2,
     this.bar3});
     this.barManager1.DockControls.Add(this.barDockControlTop);
     this.barManager1.DockControls.Add(this.barDockControlBottom);
     this.barManager1.DockControls.Add(this.barDockControlLeft);
     this.barManager1.DockControls.Add(this.barDockControlRight);
     this.barManager1.DockManager = this.dockManager1;
     this.barManager1.Form = this;
     this.barManager1.Items.AddRange(new DevExpress.XtraBars.BarItem[] {
     this.barButtonItem1,
     this.barButtonItem2,
     this.barButtonItem3,
     this.barButtonItem4,
     this.barSubItem1,
     this.barButtonItem5,
     this.barButtonItem6});
     this.barManager1.MainMenu = this.bar2;
     this.barManager1.MaxItemId = 7;
     this.barManager1.StatusBar = this.bar3;
     //
     // bar1
     //
     this.bar1.BarName = "Tools";
     this.bar1.DockCol = 0;
     this.bar1.DockRow = 1;
     this.bar1.DockStyle = DevExpress.XtraBars.BarDockStyle.Top;
     this.bar1.LinksPersistInfo.AddRange(new DevExpress.XtraBars.LinkPersistInfo[] {
     new DevExpress.XtraBars.LinkPersistInfo(this.barButtonItem3),
     new DevExpress.XtraBars.LinkPersistInfo(this.barButtonItem4),
     new DevExpress.XtraBars.LinkPersistInfo(this.barButtonItem6)});
     this.bar1.Text = "Tools";
     //
     // barButtonItem3
     //
     this.barButtonItem3.Caption = "刷新";
     this.barButtonItem3.Id = 2;
     this.barButtonItem3.Name = "barButtonItem3";
     this.barButtonItem3.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.barButtonItem3_ItemClick);
     //
     // barButtonItem4
     //
     this.barButtonItem4.Caption = "Entity生成";
     this.barButtonItem4.Id = 3;
     this.barButtonItem4.Name = "barButtonItem4";
     this.barButtonItem4.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.barButtonItem4_ItemClick);
     //
     // barButtonItem6
     //
     this.barButtonItem6.Caption = "DAO生成";
     this.barButtonItem6.Id = 6;
     this.barButtonItem6.Name = "barButtonItem6";
     this.barButtonItem6.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.barButtonItem6_ItemClick);
     //
     // bar2
     //
     this.bar2.BarName = "Main menu";
     this.bar2.DockCol = 0;
     this.bar2.DockRow = 0;
     this.bar2.DockStyle = DevExpress.XtraBars.BarDockStyle.Top;
     this.bar2.LinksPersistInfo.AddRange(new DevExpress.XtraBars.LinkPersistInfo[] {
     new DevExpress.XtraBars.LinkPersistInfo(this.barButtonItem1),
     new DevExpress.XtraBars.LinkPersistInfo(this.barSubItem1)});
     this.bar2.OptionsBar.MultiLine = true;
     this.bar2.OptionsBar.UseWholeRow = true;
     this.bar2.Text = "Main menu";
     //
     // barButtonItem1
     //
     this.barButtonItem1.Caption = "用户";
     this.barButtonItem1.Id = 0;
     this.barButtonItem1.Name = "barButtonItem1";
     //
     // barSubItem1
     //
     this.barSubItem1.Caption = "窗口";
     this.barSubItem1.Id = 4;
     this.barSubItem1.LinksPersistInfo.AddRange(new DevExpress.XtraBars.LinkPersistInfo[] {
     new DevExpress.XtraBars.LinkPersistInfo(this.barButtonItem5)});
     this.barSubItem1.Name = "barSubItem1";
     //
     // barButtonItem5
     //
     this.barButtonItem5.Caption = "查询分析器";
     this.barButtonItem5.Id = 5;
     this.barButtonItem5.Name = "barButtonItem5";
     //
     // bar3
     //
     this.bar3.BarName = "Status bar";
     this.bar3.CanDockStyle = DevExpress.XtraBars.BarCanDockStyle.Bottom;
     this.bar3.DockCol = 0;
     this.bar3.DockRow = 0;
     this.bar3.DockStyle = DevExpress.XtraBars.BarDockStyle.Bottom;
     this.bar3.OptionsBar.AllowQuickCustomization = false;
     this.bar3.OptionsBar.DrawDragBorder = false;
     this.bar3.OptionsBar.UseWholeRow = true;
     this.bar3.Text = "Status bar";
     //
     // barDockControlTop
     //
     this.barDockControlTop.CausesValidation = false;
     this.barDockControlTop.Dock = System.Windows.Forms.DockStyle.Top;
     this.barDockControlTop.Location = new System.Drawing.Point(0, 0);
     this.barDockControlTop.Size = new System.Drawing.Size(1365, 83);
     //
     // barDockControlBottom
     //
     this.barDockControlBottom.CausesValidation = false;
     this.barDockControlBottom.Dock = System.Windows.Forms.DockStyle.Bottom;
     this.barDockControlBottom.Location = new System.Drawing.Point(0, 939);
     this.barDockControlBottom.Size = new System.Drawing.Size(1365, 23);
     //
     // barDockControlLeft
     //
     this.barDockControlLeft.CausesValidation = false;
     this.barDockControlLeft.Dock = System.Windows.Forms.DockStyle.Left;
     this.barDockControlLeft.Location = new System.Drawing.Point(0, 83);
     this.barDockControlLeft.Size = new System.Drawing.Size(0, 856);
     //
     // barDockControlRight
     //
     this.barDockControlRight.CausesValidation = false;
     this.barDockControlRight.Dock = System.Windows.Forms.DockStyle.Right;
     this.barDockControlRight.Location = new System.Drawing.Point(1365, 83);
     this.barDockControlRight.Size = new System.Drawing.Size(0, 856);
     //
     // dockManager1
     //
     this.dockManager1.Form = this;
     this.dockManager1.MenuManager = this.barManager1;
     this.dockManager1.RootPanels.AddRange(new DevExpress.XtraBars.Docking.DockPanel[] {
     this.dockPanel1});
     this.dockManager1.TopZIndexControls.AddRange(new string[] {
     "DevExpress.XtraBars.BarDockControl",
     "DevExpress.XtraBars.StandaloneBarDockControl",
     "System.Windows.Forms.StatusBar",
     "System.Windows.Forms.MenuStrip",
     "System.Windows.Forms.StatusStrip",
     "DevExpress.XtraBars.Ribbon.RibbonStatusBar",
     "DevExpress.XtraBars.Ribbon.RibbonControl"});
     //
     // dockPanel1
     //
     this.dockPanel1.Controls.Add(this.dockPanel1_Container);
     this.dockPanel1.Dock = DevExpress.XtraBars.Docking.DockingStyle.Left;
     this.dockPanel1.ID = new System.Guid("787f2a5b-34f2-43b1-8798-6ebb721fd393");
     this.dockPanel1.Location = new System.Drawing.Point(0, 83);
     this.dockPanel1.Name = "dockPanel1";
     this.dockPanel1.OriginalSize = new System.Drawing.Size(346, 200);
     this.dockPanel1.Size = new System.Drawing.Size(346, 856);
     this.dockPanel1.Text = "数据对象";
     //
     // dockPanel1_Container
     //
     this.dockPanel1_Container.Controls.Add(this.gridControl1);
     this.dockPanel1_Container.Location = new System.Drawing.Point(4, 37);
     this.dockPanel1_Container.Name = "dockPanel1_Container";
     this.dockPanel1_Container.Size = new System.Drawing.Size(338, 815);
     this.dockPanel1_Container.TabIndex = 0;
     //
     // gridControl1
     //
     this.gridControl1.Dock = System.Windows.Forms.DockStyle.Fill;
     this.gridControl1.Location = new System.Drawing.Point(0, 0);
     this.gridControl1.MainView = this.gridView1;
     this.gridControl1.MenuManager = this.barManager1;
     this.gridControl1.Name = "gridControl1";
     this.gridControl1.Size = new System.Drawing.Size(338, 815);
     this.gridControl1.TabIndex = 0;
     this.gridControl1.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
     this.gridView1});
     //
     // gridView1
     //
     this.gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] {
     this.col_表名,
     this.col_说明,
     this.col_object_id,
     this.col_Pname,
     this.col_类型});
     this.gridView1.GridControl = this.gridControl1;
     this.gridView1.GroupCount = 1;
     this.gridView1.Name = "gridView1";
     this.gridView1.OptionsBehavior.Editable = false;
     this.gridView1.OptionsSelection.MultiSelect = true;
     this.gridView1.OptionsView.ColumnAutoWidth = false;
     this.gridView1.SortInfo.AddRange(new DevExpress.XtraGrid.Columns.GridColumnSortInfo[] {
     new DevExpress.XtraGrid.Columns.GridColumnSortInfo(this.col_类型, DevExpress.Data.ColumnSortOrder.Ascending)});
     this.gridView1.DoubleClick += new System.EventHandler(this.gridView1_DoubleClick);
     //
     // col_表名
     //
     this.col_表名.Caption = "表名";
     this.col_表名.FieldName = "表名";
     this.col_表名.Name = "col_表名";
     this.col_表名.Visible = true;
     this.col_表名.VisibleIndex = 0;
     //
     // col_说明
     //
     this.col_说明.Caption = "说明";
     this.col_说明.FieldName = "说明";
     this.col_说明.Name = "col_说明";
     this.col_说明.Visible = true;
     this.col_说明.VisibleIndex = 1;
     //
     // col_object_id
     //
     this.col_object_id.Caption = "object_id";
     this.col_object_id.FieldName = "object_id";
     this.col_object_id.Name = "col_object_id";
     this.col_object_id.Visible = true;
     this.col_object_id.VisibleIndex = 2;
     //
     // col_Pname
     //
     this.col_Pname.Caption = "Pname";
     this.col_Pname.FieldName = "Pname";
     this.col_Pname.Name = "col_Pname";
     this.col_Pname.Visible = true;
     this.col_Pname.VisibleIndex = 3;
     //
     // col_类型
     //
     this.col_类型.Caption = "类型";
     this.col_类型.FieldName = "类型";
     this.col_类型.Name = "col_类型";
     this.col_类型.Visible = true;
     this.col_类型.VisibleIndex = 4;
     //
     // barButtonItem2
     //
     this.barButtonItem2.Caption = "新建";
     this.barButtonItem2.Id = 1;
     this.barButtonItem2.Name = "barButtonItem2";
     //
     // documentManager1
     //
     this.documentManager1.ContainerControl = this;
     this.documentManager1.MenuManager = this.barManager1;
     this.documentManager1.View = this.tabbedView1;
     this.documentManager1.ViewCollection.AddRange(new DevExpress.XtraBars.Docking2010.Views.BaseView[] {
     this.tabbedView1});
     //
     // MainForm
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(12F, 24F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize = new System.Drawing.Size(1365, 962);
     this.Controls.Add(this.dockPanel1);
     this.Controls.Add(this.barDockControlLeft);
     this.Controls.Add(this.barDockControlRight);
     this.Controls.Add(this.barDockControlBottom);
     this.Controls.Add(this.barDockControlTop);
     this.Name = "MainForm";
     this.Text = "Sephiroth生成器";
     this.Load += new System.EventHandler(this.MainForm_Load);
     ((System.ComponentModel.ISupportInitialize)(this.barManager1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.dockManager1)).EndInit();
     this.dockPanel1.ResumeLayout(false);
     this.dockPanel1_Container.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.gridControl1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.gridView1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.documentManager1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.tabbedView1)).EndInit();
     this.ResumeLayout(false);
 }
Exemplo n.º 4
0
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(DefaultWorkbench));
     this.ribbon            = new DevExpress.XtraBars.Ribbon.RibbonControl();
     this.appMenu           = new DevExpress.XtraBars.Ribbon.ApplicationMenu(this.components);
     this.imageCollection1  = new DevExpress.Utils.ImageCollection(this.components);
     this.barButtonItemHelp = new DevExpress.XtraBars.BarButtonItem();
     this.biStyle           = new DevExpress.XtraBars.BarEditItem();
     this.riicStyle         = new DevExpress.XtraEditors.Repository.RepositoryItemImageComboBox();
     this.barStatusItemInfo = new DevExpress.XtraBars.BarStaticItem();
     this.barOtherInfo      = new DevExpress.XtraBars.BarStaticItem();
     this.ribbonStatusBar   = new DevExpress.XtraBars.Ribbon.RibbonStatusBar();
     this.dockManager       = new DevExpress.XtraBars.Docking.DockManager(this.components);
     this.documentManager   = new DevExpress.XtraBars.Docking2010.DocumentManager(this.components);
     this.tabbedView        = new DevExpress.XtraBars.Docking2010.Views.Tabbed.TabbedView(this.components);
     ((System.ComponentModel.ISupportInitialize)(this.ribbon)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.appMenu)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.imageCollection1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.riicStyle)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.dockManager)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.documentManager)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.tabbedView)).BeginInit();
     this.SuspendLayout();
     //
     // ribbon
     //
     this.ribbon.ApplicationButtonDropDownControl = this.appMenu;
     this.ribbon.ApplicationButtonText            = null;
     this.ribbon.ExpandCollapseItem.Id            = 0;
     this.ribbon.Images = this.imageCollection1;
     this.ribbon.Items.AddRange(new DevExpress.XtraBars.BarItem[] {
         this.ribbon.ExpandCollapseItem,
         this.barButtonItemHelp,
         this.biStyle,
         this.barStatusItemInfo,
         this.barOtherInfo
     });
     this.ribbon.Location  = new System.Drawing.Point(0, 0);
     this.ribbon.MaxItemId = 3;
     this.ribbon.Name      = "ribbon";
     this.ribbon.PageHeaderItemLinks.Add(this.barButtonItemHelp);
     this.ribbon.PageHeaderItemLinks.Add(this.biStyle);
     this.ribbon.RepositoryItems.AddRange(new DevExpress.XtraEditors.Repository.RepositoryItem[] {
         this.riicStyle
     });
     this.ribbon.RibbonStyle = DevExpress.XtraBars.Ribbon.RibbonControlStyle.Office2010;
     this.ribbon.ShowToolbarCustomizeItem = false;
     this.ribbon.Size      = new System.Drawing.Size(920, 50);
     this.ribbon.StatusBar = this.ribbonStatusBar;
     this.ribbon.Toolbar.ShowCustomizeItem = false;
     this.ribbon.SelectedPageChanged      += new System.EventHandler(this.ribbon_SelectedPageChanged);
     //
     // appMenu
     //
     this.appMenu.Name   = "appMenu";
     this.appMenu.Ribbon = this.ribbon;
     //
     // imageCollection1
     //
     this.imageCollection1.ImageStream = ((DevExpress.Utils.ImageCollectionStreamer)(resources.GetObject("imageCollection1.ImageStream")));
     this.imageCollection1.InsertGalleryImage("question_16x16.png", "images/support/question_16x16.png", DevExpress.Images.ImageResourceCache.Default.GetImage("images/support/question_16x16.png"), 0);
     this.imageCollection1.Images.SetKeyName(0, "question_16x16.png");
     //
     // barButtonItemHelp
     //
     this.barButtonItemHelp.Caption      = "帮助";
     this.barButtonItemHelp.Id           = 2;
     this.barButtonItemHelp.ImageIndex   = 0;
     this.barButtonItemHelp.ItemShortcut = new DevExpress.XtraBars.BarShortcut(System.Windows.Forms.Keys.F1);
     this.barButtonItemHelp.Name         = "barButtonItemHelp";
     this.barButtonItemHelp.ItemClick   += new DevExpress.XtraBars.ItemClickEventHandler(this.barButtonItemHelp_ItemClick);
     //
     // biStyle
     //
     this.biStyle.CategoryGuid      = new System.Guid("6ffddb2b-9015-4d97-a4c1-91613e0ef537");
     this.biStyle.Edit              = this.riicStyle;
     this.biStyle.EditValue         = this.ribbon.RibbonStyle;
     this.biStyle.Id                = 1;
     this.biStyle.Name              = "biStyle";
     this.biStyle.Width             = 130;
     this.biStyle.EditValueChanged += new System.EventHandler(this.biStyle_EditValueChanged);
     //
     // riicStyle
     //
     this.riicStyle.AutoHeight = false;
     this.riicStyle.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
         new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)
     });
     this.riicStyle.Items.AddRange(new DevExpress.XtraEditors.Controls.ImageComboBoxItem[] {
         new DevExpress.XtraEditors.Controls.ImageComboBoxItem("Default", DevExpress.XtraBars.Ribbon.RibbonControlStyle.Default, -1),
         new DevExpress.XtraEditors.Controls.ImageComboBoxItem("Office 2007 Blue", DevExpress.XtraBars.Ribbon.RibbonControlStyle.Office2007, -1),
         new DevExpress.XtraEditors.Controls.ImageComboBoxItem("Office 2010 Silver", DevExpress.XtraBars.Ribbon.RibbonControlStyle.Office2010, -1),
         new DevExpress.XtraEditors.Controls.ImageComboBoxItem("Office 2013", DevExpress.XtraBars.Ribbon.RibbonControlStyle.Office2013, -1)
     });
     this.riicStyle.Name = "riicStyle";
     //
     // barStatusItemInfo
     //
     this.barStatusItemInfo.Caption       = "信息提示";
     this.barStatusItemInfo.CategoryGuid  = new System.Guid("6ffddb2b-9015-4d97-a4c1-91613e0ef537");
     this.barStatusItemInfo.Id            = 1;
     this.barStatusItemInfo.Name          = "barStatusItemInfo";
     this.barStatusItemInfo.TextAlignment = System.Drawing.StringAlignment.Near;
     //
     // barOtherInfo
     //
     this.barOtherInfo.Alignment     = DevExpress.XtraBars.BarItemLinkAlignment.Right;
     this.barOtherInfo.Id            = 2;
     this.barOtherInfo.Name          = "barOtherInfo";
     this.barOtherInfo.TextAlignment = System.Drawing.StringAlignment.Near;
     //
     // ribbonStatusBar
     //
     this.ribbonStatusBar.ItemLinks.Add(this.barStatusItemInfo);
     this.ribbonStatusBar.ItemLinks.Add(this.barOtherInfo);
     this.ribbonStatusBar.Location = new System.Drawing.Point(0, 448);
     this.ribbonStatusBar.Name     = "ribbonStatusBar";
     this.ribbonStatusBar.Ribbon   = this.ribbon;
     this.ribbonStatusBar.Size     = new System.Drawing.Size(920, 31);
     //
     // dockManager
     //
     this.dockManager.DockingOptions.HideImmediatelyOnAutoHide = true;
     this.dockManager.DockModeVS2005FadeFramesCount            = 1;
     this.dockManager.Form = this;
     this.dockManager.TopZIndexControls.AddRange(new string[] {
         "DevExpress.XtraBars.BarDockControl",
         "DevExpress.XtraBars.StandaloneBarDockControl",
         "System.Windows.Forms.StatusBar",
         "System.Windows.Forms.MenuStrip",
         "System.Windows.Forms.StatusStrip",
         "DevExpress.XtraBars.Ribbon.RibbonStatusBar",
         "DevExpress.XtraBars.Ribbon.RibbonControl"
     });
     this.dockManager.ActivePanelChanged += new DevExpress.XtraBars.Docking.ActivePanelChangedEventHandler(this.dockManager_ActivePanelChanged);
     this.dockManager.ActiveChildChanged += new DevExpress.XtraBars.Docking.DockPanelEventHandler(this.dockManager_ActiveChildChanged);
     //
     // documentManager
     //
     this.documentManager.ContainerControl = this;
     this.documentManager.View             = this.tabbedView;
     this.documentManager.ViewCollection.AddRange(new DevExpress.XtraBars.Docking2010.Views.BaseView[] {
         this.tabbedView
     });
     this.documentManager.DocumentActivate += new DevExpress.XtraBars.Docking2010.Views.DocumentEventHandler(this.documentManager_DocumentActivate);
     //
     // tabbedView
     //
     this.tabbedView.Orientation = System.Windows.Forms.Orientation.Vertical;
     //
     // DefaultWorkbench
     //
     this.AllowFormGlass      = DevExpress.Utils.DefaultBoolean.False;
     this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize          = new System.Drawing.Size(920, 479);
     this.Controls.Add(this.ribbonStatusBar);
     this.Controls.Add(this.ribbon);
     this.Icon          = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.Name          = "DefaultWorkbench";
     this.Ribbon        = this.ribbon;
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.StatusBar     = this.ribbonStatusBar;
     this.Text          = "DefaultWorkbench";
     this.WindowState   = System.Windows.Forms.FormWindowState.Maximized;
     this.FormClosing  += new System.Windows.Forms.FormClosingEventHandler(this.DefaultWorkbench_FormClosing);
     this.FormClosed   += new System.Windows.Forms.FormClosedEventHandler(this.DefaultWorkbench_FormClosed);
     this.Shown        += new System.EventHandler(this.DefaultWorkbench_Shown);
     ((System.ComponentModel.ISupportInitialize)(this.ribbon)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.appMenu)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.imageCollection1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.riicStyle)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.dockManager)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.documentManager)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.tabbedView)).EndInit();
     this.ResumeLayout(false);
 }
Exemplo n.º 5
0
        public void OnImportsSatisfied()
        {
            Form mainForm = Shell as Form;

            this.dockManager     = new DevExpress.XtraBars.Docking.DockManager();
            this.documentManager = new DevExpress.XtraBars.Docking2010.DocumentManager();
            this.tabbedView      = new DevExpress.XtraBars.Docking2010.Views.Tabbed.TabbedView();
            ((System.ComponentModel.ISupportInitialize)(this.dockManager)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.documentManager)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.tabbedView)).BeginInit();
            Shell.SuspendLayout();
            //
            // dockManager1
            //
            this.dockManager.Form = Shell;
            this.dockManager.TopZIndexControls.AddRange(new string[] {
                "DevExpress.XtraBars.BarDockControl",
                "DevExpress.XtraBars.StandaloneBarDockControl",
                "System.Windows.Forms.StatusBar",
                "DevExpress.XtraBars.Ribbon.RibbonStatusBar",
                "DevExpress.XtraBars.Ribbon.RibbonControl"
            });
            this.dockManager.Images = new ImageCollection();
            //
            // documentManager1
            //

            this.documentManager.MdiParent = mainForm;
            this.documentManager.View      = this.tabbedView;
            this.documentManager.ViewCollection.AddRange(new DevExpress.XtraBars.Docking2010.Views.BaseView[] {
                this.tabbedView
            });

            tabbedView.DocumentGroupProperties.ClosePageButtonShowMode =
                DevExpress.XtraTab.ClosePageButtonShowMode.InActiveTabPageHeader;

            ((System.ComponentModel.ISupportInitialize)(this.dockManager)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.documentManager)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.tabbedView)).EndInit();
            Shell.ResumeLayout(false);

            dockManager.ActivePanelChanged += new ActivePanelChangedEventHandler(dockManager_ActivePanelChanged);
            dockManager.ClosedPanel        += new DockPanelEventHandler(dockManager_ClosedPanel);

            persistDockingState = new PersistDockingState(dockManager);
            mainForm.Load      += delegate(object sender, EventArgs e)
            {
                isFormLoaded = true;
                foreach (var panel in loadingDeferredDockPanels)
                {
                    Add(panel);
                }
                loadingDeferredDockPanels = null;
                //persistDockingState.InitializeDefaultLayout();
                //  persistDockingState.RestoreLayout();
            };

            mainForm.FormClosing += delegate(object sender, FormClosingEventArgs e)
            {
                //persistDockingState.SaveLayout();
            };
        }
Exemplo n.º 6
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm));
     this.documentManager1 = new DevExpress.XtraBars.Docking2010.DocumentManager(this.components);
     this.windowsUIView1 = new DevExpress.XtraBars.Docking2010.Views.WindowsUI.WindowsUIView(this.components);
     this.pageGroup = new DevExpress.XtraBars.Docking2010.Views.WindowsUI.PageGroup(this.components);
     this.closeFlyout = new DevExpress.XtraBars.Docking2010.Views.WindowsUI.Flyout(this.components);
     this.imageList1 = new DevExpress.Utils.ImageCollection(this.components);
     ((System.ComponentModel.ISupportInitialize)(this.documentManager1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.windowsUIView1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.pageGroup)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.closeFlyout)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.imageList1)).BeginInit();
     this.SuspendLayout();
     //
     // documentManager1
     //
     this.documentManager1.ContainerControl = this;
     this.documentManager1.View = this.windowsUIView1;
     this.documentManager1.ViewCollection.AddRange(new DevExpress.XtraBars.Docking2010.Views.BaseView[] {
     this.windowsUIView1});
     //
     // windowsUIView1
     //
     this.windowsUIView1.AddTileWhenCreatingDocument = DevExpress.Utils.DefaultBoolean.False;
     this.windowsUIView1.AllowCaptionDragMove = DevExpress.Utils.DefaultBoolean.True;
     this.windowsUIView1.Caption = "Setup Wizard Caption";
     this.windowsUIView1.ContentContainers.AddRange(new DevExpress.XtraBars.Docking2010.Views.WindowsUI.IContentContainer[] {
     this.pageGroup,
     this.closeFlyout});
     this.windowsUIView1.UseSplashScreen = DevExpress.Utils.DefaultBoolean.False;
     this.windowsUIView1.NavigationBarsShowing += new DevExpress.XtraBars.Docking2010.Views.WindowsUI.NavigationBarsCancelEventHandler(this.windowsUIView1_NavigationBarsShowing);
     this.windowsUIView1.QueryDocumentActions += new DevExpress.XtraBars.Docking2010.Views.WindowsUI.QueryDocumentActionsEventHandler(this.windowsUIView1_QueryDocumentActions);
     this.windowsUIView1.NavigatedTo += new DevExpress.XtraBars.Docking2010.Views.WindowsUI.NavigationEventHandler(this.windowsUIView1_NavigatedTo);
     //
     // pageGroup
     //
     this.pageGroup.ButtonInterval = 30;
     this.pageGroup.Name = "pageGroup";
     this.pageGroup.Properties.ShowPageHeaders = DevExpress.Utils.DefaultBoolean.False;
     //
     // closeFlyout
     //
     this.closeFlyout.Document = null;
     this.closeFlyout.FlyoutButtons = System.Windows.Forms.MessageBoxButtons.YesNo;
     this.closeFlyout.Name = "closeFlyout";
     //
     // imageList1
     //
     this.imageList1.ImageSize = new System.Drawing.Size(32, 32);
     this.imageList1.ImageStream = ((DevExpress.Utils.ImageCollectionStreamer)(resources.GetObject("imageList1.ImageStream")));
     this.imageList1.InsertGalleryImage("backward_32x32.png", "grayscaleimages/navigation/backward_32x32.png", DevExpress.Images.ImageResourceCache.Default.GetImage("grayscaleimages/navigation/backward_32x32.png"), 0);
     this.imageList1.Images.SetKeyName(0, "backward_32x32.png");
     this.imageList1.InsertGalleryImage("forward_32x32.png", "grayscaleimages/navigation/forward_32x32.png", DevExpress.Images.ImageResourceCache.Default.GetImage("grayscaleimages/navigation/forward_32x32.png"), 1);
     this.imageList1.Images.SetKeyName(1, "forward_32x32.png");
     this.imageList1.InsertGalleryImage("cancel_32x32.png", "grayscaleimages/actions/cancel_32x32.png", DevExpress.Images.ImageResourceCache.Default.GetImage("grayscaleimages/actions/cancel_32x32.png"), 2);
     this.imageList1.Images.SetKeyName(2, "cancel_32x32.png");
     //
     // MainForm
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize = new System.Drawing.Size(907, 495);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
     this.Name = "MainForm";
     this.Text = "Wizard";
     ((System.ComponentModel.ISupportInitialize)(this.documentManager1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.windowsUIView1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.pageGroup)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.closeFlyout)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.imageList1)).EndInit();
     this.ResumeLayout(false);
 }