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); }
/// <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.dataSet1 = new System.Data.DataSet(); this.dataTable1 = new System.Data.DataTable(); this.dataColumn1 = new System.Data.DataColumn(); this.dataColumn2 = new System.Data.DataColumn(); this.BarButtonFirst = new DevExpress.XtraBars.BarButtonItem(); this.BarButtonPrev = new DevExpress.XtraBars.BarButtonItem(); this.BarButtonNext = new DevExpress.XtraBars.BarButtonItem(); this.BarButtonLast = new DevExpress.XtraBars.BarButtonItem(); this.dataGridView1 = new System.Windows.Forms.DataGridView(); this.column1DataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.column2DataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.bindingSource1 = new System.Windows.Forms.BindingSource(this.components); this.ribbonControl1 = new DevExpress.XtraBars.Ribbon.RibbonControl(); this.BarButtonAdd = new DevExpress.XtraBars.BarButtonItem(); this.BarButtonDelete = new DevExpress.XtraBars.BarButtonItem(); this.BarButtonEndEdit = new DevExpress.XtraBars.BarButtonItem(); this.BarButtonCancelEdit = new DevExpress.XtraBars.BarButtonItem(); this.ribbonStatusBar1 = new DevExpress.XtraBars.Ribbon.RibbonStatusBar(); ((System.ComponentModel.ISupportInitialize)(this.dataSet1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.dataTable1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.bindingSource1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.ribbonControl1)).BeginInit(); this.SuspendLayout(); // // dataSet1 // this.dataSet1.DataSetName = "NewDataSet"; this.dataSet1.Locale = new System.Globalization.CultureInfo("en-US"); this.dataSet1.Tables.AddRange(new System.Data.DataTable[] { this.dataTable1 }); // // dataTable1 // this.dataTable1.Columns.AddRange(new System.Data.DataColumn[] { this.dataColumn1, this.dataColumn2 }); this.dataTable1.TableName = "Table1"; // // dataColumn1 // this.dataColumn1.ColumnName = "Column1"; // // dataColumn2 // this.dataColumn2.ColumnName = "Column2"; // // BarButtonFirst // this.BarButtonFirst.Caption = "First"; this.BarButtonFirst.Id = 0; this.BarButtonFirst.Name = "BarButtonFirst"; // // BarButtonPrev // this.BarButtonPrev.Caption = "Prev"; this.BarButtonPrev.Id = 1; this.BarButtonPrev.Name = "BarButtonPrev"; // // BarButtonNext // this.BarButtonNext.Caption = "Next"; this.BarButtonNext.Id = 2; this.BarButtonNext.Name = "BarButtonNext"; // // BarButtonLast // this.BarButtonLast.Caption = "Last"; this.BarButtonLast.Id = 3; this.BarButtonLast.Name = "BarButtonLast"; // // dataGridView1 // this.dataGridView1.AutoGenerateColumns = false; this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.column1DataGridViewTextBoxColumn, this.column2DataGridViewTextBoxColumn }); this.dataGridView1.DataSource = this.bindingSource1; this.dataGridView1.Dock = System.Windows.Forms.DockStyle.Fill; this.dataGridView1.Location = new System.Drawing.Point(0, 50); this.dataGridView1.Name = "dataGridView1"; this.dataGridView1.RowTemplate.Height = 24; this.dataGridView1.Size = new System.Drawing.Size(694, 275); this.dataGridView1.TabIndex = 4; // // column1DataGridViewTextBoxColumn // this.column1DataGridViewTextBoxColumn.DataPropertyName = "Column1"; this.column1DataGridViewTextBoxColumn.HeaderText = "Column1"; this.column1DataGridViewTextBoxColumn.Name = "column1DataGridViewTextBoxColumn"; // // column2DataGridViewTextBoxColumn // this.column2DataGridViewTextBoxColumn.DataPropertyName = "Column2"; this.column2DataGridViewTextBoxColumn.HeaderText = "Column2"; this.column2DataGridViewTextBoxColumn.Name = "column2DataGridViewTextBoxColumn"; // // bindingSource1 // this.bindingSource1.DataMember = "Table1"; this.bindingSource1.DataSource = this.dataSet1; // // ribbonControl1 // this.ribbonControl1.ApplicationIcon = null; this.ribbonControl1.Items.AddRange(new DevExpress.XtraBars.BarItem[] { this.BarButtonFirst, this.BarButtonPrev, this.BarButtonNext, this.BarButtonLast, this.BarButtonAdd, this.BarButtonDelete, this.BarButtonEndEdit, this.BarButtonCancelEdit }); this.ribbonControl1.Location = new System.Drawing.Point(0, 0); this.ribbonControl1.MaxItemId = 4; this.ribbonControl1.Name = "ribbonControl1"; this.ribbonControl1.Size = new System.Drawing.Size(694, 50); this.ribbonControl1.StatusBar = this.ribbonStatusBar1; // // BarButtonAdd // this.BarButtonAdd.Caption = "Add"; this.BarButtonAdd.Id = 0; this.BarButtonAdd.Name = "BarButtonAdd"; // // BarButtonDelete // this.BarButtonDelete.Caption = "Delete"; this.BarButtonDelete.Id = 1; this.BarButtonDelete.Name = "BarButtonDelete"; // // BarButtonEndEdit // this.BarButtonEndEdit.Caption = "EndEdit"; this.BarButtonEndEdit.Id = 2; this.BarButtonEndEdit.Name = "BarButtonEndEdit"; // // BarButtonCancelEdit // this.BarButtonCancelEdit.Caption = "CancelEdit"; this.BarButtonCancelEdit.Id = 3; this.BarButtonCancelEdit.Name = "BarButtonCancelEdit"; // // ribbonStatusBar1 // this.ribbonStatusBar1.ItemLinks.Add(this.BarButtonFirst); this.ribbonStatusBar1.ItemLinks.Add(this.BarButtonPrev); this.ribbonStatusBar1.ItemLinks.Add(this.BarButtonNext); this.ribbonStatusBar1.ItemLinks.Add(this.BarButtonLast); this.ribbonStatusBar1.ItemLinks.Add(this.BarButtonAdd); this.ribbonStatusBar1.ItemLinks.Add(this.BarButtonDelete); this.ribbonStatusBar1.ItemLinks.Add(this.BarButtonEndEdit); this.ribbonStatusBar1.ItemLinks.Add(this.BarButtonCancelEdit); this.ribbonStatusBar1.Location = new System.Drawing.Point(0, 298); this.ribbonStatusBar1.Name = "ribbonStatusBar1"; this.ribbonStatusBar1.Ribbon = this.ribbonControl1; this.ribbonStatusBar1.Size = new System.Drawing.Size(694, 27); // // Form1 // this.AutoScaleBaseSize = new System.Drawing.Size(6, 16); this.ClientSize = new System.Drawing.Size(694, 325); this.Controls.Add(this.ribbonStatusBar1); this.Controls.Add(this.dataGridView1); this.Controls.Add(this.ribbonControl1); this.Name = "Form1"; this.Ribbon = this.ribbonControl1; this.StatusBar = this.ribbonStatusBar1; this.Text = "Form1"; this.Load += new System.EventHandler(this.Form1_Load); ((System.ComponentModel.ISupportInitialize)(this.dataSet1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.dataTable1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.bindingSource1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.ribbonControl1)).EndInit(); this.ResumeLayout(false); }
public void OnImportsSatisfied() { this._ribbon = new DevExpress.XtraBars.Ribbon.RibbonControl(); this.backstageMenu = new DevExpress.XtraBars.Ribbon.ApplicationMenu(); this.ribbonStatusBar = new DevExpress.XtraBars.Ribbon.RibbonStatusBar(); this.defaultStatusPanel = new DevExpress.XtraBars.BarStaticItem(); this.defaultProgressPanel = new DevExpress.XtraBars.BarEditItem(); this.defaultProgressBar = new DevExpress.XtraEditors.Repository.RepositoryItemProgressBar(); ((System.ComponentModel.ISupportInitialize)(this._ribbon)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.backstageMenu)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.defaultProgressBar)).BeginInit(); Shell.SuspendLayout(); // // ribbon // this._ribbon.ApplicationButtonDropDownControl = this.backstageMenu; this._ribbon.ApplicationButtonText = "File"; this._ribbon.ExpandCollapseItem.Id = 0; this._ribbon.ExpandCollapseItem.Name = ""; this._ribbon.Items.AddRange(new DevExpress.XtraBars.BarItem[] { this._ribbon.ExpandCollapseItem, this.defaultStatusPanel, this.defaultProgressPanel }); this._ribbon.Location = new System.Drawing.Point(0, 0); this._ribbon.MaxItemId = 9; this._ribbon.AutoSizeItems = true; this._ribbon.Name = "ribbon"; this._ribbon.RepositoryItems.AddRange(new DevExpress.XtraEditors.Repository.RepositoryItem[] { this.defaultProgressBar }); this._ribbon.RibbonStyle = DevExpress.XtraBars.Ribbon.RibbonControlStyle.Office2010; this._ribbon.Size = new System.Drawing.Size(790, 50); this._ribbon.StatusBar = this.ribbonStatusBar; this._ribbon.ToolbarLocation = DevExpress.XtraBars.Ribbon.RibbonQuickAccessToolbarLocation.Hidden; // The Application Button is not visible in the Office 2007 paint style, unless you place the RibbonControl onto a RibbonForm. //http://documentation.devexpress.com/#WindowsForms/DevExpressXtraBarsRibbonRibbonControl_ShowApplicationButtontopic this._ribbon.ShowApplicationButton = DefaultBoolean.True; this._ribbon.SelectedPageChanged += new EventHandler(Ribbon_SelectedPageChanged); // // backstageMenu // this.backstageMenu.Name = "backstageMenu"; this.backstageMenu.Ribbon = this._ribbon; // // ribbonStatusBar // this.ribbonStatusBar.ItemLinks.Add(this.defaultStatusPanel); this.ribbonStatusBar.ItemLinks.Add(this.defaultProgressPanel); this.ribbonStatusBar.Location = new System.Drawing.Point(0, 468); this.ribbonStatusBar.Name = "ribbonStatusBar"; this.ribbonStatusBar.Ribbon = this._ribbon; this.ribbonStatusBar.Size = new System.Drawing.Size(790, 31); // // defaultStatusPanel // this.defaultStatusPanel.Caption = "Ready."; this.defaultStatusPanel.Id = 4; this.defaultStatusPanel.Name = "defaultStatusPanel"; this.defaultStatusPanel.TextAlignment = System.Drawing.StringAlignment.Near; // // defaultProgressPanel // this.defaultProgressPanel.Alignment = DevExpress.XtraBars.BarItemLinkAlignment.Right; this.defaultProgressPanel.Edit = this.defaultProgressBar; this.defaultProgressPanel.EditValue = "50"; this.defaultProgressPanel.Id = 5; this.defaultProgressPanel.Name = "defaultProgressPanel"; this.defaultProgressPanel.Width = 100; this.defaultProgressPanel.Visibility = BarItemVisibility.Never; // // repositoryItemProgressBar1 // this.defaultProgressBar.Name = "defaultProgressBar"; Shell.Controls.Add(this.ribbonStatusBar); Shell.Controls.Add(this._ribbon); // If it is a DevExpress.XtraBars.Ribbon.RibbonForm... var form = Shell as DevExpress.XtraBars.Ribbon.RibbonForm; if (form != null) { form.Ribbon = this._ribbon; form.StatusBar = this.ribbonStatusBar; } ((System.ComponentModel.ISupportInitialize)(this._ribbon)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.backstageMenu)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.defaultProgressBar)).EndInit(); Shell.ResumeLayout(false); }