private void XtraForm1_Load(object sender, EventArgs e) { BarManager barManager = new BarManager(); barManager.Form = this; // Create a bar with a New button. barManager.BeginUpdate(); Bar bar = new Bar(barManager, "My Bar"); bar.DockStyle = BarDockStyle.Top; barManager.MainMenu = bar; BarItem barItem = new BarButtonItem(barManager, "New"); barItem.ItemClick += new ItemClickEventHandler(barItem_ItemClick); bar.ItemLinks.Add(barItem); barManager.EndUpdate(); // Create an XtraTabbedMdiManager that will manage MDI child windows. mdiManager = new XtraTabbedMdiManager(components); mdiManager.MdiParent = this; mdiManager.PageAdded += MdiManager_PageAdded; XtraForm2 f = new XtraForm2(); f.Text = "Child Form " + (++ctr).ToString(); f.MdiParent = this; f.Show(); }
public MainForm() { InitializeComponent(); XtraTabbedMdiManager mdiManager = new XtraTabbedMdiManager(); mdiManager.MdiParent = this; MenuAyarla(); //hastaListesiToolStripMenuItem_Click(DoktorOdasiToolStripMenuItem, null); lblaktifkullanici.Text = "Aktif Kullanıcı:" + Current.User.ToString(); lbltarih.Text = System.DateTime.Today.ToString(); lbldoktorgorevililce.Click += new EventHandler(lbldoktorgorevililce_Click); cmbaktifdoktor.SelectedValueChanged += new EventHandler(cmbaktifdoktor_SelectedValueChanged); tt.Tick += new EventHandler(tt_Tick); //cmbaktifdoktor.DataSource = sqlclientUtil.OpenSqlIntoDataTable("select Adi+' '+Soyadi Kullanici,Id from Kullanici where aktif=1"); //cmbaktifdoktor.DisplayMember = "Doktor"; //cmbaktifdoktor.ValueMember = "Id"; //if (Current.User.Doktor.Id > 0) //{ // cmbaktifdoktor.Text = Current.AktifDoktor.Adi + " " + Current.AktifDoktor.Soyadi; // lbldoktorgorevililce.Text = "Doktor Görev İl/İlçe:" + Current.AktifDoktor.LokasyonSehir.Adi + "/" + Current.AktifDoktor.Lokasyonilce.Adi; // if (lbldoktorgorevililce.Text == "/") // lbldoktorgorevililce.Text = "Görev Yeri Bilgisi Eksik!"; //} cmbaktifdoktor.Enabled = Current.User.IsAdmin || Current.User.IsDoktorDegistirebilir; ilkacilis = false; tt.Start(); this.Text = "Power Scada Versiyon:" + Application.ProductVersion; }
private SplashScreenManager loading; // 加载等待处理 public PageManager(Form parent, XtraTabbedMdiManager xtraTabbedMdiMgr) { this.parent = parent; this.xtraTabbedMdiMgr = xtraTabbedMdiMgr; // 初始化界面加载的进度指示 loading = new SplashScreenManager(parent, typeof(LoadingForm), true, true); }
public void Register(XtraTabbedMdiManager manager) { if (!managers.Contains(manager)) { managers.Add(manager); } }
/// <summary> /// 应用当前设置 /// </summary> /// <param name="layout">The layout.</param> private void ApplySetting(ShellLayout layout) { BarManager barManager = WorkItem.RootWorkItem.Items.Get <BarManager>(UIExtensionSiteNames.Shell_Bar_Manager); if (barManager != null) { Bar bar = barManager.Bars["StatusBar"]; if (bar != null) { bar.Visible = layout.ShowStatusBar; } } XtraNavBarWorkspace naviPane = WorkItem.RootWorkItem.Items.Get <XtraNavBarWorkspace>(UIExtensionSiteNames.Shell_Workspace_NaviPane); if (naviPane != null) { naviPane.PaintStyleName = layout.NavPaintStyleName; } XtraTabbedMdiManager mdiManager = WorkItem.RootWorkItem.Items.Get <XtraTabbedMdiManager>(UIExtensionSiteNames.Shell_Manager_TabbedMdiManager); if (Shell != null && mdiManager != null) { mdiManager.MdiParent = layout.WindowLayoutMode == WindowLayoutMode.Tabbed ? Shell : null; } UserLookAndFeel.Default.SetSkinStyle(layout.DefaultSkin); }
private void frmMainForm_Load(object sender, EventArgs e) { loadSkin(); XtraTabbedMdiManager mdiManager = new XtraTabbedMdiManager(); mdiManager.MdiParent = this; check_chucnang.Checked = true; }
public void BoundChildPagesBackColor(XtraTabbedMdiManager xmdi) { xmdi.PageAdded += xmdi_PageAdded; for (int i = 0; i < xmdi.Pages.Count; i++) { xmdi.Pages[i].Appearance.Header.BackColor = TabColor[i % 6]; } }
public void UnBoundChildPagesBackColor(XtraTabbedMdiManager xmdi) { xmdi.PageAdded -= xmdi_PageAdded; foreach (XtraMdiTabPage page in xmdi.Pages) { page.Appearance.Header.BackColor = Color.Empty; } }
void CloseAll_Click(object sender, EventArgs e) { XtraTabbedMdiManager[] array = new XtraTabbedMdiManager[managers.Count]; managers.CopyTo(array, 0); for (int i = 0; i < array.Length; i++) { array[i].MdiParent.Close(); } }
void InitXtraTabbledMidManager() { xtraTabbedMdiManager = new XtraTabbedMdiManager(); if (null == xtraTabbedMdiManager) { return; } xtraTabbedMdiManager.ClosePageButtonShowMode = ClosePageButtonShowMode.InActiveTabPageHeader; xtraTabbedMdiManager.MdiParent = this; }
/// <summary> /// Initializes a new <see cref="XtraTabWorkspace"/> /// </summary> public XtraTabbedMdiWorkspace(Form parentForm, XtraTabbedMdiManager pTabbedMdiManager) : base(parentForm) { tabbedMdiManager = pTabbedMdiManager; tabbedMdiManager.MdiParent = parentForm; parentMdiForm = parentForm; parentMdiForm.IsMdiContainer = true; Initialize(); SetMdiMode(); }
/// <summary> /// Initializes a new instance of the <see cref="XtraWindowMenu"/> class. /// </summary> /// <param name="bar">The bar.</param> /// <param name="mdiManager">The MDI manager.</param> /// <param name="shell">The shell.</param> public XtraWindowMenu(Bar bar, XtraTabbedMdiManager mdiManager, Form shell) { this.bar = bar; this.mdiManager = mdiManager; this.shell = shell; Manager = bar.Manager; utility = new WindowMenuUtility(mdiManager, shell); Popup += new EventHandler(XtraWindowMenu_Popup); Caption = "窗口(&W)"; AddAllMenuItems(); }
private void xtraTabbedMdiManager1_PageRemoved(object sender, MdiTabPageEventArgs e) { XtraTabbedMdiManager xtraTabbedMdiManager = ((XtraTabbedMdiManager)sender); PageFormModel deletePageFormModel = null; foreach (KeyValuePair <string, PageFormModel> kvp in LiContexts.LiContext.pageFormModels) { if (xtraTabbedMdiManager.Pages[kvp.Value.liForm] == null) { deletePageFormModel = kvp.Value; } } if (deletePageFormModel != null) { LiContexts.LiContext.pageFormModels.Remove(deletePageFormModel.ToString()); } }
/// <summary> /// 构建插件单元 /// </summary> /// <param name="caller">调用者</param> /// <param name="context">上下文,用于存放在构建时需要的组件</param> /// <param name="element">插件单元</param> /// <param name="subItems">被构建的子对象列表</param> /// <returns>构建好的插件单元</returns> public object BuildItem(object caller, WorkItem context, AddInElement element, ArrayList subItems) { Guard.ArgumentNotNull(context, "插件构建上下文对象"); if (element.Configuration.Attributes["label"] == null) { throw new AddInException(String.Format("没有为类型为 \"{0}\" 的插件单元{1}提供label属性。", element.ClassName, element.Id)); } string label = element.Configuration.Attributes["label"]; Form shell = context.Items.Get <Form>(UIExtensionSiteNames.Shell); Bar bar = context.Items.Get <Bar>(UIExtensionSiteNames.Shell_Bar_Mainmenu); XtraTabbedMdiManager mdiManager = context.Items.Get <XtraTabbedMdiManager>(UIExtensionSiteNames.Shell_Manager_TabbedMdiManager); Guard.ArgumentNotNull(bar, "Main menu bar."); Guard.ArgumentNotNull(shell, "Shell"); Guard.ArgumentNotNull(mdiManager, "Tabbed mdi manager."); XtraWindowMenu item = new XtraWindowMenu(bar, mdiManager, shell); item.Caption = label; item.Name = element.Name; BarManager barManager = BuilderUtility.GetBarManager(context); if (barManager != null) { item.Id = barManager.GetNewItemId(); // 为BarItem设置Id方便正确的保存和恢复其状态 } if (!String.IsNullOrEmpty(element.Path) && context.UIExtensionSites.Contains(element.Path)) { context.UIExtensionSites[element.Path].Add(item); } // 注册插件单元 if (element.Configuration.Attributes["register"] != null) { bool register = bool.Parse(element.Configuration.Attributes["register"]); if (register) { context.UIExtensionSites.RegisterSite(BuilderUtility.CombinPath(element.Path, element.Id), item); } } return(item); }
/// <summary> /// Bindings the property. /// </summary> public void BindingProperty() { XtraTabbedMdiManager mdiManager = WorkItem.RootWorkItem.Items.Get <XtraTabbedMdiManager>(UIExtensionSiteNames.Shell_Manager_TabbedMdiManager); if (mdiManager != null) { rgLayout.SelectedIndex = mdiManager.MdiParent != null ? 0 : 1; } XtraNavBarWorkspace naviPane = WorkItem.RootWorkItem.Items.Get <XtraNavBarWorkspace>(UIExtensionSiteNames.Shell_Workspace_NaviPane); if (naviPane != null) { switch (naviPane.PaintStyleName) { case NAVIBAR_OUTLOOKSTYLE: rgNaviPane.SelectedIndex = 0; break; case NAVIBAR_EXPLORERSTYLE: rgNaviPane.SelectedIndex = 1; break; default: rgNaviPane.SelectedIndex = 0; break; } } BarManager barManager = WorkItem.RootWorkItem.Items.Get <BarManager>(UIExtensionSiteNames.Shell_Bar_Manager); if (barManager != null) { Bar bar = barManager.Bars["StatusBar"]; if (bar != null) { chkShowStatusBar.Checked = bar.Visible; } } cbeSkin.Text = UserLookAndFeel.Default.ActiveSkinName; }
private void Form_Main_Load(object sender, EventArgs e) { DocGiaoDien_Main(); XtraTabbedMdiManager mdiManager = new XtraTabbedMdiManager(); mdiManager.MdiParent = this; var form = Application.OpenForms["FrmReport_WithoutTime"] as FrmReport_WithoutTime; if (form != null) { form.Activate(); } FrmReport_WithoutTime frm = new FrmReport_WithoutTime(new UCReport_BaoCaoThuocCanDate()); // Set the Parent Form of the Child window. frm.MdiParent = this; frm.Text = "Báo cáo thuốc cận date"; // Display the new form. frm.Show(); }
public static void OpenMdiChildForm(RibbonForm index, XtraUserControl uc, XtraTabbedMdiManager tab) { bool found = false; foreach (XtraForm frm in index.MdiChildren) { if (frm.Name.Equals(uc.Name)) { found = true; break; } } if (found) { foreach (XtraMdiTabPage _tab in tab.Pages) { if (_tab.Text.ToLower().Equals(LanguageEngine.GetOpenFormText(uc.Name, ConfigEngine.Language).ToLower())) { tab.SelectedPage = _tab; break; } } } else { XtraForm frm = new XtraForm(); frm.Text = LanguageEngine.GetOpenFormText(uc.Name, ConfigEngine.Language); frm.Name = uc.Name; frm.MdiParent = index; uc.Dock = DockStyle.Fill; frm.Controls.Clear(); frm.Controls.Add(uc); frm.Show(); } }
private void InitializeComponent() { this.components = new Container(); ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(FormMain)); this.panelControl1 = new PanelControl(); this.panelControl5 = new PanelControl(); this.labelControl2 = new LabelControl(); this.labelControl1 = new LabelControl(); this.panelControl3 = new PanelControl(); this.labelControl6 = new LabelControl(); this.labelControl5 = new LabelControl(); this.ribbonControl1 = new RibbonControl(); this.ribbonGalleryBarItem1 = new RibbonGalleryBarItem(); this.barButtonItem1 = new BarButtonItem(); this.barButtonItem2 = new BarButtonItem(); this.ribbonPage1 = new RibbonPage(); this.ribbonPageGroup1 = new RibbonPageGroup(); this.ribbonPageGroup2 = new RibbonPageGroup(); this.repositoryItemPictureEdit1 = new RepositoryItemPictureEdit(); this.repositoryItemPictureEdit2 = new RepositoryItemPictureEdit(); this.repositoryItemPictureEdit3 = new RepositoryItemPictureEdit(); this.repositoryItemPictureEdit4 = new RepositoryItemPictureEdit(); this.panelControl6 = new PanelControl(); this.panelControl2 = new PanelControl(); this.pictureEdit9 = new PictureEdit(); this.panelControl4 = new PanelControl(); this.simpleButton5 = new SimpleButton(); this.simpleButton2 = new SimpleButton(); this.textEdit1 = new TextEdit(); this.simpleButton1 = new SimpleButton(); this.simpleButton4 = new SimpleButton(); this.simpleButton3 = new SimpleButton(); this.imageCollection1 = new ImageCollection(this.components); this.timer1 = new System.Windows.Forms.Timer(this.components); this.navBarControl1 = new NavBarControl(); this.navBarGroup1 = new NavBarGroup(); this.navBarItem8 = new NavBarItem(); this.navBarItem1 = new NavBarItem(); this.navBarItem2 = new NavBarItem(); this.navBarItem3 = new NavBarItem(); this.navBarItem4 = new NavBarItem(); this.navBarItem5 = new NavBarItem(); this.navBarItem6 = new NavBarItem(); this.navBarItem7 = new NavBarItem(); this.xtraTabbedMdiManager1 = new XtraTabbedMdiManager(this.components); this.barManager1 = new BarManager(this.components); this.bar3 = new Bar(); this.barStaticItem1 = new BarStaticItem(); this.barStaticItem2 = new BarStaticItem(); this.barDockControlTop = new BarDockControl(); this.barDockControlBottom = new BarDockControl(); this.barDockControlLeft = new BarDockControl(); this.barDockControlRight = new BarDockControl(); this.timer2 = new System.Windows.Forms.Timer(this.components); ((ISupportInitialize)this.panelControl1).BeginInit(); this.panelControl1.SuspendLayout(); ((ISupportInitialize)this.panelControl5).BeginInit(); this.panelControl5.SuspendLayout(); ((ISupportInitialize)this.panelControl3).BeginInit(); this.panelControl3.SuspendLayout(); ((ISupportInitialize)this.ribbonControl1).BeginInit(); ((ISupportInitialize)this.repositoryItemPictureEdit1).BeginInit(); ((ISupportInitialize)this.repositoryItemPictureEdit2).BeginInit(); ((ISupportInitialize)this.repositoryItemPictureEdit3).BeginInit(); ((ISupportInitialize)this.repositoryItemPictureEdit4).BeginInit(); ((ISupportInitialize)this.panelControl6).BeginInit(); this.panelControl6.SuspendLayout(); ((ISupportInitialize)this.panelControl2).BeginInit(); this.panelControl2.SuspendLayout(); ((ISupportInitialize)this.pictureEdit9.Properties).BeginInit(); ((ISupportInitialize)this.panelControl4).BeginInit(); this.panelControl4.SuspendLayout(); ((ISupportInitialize)this.textEdit1.Properties).BeginInit(); ((ISupportInitialize)this.imageCollection1).BeginInit(); ((ISupportInitialize)this.navBarControl1).BeginInit(); ((ISupportInitialize)this.xtraTabbedMdiManager1).BeginInit(); ((ISupportInitialize)this.barManager1).BeginInit(); base.SuspendLayout(); this.panelControl1.Controls.Add(this.panelControl5); this.panelControl1.Controls.Add(this.panelControl3); this.panelControl1.Controls.Add(this.ribbonControl1); this.panelControl1.Dock = DockStyle.Top; this.panelControl1.Location = new Point(0, 0); this.panelControl1.Name = "panelControl1"; this.panelControl1.Size = new Size(826, 99); this.panelControl1.TabIndex = 3; this.panelControl5.Anchor = (AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Right); this.panelControl5.Controls.Add(this.labelControl2); this.panelControl5.Controls.Add(this.labelControl1); this.panelControl5.Location = new Point(635, 6); this.panelControl5.Name = "panelControl5"; this.panelControl5.Size = new Size(167, 88); this.panelControl5.TabIndex = 8; this.labelControl2.Anchor = (AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right); this.labelControl2.Appearance.TextOptions.HAlignment = HorzAlignment.Near; this.labelControl2.Location = new Point(24, 55); this.labelControl2.Name = "labelControl2"; this.labelControl2.Size = new Size(84, 14); this.labelControl2.TabIndex = 1; this.labelControl2.Text = "发动机转速:无"; this.labelControl1.Anchor = (AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right); this.labelControl1.Location = new Point(22, 17); this.labelControl1.Name = "labelControl1"; this.labelControl1.Size = new Size(120, 14); this.labelControl1.TabIndex = 0; this.labelControl1.Text = "发动机冷却液温度:无"; this.panelControl3.Anchor = (AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right); this.panelControl3.Controls.Add(this.labelControl6); this.panelControl3.Controls.Add(this.labelControl5); this.panelControl3.Location = new Point(319, 5); this.panelControl3.Name = "panelControl3"; this.panelControl3.Size = new Size(225, 88); this.panelControl3.TabIndex = 2; this.panelControl3.Resize += new EventHandler(this.panelControl3_Resize); this.labelControl6.Appearance.Font = new Font("Tahoma", 10.5f, FontStyle.Regular, GraphicsUnit.Point, 0); this.labelControl6.Location = new Point(83, 34); this.labelControl6.Name = "labelControl6"; this.labelControl6.Size = new Size(79, 17); this.labelControl6.TabIndex = 1; this.labelControl6.Text = "labelControl6"; this.labelControl5.Anchor = (AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right); this.labelControl5.Appearance.Font = new Font("Tahoma", 15f, FontStyle.Bold, GraphicsUnit.Point, 0); this.labelControl5.Appearance.ForeColor = Color.Orange; this.labelControl5.Appearance.TextOptions.HAlignment = HorzAlignment.Center; this.labelControl5.Appearance.TextOptions.VAlignment = VertAlignment.Center; this.labelControl5.Location = new Point(60, 5); this.labelControl5.Name = "labelControl5"; this.labelControl5.Size = new Size(135, 24); this.labelControl5.TabIndex = 0; this.labelControl5.Text = "labelControl5"; this.ribbonControl1.AllowKeyTips = false; this.ribbonControl1.AllowMdiChildButtons = false; this.ribbonControl1.AllowMinimizeRibbon = false; this.ribbonControl1.AllowTrimPageText = false; this.ribbonControl1.ApplicationButtonDropDownControl = this.barDockControlRight; this.ribbonControl1.ExpandCollapseItem.Id = 0; this.ribbonControl1.Items.AddRange(new BarItem[] { this.ribbonControl1.ExpandCollapseItem, this.ribbonGalleryBarItem1, this.barButtonItem1, this.barButtonItem2 }); this.ribbonControl1.Location = new Point(2, 2); this.ribbonControl1.MaxItemId = 1; this.ribbonControl1.Name = "ribbonControl1"; this.ribbonControl1.Pages.AddRange(new RibbonPage[] { this.ribbonPage1 }); this.ribbonControl1.RepositoryItems.AddRange(new RepositoryItem[] { this.repositoryItemPictureEdit1, this.repositoryItemPictureEdit2, this.repositoryItemPictureEdit3, this.repositoryItemPictureEdit4 }); this.ribbonControl1.RightToLeft = RightToLeft.Yes; this.ribbonControl1.ShowCategoryInCaption = false; this.ribbonControl1.ShowExpandCollapseButton = DefaultBoolean.False; this.ribbonControl1.ShowFullScreenButton = DefaultBoolean.False; this.ribbonControl1.ShowPageHeadersMode = ShowPageHeadersMode.Hide; this.ribbonControl1.ShowToolbarCustomizeItem = false; this.ribbonControl1.Size = new Size(822, 98); this.ribbonControl1.Toolbar.ShowCustomizeItem = false; this.ribbonControl1.ToolbarLocation = RibbonQuickAccessToolbarLocation.Hidden; this.ribbonGalleryBarItem1.Caption = "ribbonGalleryBarItem1"; this.ribbonGalleryBarItem1.CategoryGuid = new Guid("6ffddb2b-9015-4d97-a4c1-91613e0ef537"); this.ribbonGalleryBarItem1.Gallery.ItemClick += new GalleryItemClickEventHandler(this.ribbonGalleryBarItem1_GalleryItemClick); this.ribbonGalleryBarItem1.Id = 1; this.ribbonGalleryBarItem1.Name = "ribbonGalleryBarItem1"; this.ribbonGalleryBarItem1.GalleryItemClick += new GalleryItemClickEventHandler(this.ribbonGalleryBarItem1_GalleryItemClick); this.barButtonItem1.Caption = "最小化"; this.barButtonItem1.CategoryGuid = new Guid("6ffddb2b-9015-4d97-a4c1-91613e0ef537"); this.barButtonItem1.Glyph = (Image)componentResourceManager.GetObject("barButtonItem1.Glyph"); this.barButtonItem1.Id = 12; this.barButtonItem1.LargeGlyph = (Image)componentResourceManager.GetObject("barButtonItem1.LargeGlyph"); this.barButtonItem1.Name = "barButtonItem1"; this.barButtonItem1.ItemClick += new ItemClickEventHandler(this.barButtonItem1_ItemClick); this.barButtonItem2.Caption = "关闭"; this.barButtonItem2.CategoryGuid = new Guid("6ffddb2b-9015-4d97-a4c1-91613e0ef537"); this.barButtonItem2.Glyph = (Image)componentResourceManager.GetObject("barButtonItem2.Glyph"); this.barButtonItem2.Id = 13; this.barButtonItem2.LargeGlyph = (Image)componentResourceManager.GetObject("barButtonItem2.LargeGlyph"); this.barButtonItem2.Name = "barButtonItem2"; this.barButtonItem2.ItemClick += new ItemClickEventHandler(this.barButtonItem2_ItemClick); this.ribbonPage1.Groups.AddRange(new RibbonPageGroup[] { this.ribbonPageGroup1, this.ribbonPageGroup2 }); this.ribbonPage1.Name = "ribbonPage1"; this.ribbonPage1.Text = "ribbonPage1"; this.ribbonPageGroup1.AllowTextClipping = false; this.ribbonPageGroup1.ItemLinks.Add(this.ribbonGalleryBarItem1); this.ribbonPageGroup1.Name = "ribbonPageGroup1"; this.ribbonPageGroup1.ShowCaptionButton = false; this.ribbonPageGroup1.Text = "换肤"; this.ribbonPageGroup2.AllowMinimize = false; this.ribbonPageGroup2.AllowTextClipping = false; this.ribbonPageGroup2.ItemLinks.Add(this.barButtonItem1); this.ribbonPageGroup2.ItemLinks.Add(this.barButtonItem2); this.ribbonPageGroup2.Name = "ribbonPageGroup2"; this.ribbonPageGroup2.ShowCaptionButton = false; this.repositoryItemPictureEdit1.Name = "repositoryItemPictureEdit1"; this.repositoryItemPictureEdit2.Name = "repositoryItemPictureEdit2"; this.repositoryItemPictureEdit3.Name = "repositoryItemPictureEdit3"; this.repositoryItemPictureEdit3.PictureAlignment = ContentAlignment.MiddleLeft; this.repositoryItemPictureEdit4.Name = "repositoryItemPictureEdit4"; this.panelControl6.Controls.Add(this.panelControl2); this.panelControl6.Controls.Add(this.panelControl4); this.panelControl6.Dock = DockStyle.Bottom; this.panelControl6.Location = new Point(167, 189); this.panelControl6.Name = "panelControl6"; this.panelControl6.Size = new Size(659, 391); this.panelControl6.TabIndex = 2; this.panelControl6.Visible = false; this.panelControl2.Controls.Add(this.pictureEdit9); this.panelControl2.Dock = DockStyle.Fill; this.panelControl2.Location = new Point(2, 2); this.panelControl2.Name = "panelControl2"; this.panelControl2.Size = new Size(655, 348); this.panelControl2.TabIndex = 2; this.pictureEdit9.BackgroundImage = (Image)componentResourceManager.GetObject("pictureEdit9.BackgroundImage"); this.pictureEdit9.Dock = DockStyle.Fill; this.pictureEdit9.Location = new Point(2, 2); this.pictureEdit9.Name = "pictureEdit9"; this.pictureEdit9.Properties.ShowMenu = false; this.pictureEdit9.Properties.SizeMode = PictureSizeMode.Stretch; this.pictureEdit9.Size = new Size(651, 344); this.pictureEdit9.TabIndex = 0; this.panelControl4.Controls.Add(this.simpleButton5); this.panelControl4.Controls.Add(this.simpleButton2); this.panelControl4.Controls.Add(this.textEdit1); this.panelControl4.Controls.Add(this.simpleButton1); this.panelControl4.Controls.Add(this.simpleButton4); this.panelControl4.Controls.Add(this.simpleButton3); this.panelControl4.Dock = DockStyle.Bottom; this.panelControl4.Location = new Point(2, 350); this.panelControl4.Name = "panelControl4"; this.panelControl4.Size = new Size(655, 39); this.panelControl4.TabIndex = 1; this.simpleButton5.Anchor = (AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left); this.simpleButton5.Enabled = false; this.simpleButton5.Location = new Point(81, 2); this.simpleButton5.Name = "simpleButton5"; this.simpleButton5.Size = new Size(78, 35); this.simpleButton5.TabIndex = 16; this.simpleButton5.Text = "关闭仪表显示"; this.simpleButton5.Visible = false; this.simpleButton5.Click += new EventHandler(this.simpleButton5_Click); this.simpleButton2.Dock = DockStyle.Left; this.simpleButton2.Location = new Point(2, 2); this.simpleButton2.Name = "simpleButton2"; this.simpleButton2.Size = new Size(78, 35); this.simpleButton2.TabIndex = 15; this.simpleButton2.Text = "打开仪表显示"; this.simpleButton2.Visible = false; this.simpleButton2.Click += new EventHandler(this.simpleButton2_Click); this.textEdit1.Location = new Point(224, 1); this.textEdit1.MenuManager = this.ribbonControl1; this.textEdit1.Name = "textEdit1"; this.textEdit1.Size = new Size(90, 20); this.textEdit1.TabIndex = 14; this.textEdit1.Visible = false; this.simpleButton1.Location = new Point(320, 0); this.simpleButton1.Name = "simpleButton1"; this.simpleButton1.Size = new Size(86, 23); this.simpleButton1.TabIndex = 13; this.simpleButton1.Text = "定位(测试)"; this.simpleButton1.Visible = false; this.simpleButton1.Click += new EventHandler(this.simpleButton1_Click); this.simpleButton4.Dock = DockStyle.Right; this.simpleButton4.Enabled = false; this.simpleButton4.Location = new Point(570, 2); this.simpleButton4.Name = "simpleButton4"; this.simpleButton4.Size = new Size(83, 35); this.simpleButton4.TabIndex = 12; this.simpleButton4.Text = "关闭检测显示"; this.simpleButton4.Click += new EventHandler(this.simpleButton4_Click); this.simpleButton3.Anchor = (AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Right); this.simpleButton3.Location = new Point(491, 2); this.simpleButton3.Name = "simpleButton3"; this.simpleButton3.Size = new Size(78, 35); this.simpleButton3.TabIndex = 11; this.simpleButton3.Text = "打开检测显示"; this.simpleButton3.Click += new EventHandler(this.simpleButton3_Click); this.imageCollection1.ImageStream = (ImageCollectionStreamer)componentResourceManager.GetObject("imageCollection1.ImageStream"); this.imageCollection1.Images.SetKeyName(0, "close.png"); this.imageCollection1.Images.SetKeyName(1, "close-01.png"); this.imageCollection1.Images.SetKeyName(2, "small.png"); this.imageCollection1.Images.SetKeyName(3, "small-01.png"); this.imageCollection1.Images.SetKeyName(4, "NoSchematic.png"); this.timer1.Interval = 1000; this.timer1.Tick += new EventHandler(this.timer1_Tick); this.navBarControl1.ActiveGroup = this.navBarGroup1; this.navBarControl1.Dock = DockStyle.Left; this.navBarControl1.Groups.AddRange(new NavBarGroup[] { this.navBarGroup1 }); this.navBarControl1.Items.AddRange(new NavBarItem[] { this.navBarItem1, this.navBarItem2, this.navBarItem3, this.navBarItem4, this.navBarItem5, this.navBarItem6, this.navBarItem7, this.navBarItem8 }); this.navBarControl1.Location = new Point(0, 99); this.navBarControl1.Name = "navBarControl1"; this.navBarControl1.OptionsNavPane.ExpandedWidth = 167; this.navBarControl1.OptionsNavPane.ShowGroupImageInHeader = true; this.navBarControl1.OptionsNavPane.ShowOverflowButton = false; this.navBarControl1.PaintStyleKind = NavBarViewKind.NavigationPane; this.navBarControl1.Size = new Size(167, 481); this.navBarControl1.TabIndex = 7; this.navBarControl1.Text = " "; this.navBarGroup1.Caption = "功能导航"; this.navBarGroup1.Expanded = true; this.navBarGroup1.GroupStyle = NavBarGroupStyle.LargeIconsText; this.navBarGroup1.ItemLinks.AddRange(new NavBarItemLink[] { new NavBarItemLink(this.navBarItem8), new NavBarItemLink(this.navBarItem1), new NavBarItemLink(this.navBarItem2), new NavBarItemLink(this.navBarItem3), new NavBarItemLink(this.navBarItem4), new NavBarItemLink(this.navBarItem5), new NavBarItemLink(this.navBarItem6), new NavBarItemLink(this.navBarItem7) }); this.navBarGroup1.LargeImage = (Image)componentResourceManager.GetObject("navBarGroup1.LargeImage"); this.navBarGroup1.Name = "navBarGroup1"; this.navBarGroup1.TopVisibleLinkIndex = 1; this.navBarItem8.Caption = "模块信息"; this.navBarItem8.LargeImage = (Image)componentResourceManager.GetObject("navBarItem8.LargeImage"); this.navBarItem8.Name = "navBarItem8"; this.navBarItem8.LinkClicked += new NavBarLinkEventHandler(this.navBarItem8_LinkClicked); this.navBarItem1.Appearance.Image = (Image)componentResourceManager.GetObject("navBarItem1.Appearance.Image"); this.navBarItem1.Appearance.Options.UseImage = true; this.navBarItem1.Caption = "历史数据"; this.navBarItem1.LargeImage = (Image)componentResourceManager.GetObject("navBarItem1.LargeImage"); this.navBarItem1.Name = "navBarItem1"; this.navBarItem1.LinkClicked += new NavBarLinkEventHandler(this.navBarItem1_LinkClicked); this.navBarItem2.Caption = "实训考核"; this.navBarItem2.LargeImage = (Image)componentResourceManager.GetObject("navBarItem2.LargeImage"); this.navBarItem2.Name = "navBarItem2"; this.navBarItem2.LinkClicked += new NavBarLinkEventHandler(this.navBarItem2_LinkClicked); this.navBarItem3.Caption = "波形监控"; this.navBarItem3.LargeImage = (Image)componentResourceManager.GetObject("navBarItem3.LargeImage"); this.navBarItem3.Name = "navBarItem3"; this.navBarItem3.Visible = false; this.navBarItem3.LinkClicked += new NavBarLinkEventHandler(this.navBarItem3_LinkClicked); this.navBarItem4.Caption = "历史波形"; this.navBarItem4.LargeImage = (Image)componentResourceManager.GetObject("navBarItem4.LargeImage"); this.navBarItem4.Name = "navBarItem4"; this.navBarItem4.Visible = false; this.navBarItem4.LinkClicked += new NavBarLinkEventHandler(this.navBarItem4_LinkClicked); this.navBarItem5.Caption = "资料共享"; this.navBarItem5.LargeImage = (Image)componentResourceManager.GetObject("navBarItem5.LargeImage"); this.navBarItem5.Name = "navBarItem5"; this.navBarItem5.Visible = false; this.navBarItem5.LinkClicked += new NavBarLinkEventHandler(this.navBarItem5_LinkClicked); this.navBarItem6.Caption = "参数设置"; this.navBarItem6.LargeImage = (Image)componentResourceManager.GetObject("navBarItem6.LargeImage"); this.navBarItem6.Name = "navBarItem6"; this.navBarItem6.LinkClicked += new NavBarLinkEventHandler(this.navBarItem6_LinkClicked); this.navBarItem7.Caption = "查看电路图"; this.navBarItem7.LargeImage = (Image)componentResourceManager.GetObject("navBarItem7.LargeImage"); this.navBarItem7.Name = "navBarItem7"; this.navBarItem7.LinkClicked += new NavBarLinkEventHandler(this.navBarItem7_LinkClicked); this.xtraTabbedMdiManager1.HeaderButtons = TabButtons.None; this.xtraTabbedMdiManager1.HeaderButtonsShowMode = TabButtonShowMode.Never; this.xtraTabbedMdiManager1.MdiParent = this; this.barManager1.Bars.AddRange(new Bar[] { 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.Form = this; this.barManager1.Items.AddRange(new BarItem[] { this.barStaticItem1, this.barStaticItem2 }); this.barManager1.MaxItemId = 2; this.barManager1.StatusBar = this.bar3; this.bar3.BarName = "Status bar"; this.bar3.CanDockStyle = BarCanDockStyle.Bottom; this.bar3.DockCol = 0; this.bar3.DockRow = 0; this.bar3.DockStyle = BarDockStyle.Bottom; this.bar3.LinksPersistInfo.AddRange(new LinkPersistInfo[] { new LinkPersistInfo(this.barStaticItem1), new LinkPersistInfo(this.barStaticItem2) }); this.bar3.OptionsBar.AllowQuickCustomization = false; this.bar3.OptionsBar.DrawDragBorder = false; this.bar3.OptionsBar.UseWholeRow = true; this.bar3.Text = "Status bar"; this.barStaticItem1.Caption = "当前登录用户:"; this.barStaticItem1.Id = 0; this.barStaticItem1.Name = "barStaticItem1"; this.barStaticItem1.TextAlignment = StringAlignment.Near; this.barStaticItem2.Alignment = BarItemLinkAlignment.Right; this.barStaticItem2.Caption = "系统时间:"; this.barStaticItem2.Id = 1; this.barStaticItem2.Name = "barStaticItem2"; this.barStaticItem2.TextAlignment = StringAlignment.Near; this.barDockControlTop.CausesValidation = false; this.barDockControlTop.Dock = DockStyle.Top; this.barDockControlTop.Location = new Point(0, 0); this.barDockControlTop.Size = new Size(826, 0); this.barDockControlBottom.CausesValidation = false; this.barDockControlBottom.Dock = DockStyle.Bottom; this.barDockControlBottom.Location = new Point(0, 580); this.barDockControlBottom.Size = new Size(826, 27); this.barDockControlLeft.CausesValidation = false; this.barDockControlLeft.Dock = DockStyle.Left; this.barDockControlLeft.Location = new Point(0, 0); this.barDockControlLeft.Size = new Size(0, 580); this.barDockControlRight.CausesValidation = false; this.barDockControlRight.Dock = DockStyle.Right; this.barDockControlRight.Location = new Point(826, 0); this.barDockControlRight.Size = new Size(0, 580); this.timer2.Interval = 500; this.timer2.Tick += new EventHandler(this.timer2_Tick); base.AutoScaleDimensions = new SizeF(7f, 14f); base.AutoScaleMode = AutoScaleMode.Font; base.ClientSize = new Size(826, 607); base.Controls.Add(this.panelControl6); base.Controls.Add(this.navBarControl1); base.Controls.Add(this.panelControl1); base.Controls.Add(this.barDockControlLeft); base.Controls.Add(this.barDockControlRight); base.Controls.Add(this.barDockControlBottom); base.Controls.Add(this.barDockControlTop); base.FormBorderStyle = FormBorderStyle.None; base.Icon = (Icon)componentResourceManager.GetObject("$this.Icon"); base.IsMdiContainer = true; base.Name = "FormMain"; this.Text = "整车设故考核系统"; base.WindowState = FormWindowState.Maximized; base.Load += new EventHandler(this.FrmMain_Load); ((ISupportInitialize)this.panelControl1).EndInit(); this.panelControl1.ResumeLayout(false); ((ISupportInitialize)this.panelControl5).EndInit(); this.panelControl5.ResumeLayout(false); this.panelControl5.PerformLayout(); ((ISupportInitialize)this.panelControl3).EndInit(); this.panelControl3.ResumeLayout(false); this.panelControl3.PerformLayout(); ((ISupportInitialize)this.ribbonControl1).EndInit(); ((ISupportInitialize)this.repositoryItemPictureEdit1).EndInit(); ((ISupportInitialize)this.repositoryItemPictureEdit2).EndInit(); ((ISupportInitialize)this.repositoryItemPictureEdit3).EndInit(); ((ISupportInitialize)this.repositoryItemPictureEdit4).EndInit(); ((ISupportInitialize)this.panelControl6).EndInit(); this.panelControl6.ResumeLayout(false); ((ISupportInitialize)this.panelControl2).EndInit(); this.panelControl2.ResumeLayout(false); ((ISupportInitialize)this.pictureEdit9.Properties).EndInit(); ((ISupportInitialize)this.panelControl4).EndInit(); this.panelControl4.ResumeLayout(false); ((ISupportInitialize)this.textEdit1.Properties).EndInit(); ((ISupportInitialize)this.imageCollection1).EndInit(); ((ISupportInitialize)this.navBarControl1).EndInit(); ((ISupportInitialize)this.xtraTabbedMdiManager1).EndInit(); ((ISupportInitialize)this.barManager1).EndInit(); base.ResumeLayout(false); }
private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormMain)); this.panelControl2 = new DevExpress.XtraEditors.PanelControl(); this.simpleButton1 = new DevExpress.XtraEditors.SimpleButton(); this.ribbonControl1 = new DevExpress.XtraBars.Ribbon.RibbonControl(); this.ribbonGalleryBarItem1 = new DevExpress.XtraBars.RibbonGalleryBarItem(); this.barStaticItem5 = new DevExpress.XtraBars.BarStaticItem(); this.barStaticItem6 = new DevExpress.XtraBars.BarStaticItem(); this.ribbonPage1 = new DevExpress.XtraBars.Ribbon.RibbonPage(); this.ribbonPageGroup1 = new DevExpress.XtraBars.Ribbon.RibbonPageGroup(); this.ribbonPageGroup2 = new DevExpress.XtraBars.Ribbon.RibbonPageGroup(); this.ribbonPageGroup3 = new DevExpress.XtraBars.Ribbon.RibbonPageGroup(); this.repositoryItemGridLookUpEdit1 = new DevExpress.XtraEditors.Repository.RepositoryItemGridLookUpEdit(); this.repositoryItemGridLookUpEdit1View = new DevExpress.XtraGrid.Views.Grid.GridView(); this.repositoryItemSearchLookUpEdit1 = new DevExpress.XtraEditors.Repository.RepositoryItemSearchLookUpEdit(); this.repositoryItemSearchLookUpEdit1View = new DevExpress.XtraGrid.Views.Grid.GridView(); this.navBarControl1 = new DevExpress.XtraNavBar.NavBarControl(); this.navBarGroup3 = new DevExpress.XtraNavBar.NavBarGroup(); this.navBarItem9 = new DevExpress.XtraNavBar.NavBarItem(); this.navBarItem11 = new DevExpress.XtraNavBar.NavBarItem(); this.navBarItem8 = new DevExpress.XtraNavBar.NavBarItem(); this.navBarItem10 = new DevExpress.XtraNavBar.NavBarItem(); this.navBarGroup1 = new DevExpress.XtraNavBar.NavBarGroup(); this.navBarItem1 = new DevExpress.XtraNavBar.NavBarItem(); this.navBarItem2 = new DevExpress.XtraNavBar.NavBarItem(); this.navBarGroup2 = new DevExpress.XtraNavBar.NavBarGroup(); this.navBarItem3 = new DevExpress.XtraNavBar.NavBarItem(); this.navBarItem5 = new DevExpress.XtraNavBar.NavBarItem(); this.navBarItem6 = new DevExpress.XtraNavBar.NavBarItem(); this.navBarGroup5 = new DevExpress.XtraNavBar.NavBarGroup(); this.navBarItem12 = new DevExpress.XtraNavBar.NavBarItem(); this.navBarGroup4 = new DevExpress.XtraNavBar.NavBarGroup(); this.navBarItem14 = new DevExpress.XtraNavBar.NavBarItem(); this.navBarItem4 = new DevExpress.XtraNavBar.NavBarItem(); this.navBarItem7 = new DevExpress.XtraNavBar.NavBarItem(); this.panelControl1 = new DevExpress.XtraEditors.PanelControl(); this.button1 = new System.Windows.Forms.Button(); this.labelControl2 = new DevExpress.XtraEditors.LabelControl(); this.toggleSwitch1 = new DevExpress.XtraEditors.ToggleSwitch(); this.labelControl1 = new DevExpress.XtraEditors.LabelControl(); this.xtraTabbedMdiManager1 = new DevExpress.XtraTabbedMdi.XtraTabbedMdiManager(this.components); this.barManager2 = new DevExpress.XtraBars.BarManager(this.components); this.bar3 = new DevExpress.XtraBars.Bar(); this.barStaticItem1 = new DevExpress.XtraBars.BarStaticItem(); this.barStaticItem2 = new DevExpress.XtraBars.BarStaticItem(); this.bar1 = new DevExpress.XtraBars.Bar(); this.barLargeButtonItem2 = new DevExpress.XtraBars.BarLargeButtonItem(); this.barLargeButtonItem3 = new DevExpress.XtraBars.BarLargeButtonItem(); this.barStaticItem4 = new DevExpress.XtraBars.BarStaticItem(); this.barStaticItem3 = new DevExpress.XtraBars.BarStaticItem(); this.barLargeButtonItem4 = new DevExpress.XtraBars.BarLargeButtonItem(); this.barLargeButtonItem5 = new DevExpress.XtraBars.BarLargeButtonItem(); 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.barLargeButtonItem1 = new DevExpress.XtraBars.BarLargeButtonItem(); this.PCschematic = new DevExpress.XtraEditors.PanelControl(); this.panelControl5 = new DevExpress.XtraEditors.PanelControl(); this.PEschematic = new DevExpress.XtraEditors.PictureEdit(); this.imageCollection1 = new DevExpress.Utils.ImageCollection(this.components); this.timer1 = new System.Windows.Forms.Timer(this.components); ((System.ComponentModel.ISupportInitialize)(this.panelControl2)).BeginInit(); this.panelControl2.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.ribbonControl1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemGridLookUpEdit1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemGridLookUpEdit1View)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemSearchLookUpEdit1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemSearchLookUpEdit1View)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.navBarControl1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.panelControl1)).BeginInit(); this.panelControl1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.toggleSwitch1.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.xtraTabbedMdiManager1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.barManager2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.PCschematic)).BeginInit(); this.PCschematic.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.panelControl5)).BeginInit(); this.panelControl5.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.PEschematic.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.imageCollection1)).BeginInit(); this.SuspendLayout(); // // panelControl2 // this.panelControl2.Controls.Add(this.simpleButton1); this.panelControl2.Controls.Add(this.ribbonControl1); this.panelControl2.Dock = System.Windows.Forms.DockStyle.Top; this.panelControl2.Location = new System.Drawing.Point(0, 30); this.panelControl2.Name = "panelControl2"; this.panelControl2.Size = new System.Drawing.Size(807, 98); this.panelControl2.TabIndex = 7; // // simpleButton1 // this.simpleButton1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Right))); this.simpleButton1.Appearance.BackColor = System.Drawing.Color.Lime; this.simpleButton1.Appearance.Options.UseBackColor = true; this.simpleButton1.Appearance.Options.UseTextOptions = true; this.simpleButton1.Appearance.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap; this.simpleButton1.ButtonStyle = DevExpress.XtraEditors.Controls.BorderStyles.Style3D; this.simpleButton1.Location = new System.Drawing.Point(764, 5); this.simpleButton1.Name = "simpleButton1"; this.simpleButton1.Size = new System.Drawing.Size(41, 87); this.simpleButton1.TabIndex = 3; this.simpleButton1.Tag = "关闭状态"; this.simpleButton1.Text = "打开实时数据通道"; this.simpleButton1.Visible = false; this.simpleButton1.Click += new System.EventHandler(this.simpleButton1_Click); // // ribbonControl1 // this.ribbonControl1.AllowKeyTips = false; this.ribbonControl1.AllowMdiChildButtons = false; this.ribbonControl1.AllowMinimizeRibbon = false; this.ribbonControl1.AllowTrimPageText = false; this.ribbonControl1.ExpandCollapseItem.Id = 0; this.ribbonControl1.Items.AddRange(new DevExpress.XtraBars.BarItem[] { this.ribbonControl1.ExpandCollapseItem, this.ribbonGalleryBarItem1, this.barStaticItem5, this.barStaticItem6 }); this.ribbonControl1.Location = new System.Drawing.Point(2, 2); this.ribbonControl1.MaxItemId = 92; this.ribbonControl1.Name = "ribbonControl1"; this.ribbonControl1.Pages.AddRange(new DevExpress.XtraBars.Ribbon.RibbonPage[] { this.ribbonPage1 }); this.ribbonControl1.RepositoryItems.AddRange(new DevExpress.XtraEditors.Repository.RepositoryItem[] { this.repositoryItemGridLookUpEdit1, this.repositoryItemSearchLookUpEdit1 }); this.ribbonControl1.ShowCategoryInCaption = false; this.ribbonControl1.ShowDisplayOptionsMenuButton = DevExpress.Utils.DefaultBoolean.False; this.ribbonControl1.ShowExpandCollapseButton = DevExpress.Utils.DefaultBoolean.False; this.ribbonControl1.ShowPageHeadersMode = DevExpress.XtraBars.Ribbon.ShowPageHeadersMode.Hide; this.ribbonControl1.ShowToolbarCustomizeItem = false; this.ribbonControl1.Size = new System.Drawing.Size(803, 120); this.ribbonControl1.Toolbar.ShowCustomizeItem = false; this.ribbonControl1.ToolbarLocation = DevExpress.XtraBars.Ribbon.RibbonQuickAccessToolbarLocation.Hidden; // // ribbonGalleryBarItem1 // this.ribbonGalleryBarItem1.Caption = "ribbonGalleryBarItem1"; this.ribbonGalleryBarItem1.CategoryGuid = new System.Guid("6ffddb2b-9015-4d97-a4c1-91613e0ef537"); // // // this.ribbonGalleryBarItem1.Gallery.ItemClick += new DevExpress.XtraBars.Ribbon.GalleryItemClickEventHandler(this.ribbonGalleryBarItem1_GalleryItemClick); this.ribbonGalleryBarItem1.Id = 73; this.ribbonGalleryBarItem1.Name = "ribbonGalleryBarItem1"; // // barStaticItem5 // this.barStaticItem5.Caption = "无数据"; this.barStaticItem5.CategoryGuid = new System.Guid("6ffddb2b-9015-4d97-a4c1-91613e0ef537"); this.barStaticItem5.Id = 90; this.barStaticItem5.ItemAppearance.Normal.Font = new System.Drawing.Font("Tahoma", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.barStaticItem5.ItemAppearance.Normal.Options.UseFont = true; this.barStaticItem5.Name = "barStaticItem5"; this.barStaticItem5.RibbonStyle = DevExpress.XtraBars.Ribbon.RibbonItemStyles.Large; // // barStaticItem6 // this.barStaticItem6.Caption = "无数据"; this.barStaticItem6.CategoryGuid = new System.Guid("6ffddb2b-9015-4d97-a4c1-91613e0ef537"); this.barStaticItem6.Id = 91; this.barStaticItem6.ItemAppearance.Normal.Font = new System.Drawing.Font("Tahoma", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.barStaticItem6.ItemAppearance.Normal.Options.UseFont = true; this.barStaticItem6.Name = "barStaticItem6"; this.barStaticItem6.RibbonStyle = DevExpress.XtraBars.Ribbon.RibbonItemStyles.Large; // // ribbonPage1 // this.ribbonPage1.Groups.AddRange(new DevExpress.XtraBars.Ribbon.RibbonPageGroup[] { this.ribbonPageGroup1, this.ribbonPageGroup2, this.ribbonPageGroup3 }); this.ribbonPage1.Name = "ribbonPage1"; this.ribbonPage1.Text = "ribbonPage1"; // // ribbonPageGroup1 // this.ribbonPageGroup1.ItemLinks.Add(this.ribbonGalleryBarItem1); this.ribbonPageGroup1.Name = "ribbonPageGroup1"; this.ribbonPageGroup1.ShowCaptionButton = false; this.ribbonPageGroup1.Text = "换肤"; // // ribbonPageGroup2 // this.ribbonPageGroup2.ItemLinks.Add(this.barStaticItem5); this.ribbonPageGroup2.Name = "ribbonPageGroup2"; this.ribbonPageGroup2.ShowCaptionButton = false; this.ribbonPageGroup2.Text = "发动机冷却液温度"; // // ribbonPageGroup3 // this.ribbonPageGroup3.ItemLinks.Add(this.barStaticItem6); this.ribbonPageGroup3.Name = "ribbonPageGroup3"; this.ribbonPageGroup3.ShowCaptionButton = false; this.ribbonPageGroup3.Text = "发动机转速"; // // repositoryItemGridLookUpEdit1 // this.repositoryItemGridLookUpEdit1.AutoHeight = false; this.repositoryItemGridLookUpEdit1.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo) }); this.repositoryItemGridLookUpEdit1.Name = "repositoryItemGridLookUpEdit1"; this.repositoryItemGridLookUpEdit1.PopupView = this.repositoryItemGridLookUpEdit1View; // // repositoryItemGridLookUpEdit1View // this.repositoryItemGridLookUpEdit1View.FocusRectStyle = DevExpress.XtraGrid.Views.Grid.DrawFocusRectStyle.RowFocus; this.repositoryItemGridLookUpEdit1View.Name = "repositoryItemGridLookUpEdit1View"; this.repositoryItemGridLookUpEdit1View.OptionsSelection.EnableAppearanceFocusedCell = false; this.repositoryItemGridLookUpEdit1View.OptionsView.ShowGroupPanel = false; // // repositoryItemSearchLookUpEdit1 // this.repositoryItemSearchLookUpEdit1.AutoHeight = false; this.repositoryItemSearchLookUpEdit1.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo) }); this.repositoryItemSearchLookUpEdit1.Name = "repositoryItemSearchLookUpEdit1"; this.repositoryItemSearchLookUpEdit1.PopupView = this.repositoryItemSearchLookUpEdit1View; // // repositoryItemSearchLookUpEdit1View // this.repositoryItemSearchLookUpEdit1View.FocusRectStyle = DevExpress.XtraGrid.Views.Grid.DrawFocusRectStyle.RowFocus; this.repositoryItemSearchLookUpEdit1View.Name = "repositoryItemSearchLookUpEdit1View"; this.repositoryItemSearchLookUpEdit1View.OptionsSelection.EnableAppearanceFocusedCell = false; this.repositoryItemSearchLookUpEdit1View.OptionsView.ShowGroupPanel = false; // // navBarControl1 // this.navBarControl1.ActiveGroup = this.navBarGroup3; this.navBarControl1.AllowDrop = false; this.navBarControl1.Dock = System.Windows.Forms.DockStyle.Left; this.navBarControl1.Groups.AddRange(new DevExpress.XtraNavBar.NavBarGroup[] { this.navBarGroup1, this.navBarGroup2, this.navBarGroup5, this.navBarGroup3, this.navBarGroup4 }); this.navBarControl1.Items.AddRange(new DevExpress.XtraNavBar.NavBarItem[] { this.navBarItem1, this.navBarItem2, this.navBarItem3, this.navBarItem5, this.navBarItem6, this.navBarItem8, this.navBarItem10, this.navBarItem14, this.navBarItem4, this.navBarItem7, this.navBarItem11, this.navBarItem9, this.navBarItem12 }); this.navBarControl1.Location = new System.Drawing.Point(0, 128); this.navBarControl1.Name = "navBarControl1"; this.navBarControl1.OptionsNavPane.ExpandedWidth = 172; this.navBarControl1.OptionsNavPane.ShowGroupImageInHeader = true; this.navBarControl1.OptionsNavPane.ShowOverflowButton = false; this.navBarControl1.PaintStyleKind = DevExpress.XtraNavBar.NavBarViewKind.NavigationPane; this.navBarControl1.Size = new System.Drawing.Size(172, 438); this.navBarControl1.StoreDefaultPaintStyleName = true; this.navBarControl1.TabIndex = 3; this.navBarControl1.Text = "功能列表"; this.navBarControl1.LinkClicked += new DevExpress.XtraNavBar.NavBarLinkEventHandler(this.navBarControl1_LinkClicked); // // navBarGroup3 // this.navBarGroup3.Caption = "设故考核"; this.navBarGroup3.Expanded = true; this.navBarGroup3.GroupStyle = DevExpress.XtraNavBar.NavBarGroupStyle.LargeIconsText; this.navBarGroup3.ItemLinks.AddRange(new DevExpress.XtraNavBar.NavBarItemLink[] { new DevExpress.XtraNavBar.NavBarItemLink(this.navBarItem9), new DevExpress.XtraNavBar.NavBarItemLink(this.navBarItem11), new DevExpress.XtraNavBar.NavBarItemLink(this.navBarItem8), new DevExpress.XtraNavBar.NavBarItemLink(this.navBarItem10) }); this.navBarGroup3.Name = "navBarGroup3"; // // navBarItem9 // this.navBarItem9.Caption = "故障点"; this.navBarItem9.Name = "navBarItem9"; this.navBarItem9.LinkClicked += new DevExpress.XtraNavBar.NavBarLinkEventHandler(this.navBarItem9_LinkClicked); // // navBarItem11 // this.navBarItem11.Caption = "系统模块"; this.navBarItem11.Name = "navBarItem11"; this.navBarItem11.LinkClicked += new DevExpress.XtraNavBar.NavBarLinkEventHandler(this.navBarItem11_LinkClicked); // // navBarItem8 // this.navBarItem8.Caption = "设故考核"; this.navBarItem8.Name = "navBarItem8"; this.navBarItem8.LinkClicked += new DevExpress.XtraNavBar.NavBarLinkEventHandler(this.navBarItem8_LinkClicked); // // navBarItem10 // this.navBarItem10.Caption = "考核成绩查询"; this.navBarItem10.Name = "navBarItem10"; this.navBarItem10.LinkClicked += new DevExpress.XtraNavBar.NavBarLinkEventHandler(this.navBarItem10_LinkClicked); // // navBarGroup1 // this.navBarGroup1.Caption = "用户管理"; this.navBarGroup1.GroupStyle = DevExpress.XtraNavBar.NavBarGroupStyle.LargeIconsText; this.navBarGroup1.ItemLinks.AddRange(new DevExpress.XtraNavBar.NavBarItemLink[] { new DevExpress.XtraNavBar.NavBarItemLink(this.navBarItem1), new DevExpress.XtraNavBar.NavBarItemLink(this.navBarItem2) }); this.navBarGroup1.Name = "navBarGroup1"; // // navBarItem1 // this.navBarItem1.Caption = "特权用户"; this.navBarItem1.Name = "navBarItem1"; this.navBarItem1.LinkClicked += new DevExpress.XtraNavBar.NavBarLinkEventHandler(this.navBarItem1_LinkClicked); // // navBarItem2 // this.navBarItem2.Caption = "普通用户"; this.navBarItem2.Name = "navBarItem2"; this.navBarItem2.LinkClicked += new DevExpress.XtraNavBar.NavBarLinkEventHandler(this.navBarItem2_LinkClicked); // // navBarGroup2 // this.navBarGroup2.Caption = "数据显示"; this.navBarGroup2.GroupStyle = DevExpress.XtraNavBar.NavBarGroupStyle.LargeIconsText; this.navBarGroup2.ItemLinks.AddRange(new DevExpress.XtraNavBar.NavBarItemLink[] { new DevExpress.XtraNavBar.NavBarItemLink(this.navBarItem3), new DevExpress.XtraNavBar.NavBarItemLink(this.navBarItem5), new DevExpress.XtraNavBar.NavBarItemLink(this.navBarItem6) }); this.navBarGroup2.Name = "navBarGroup2"; this.navBarGroup2.TopVisibleLinkIndex = 1; this.navBarGroup2.Visible = false; // // navBarItem3 // this.navBarItem3.Caption = "历史数据"; this.navBarItem3.Name = "navBarItem3"; this.navBarItem3.LinkClicked += new DevExpress.XtraNavBar.NavBarLinkEventHandler(this.navBarItem3_LinkClicked); // // navBarItem5 // this.navBarItem5.Caption = "历史波形"; this.navBarItem5.Name = "navBarItem5"; this.navBarItem5.LinkClicked += new DevExpress.XtraNavBar.NavBarLinkEventHandler(this.navBarItem5_LinkClicked); // // navBarItem6 // this.navBarItem6.Caption = "波形监控"; this.navBarItem6.Name = "navBarItem6"; this.navBarItem6.LinkClicked += new DevExpress.XtraNavBar.NavBarLinkEventHandler(this.navBarItem6_LinkClicked); // // navBarGroup5 // this.navBarGroup5.Caption = "实时数据"; this.navBarGroup5.GroupStyle = DevExpress.XtraNavBar.NavBarGroupStyle.LargeIconsText; this.navBarGroup5.ItemLinks.AddRange(new DevExpress.XtraNavBar.NavBarItemLink[] { new DevExpress.XtraNavBar.NavBarItemLink(this.navBarItem12) }); this.navBarGroup5.Name = "navBarGroup5"; // // navBarItem12 // this.navBarItem12.Caption = "实时数据"; this.navBarItem12.Name = "navBarItem12"; this.navBarItem12.LinkClicked += new DevExpress.XtraNavBar.NavBarLinkEventHandler(this.navBarItem12_LinkClicked); // // navBarGroup4 // this.navBarGroup4.Caption = "系统功能"; this.navBarGroup4.GroupStyle = DevExpress.XtraNavBar.NavBarGroupStyle.LargeIconsText; this.navBarGroup4.ItemLinks.AddRange(new DevExpress.XtraNavBar.NavBarItemLink[] { new DevExpress.XtraNavBar.NavBarItemLink(this.navBarItem14), new DevExpress.XtraNavBar.NavBarItemLink(this.navBarItem4), new DevExpress.XtraNavBar.NavBarItemLink(this.navBarItem7) }); this.navBarGroup4.Name = "navBarGroup4"; // // navBarItem14 // this.navBarItem14.Caption = "参数设置"; this.navBarItem14.Name = "navBarItem14"; this.navBarItem14.LinkClicked += new DevExpress.XtraNavBar.NavBarLinkEventHandler(this.navBarItem14_LinkClicked); // // navBarItem4 // this.navBarItem4.Caption = "共享资料"; this.navBarItem4.Name = "navBarItem4"; this.navBarItem4.Visible = false; this.navBarItem4.LinkClicked += new DevExpress.XtraNavBar.NavBarLinkEventHandler(this.navBarItem4_LinkClicked); // // navBarItem7 // this.navBarItem7.Caption = "操作日志"; this.navBarItem7.Name = "navBarItem7"; this.navBarItem7.LinkClicked += new DevExpress.XtraNavBar.NavBarLinkEventHandler(this.navBarItem7_LinkClicked); // // panelControl1 // this.panelControl1.Controls.Add(this.button1); this.panelControl1.Controls.Add(this.labelControl2); this.panelControl1.Controls.Add(this.toggleSwitch1); this.panelControl1.Controls.Add(this.labelControl1); this.panelControl1.Dock = System.Windows.Forms.DockStyle.Top; this.panelControl1.Location = new System.Drawing.Point(172, 128); this.panelControl1.Name = "panelControl1"; this.panelControl1.Size = new System.Drawing.Size(635, 40); this.panelControl1.TabIndex = 7; // // button1 // this.button1.BackColor = System.Drawing.Color.Transparent; this.button1.ForeColor = System.Drawing.Color.Transparent; this.button1.Location = new System.Drawing.Point(-1584, 13); this.button1.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(66, 18); this.button1.TabIndex = 3; this.button1.Text = "button1"; this.button1.UseVisualStyleBackColor = false; this.button1.Click += new System.EventHandler(this.button1_Click); // // labelControl2 // this.labelControl2.Appearance.BackColor = System.Drawing.Color.White; this.labelControl2.Appearance.Font = new System.Drawing.Font("Tahoma", 9F, System.Drawing.FontStyle.Bold); this.labelControl2.Appearance.ForeColor = System.Drawing.Color.Red; this.labelControl2.Appearance.Options.UseBackColor = true; this.labelControl2.Appearance.Options.UseFont = true; this.labelControl2.Appearance.Options.UseForeColor = true; this.labelControl2.Location = new System.Drawing.Point(3, 21); this.labelControl2.Name = "labelControl2"; this.labelControl2.Size = new System.Drawing.Size(65, 14); this.labelControl2.TabIndex = 2; this.labelControl2.Text = "连接模块:"; // // toggleSwitch1 // this.toggleSwitch1.Dock = System.Windows.Forms.DockStyle.Right; this.toggleSwitch1.EditValue = true; this.toggleSwitch1.Location = new System.Drawing.Point(546, 2); this.toggleSwitch1.Name = "toggleSwitch1"; this.toggleSwitch1.Properties.AutoHeight = false; this.toggleSwitch1.Properties.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.Default; this.toggleSwitch1.Properties.GlyphAlignment = DevExpress.Utils.HorzAlignment.Default; this.toggleSwitch1.Properties.OffText = "关"; this.toggleSwitch1.Properties.OnText = "开"; this.toggleSwitch1.Size = new System.Drawing.Size(87, 36); this.toggleSwitch1.TabIndex = 1; this.toggleSwitch1.Toggled += new System.EventHandler(this.toggleSwitch1_Toggled); // // labelControl1 // this.labelControl1.Appearance.BackColor = System.Drawing.Color.White; this.labelControl1.Appearance.Font = new System.Drawing.Font("Tahoma", 9F, System.Drawing.FontStyle.Bold); this.labelControl1.Appearance.ForeColor = System.Drawing.Color.Blue; this.labelControl1.Appearance.Options.UseBackColor = true; this.labelControl1.Appearance.Options.UseFont = true; this.labelControl1.Appearance.Options.UseForeColor = true; this.labelControl1.Dock = System.Windows.Forms.DockStyle.Left; this.labelControl1.Location = new System.Drawing.Point(2, 2); this.labelControl1.Name = "labelControl1"; this.labelControl1.Size = new System.Drawing.Size(65, 14); this.labelControl1.TabIndex = 0; this.labelControl1.Text = "当前模块:"; // // xtraTabbedMdiManager1 // this.xtraTabbedMdiManager1.HeaderButtons = DevExpress.XtraTab.TabButtons.None; this.xtraTabbedMdiManager1.HeaderButtonsShowMode = DevExpress.XtraTab.TabButtonShowMode.Never; this.xtraTabbedMdiManager1.MdiParent = this; // // barManager2 // this.barManager2.AllowMoveBarOnToolbar = false; this.barManager2.AllowQuickCustomization = false; this.barManager2.AllowShowToolbarsPopup = false; this.barManager2.Bars.AddRange(new DevExpress.XtraBars.Bar[] { this.bar3, this.bar1 }); this.barManager2.DockControls.Add(this.barDockControlTop); this.barManager2.DockControls.Add(this.barDockControlBottom); this.barManager2.DockControls.Add(this.barDockControlLeft); this.barManager2.DockControls.Add(this.barDockControlRight); this.barManager2.Form = this; this.barManager2.HideBarsWhenMerging = false; this.barManager2.Items.AddRange(new DevExpress.XtraBars.BarItem[] { this.barStaticItem1, this.barStaticItem2, this.barStaticItem3, this.barLargeButtonItem1, this.barLargeButtonItem2, this.barLargeButtonItem3, this.barLargeButtonItem4, this.barLargeButtonItem5, this.barStaticItem4 }); this.barManager2.MainMenu = this.bar1; this.barManager2.MaxItemId = 20; this.barManager2.MdiMenuMergeStyle = DevExpress.XtraBars.BarMdiMenuMergeStyle.Never; this.barManager2.StatusBar = this.bar3; // // 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.LinksPersistInfo.AddRange(new DevExpress.XtraBars.LinkPersistInfo[] { new DevExpress.XtraBars.LinkPersistInfo(this.barStaticItem1), new DevExpress.XtraBars.LinkPersistInfo(this.barStaticItem2) }); this.bar3.OptionsBar.AllowQuickCustomization = false; this.bar3.OptionsBar.DrawDragBorder = false; this.bar3.OptionsBar.UseWholeRow = true; this.bar3.Text = "Status bar"; // // barStaticItem1 // this.barStaticItem1.Caption = "当前登录用户:"; this.barStaticItem1.Id = 0; this.barStaticItem1.Name = "barStaticItem1"; // // barStaticItem2 // this.barStaticItem2.Alignment = DevExpress.XtraBars.BarItemLinkAlignment.Right; this.barStaticItem2.Caption = "系统时间:"; this.barStaticItem2.Id = 1; this.barStaticItem2.Name = "barStaticItem2"; // // bar1 // this.bar1.BarName = "Custom 3"; this.bar1.DockCol = 0; this.bar1.DockRow = 0; this.bar1.DockStyle = DevExpress.XtraBars.BarDockStyle.Top; this.bar1.LinksPersistInfo.AddRange(new DevExpress.XtraBars.LinkPersistInfo[] { new DevExpress.XtraBars.LinkPersistInfo(DevExpress.XtraBars.BarLinkUserDefines.PaintStyle, this.barLargeButtonItem2, DevExpress.XtraBars.BarItemPaintStyle.CaptionGlyph), new DevExpress.XtraBars.LinkPersistInfo(DevExpress.XtraBars.BarLinkUserDefines.PaintStyle, this.barLargeButtonItem3, "", true, true, true, 0, null, DevExpress.XtraBars.BarItemPaintStyle.CaptionGlyph), new DevExpress.XtraBars.LinkPersistInfo(((DevExpress.XtraBars.BarLinkUserDefines)((DevExpress.XtraBars.BarLinkUserDefines.Caption | DevExpress.XtraBars.BarLinkUserDefines.PaintStyle))), this.barStaticItem4, "整车考核设故系统", true, true, true, 0, null, DevExpress.XtraBars.BarItemPaintStyle.Standard), new DevExpress.XtraBars.LinkPersistInfo(this.barStaticItem3), new DevExpress.XtraBars.LinkPersistInfo(this.barLargeButtonItem4, true), new DevExpress.XtraBars.LinkPersistInfo(this.barLargeButtonItem5, true) }); this.bar1.OptionsBar.DrawDragBorder = false; this.bar1.OptionsBar.MultiLine = true; this.bar1.OptionsBar.UseWholeRow = true; this.bar1.Text = "Custom 3"; // // barLargeButtonItem2 // this.barLargeButtonItem2.Caption = "返回"; this.barLargeButtonItem2.Id = 6; this.barLargeButtonItem2.Name = "barLargeButtonItem2"; this.barLargeButtonItem2.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.barLargeButtonItem2_ItemClick); // // barLargeButtonItem3 // this.barLargeButtonItem3.Caption = "模块连接"; this.barLargeButtonItem3.Id = 7; this.barLargeButtonItem3.Name = "barLargeButtonItem3"; this.barLargeButtonItem3.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.barLargeButtonItem3_ItemClick); // // barStaticItem4 // this.barStaticItem4.Caption = "整车考核设故系统"; this.barStaticItem4.Id = 19; this.barStaticItem4.ItemAppearance.Normal.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(128))))); this.barStaticItem4.ItemAppearance.Normal.Font = new System.Drawing.Font("Tahoma", 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.barStaticItem4.ItemAppearance.Normal.ForeColor = System.Drawing.Color.Orange; this.barStaticItem4.ItemAppearance.Normal.Options.UseBackColor = true; this.barStaticItem4.ItemAppearance.Normal.Options.UseBorderColor = true; this.barStaticItem4.ItemAppearance.Normal.Options.UseFont = true; this.barStaticItem4.ItemAppearance.Normal.Options.UseForeColor = true; this.barStaticItem4.Name = "barStaticItem4"; // // barStaticItem3 // this.barStaticItem3.Alignment = DevExpress.XtraBars.BarItemLinkAlignment.Right; this.barStaticItem3.Caption = "当前模式:"; this.barStaticItem3.Id = 4; this.barStaticItem3.Name = "barStaticItem3"; // // barLargeButtonItem4 // this.barLargeButtonItem4.Caption = "最小化"; this.barLargeButtonItem4.Id = 10; this.barLargeButtonItem4.Name = "barLargeButtonItem4"; this.barLargeButtonItem4.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.barLargeButtonItem4_ItemClick); // // barLargeButtonItem5 // this.barLargeButtonItem5.Caption = "关闭"; this.barLargeButtonItem5.Id = 11; this.barLargeButtonItem5.Name = "barLargeButtonItem5"; this.barLargeButtonItem5.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.barLargeButtonItem5_ItemClick); // // barDockControlTop // this.barDockControlTop.CausesValidation = false; this.barDockControlTop.Dock = System.Windows.Forms.DockStyle.Top; this.barDockControlTop.Location = new System.Drawing.Point(0, 0); this.barDockControlTop.Manager = this.barManager2; this.barDockControlTop.Size = new System.Drawing.Size(807, 30); // // barDockControlBottom // this.barDockControlBottom.CausesValidation = false; this.barDockControlBottom.Dock = System.Windows.Forms.DockStyle.Bottom; this.barDockControlBottom.Location = new System.Drawing.Point(0, 566); this.barDockControlBottom.Manager = this.barManager2; this.barDockControlBottom.Size = new System.Drawing.Size(807, 27); // // barDockControlLeft // this.barDockControlLeft.CausesValidation = false; this.barDockControlLeft.Dock = System.Windows.Forms.DockStyle.Left; this.barDockControlLeft.Location = new System.Drawing.Point(0, 30); this.barDockControlLeft.Manager = this.barManager2; this.barDockControlLeft.Size = new System.Drawing.Size(0, 536); // // barDockControlRight // this.barDockControlRight.CausesValidation = false; this.barDockControlRight.Dock = System.Windows.Forms.DockStyle.Right; this.barDockControlRight.Location = new System.Drawing.Point(807, 30); this.barDockControlRight.Manager = this.barManager2; this.barDockControlRight.Size = new System.Drawing.Size(0, 536); // // barLargeButtonItem1 // this.barLargeButtonItem1.Caption = "返回"; this.barLargeButtonItem1.Id = 5; this.barLargeButtonItem1.Name = "barLargeButtonItem1"; // // PCschematic // this.PCschematic.Controls.Add(this.panelControl5); this.PCschematic.Dock = System.Windows.Forms.DockStyle.Fill; this.PCschematic.Location = new System.Drawing.Point(172, 168); this.PCschematic.Name = "PCschematic"; this.PCschematic.Size = new System.Drawing.Size(635, 398); this.PCschematic.TabIndex = 12; // // panelControl5 // this.panelControl5.Controls.Add(this.PEschematic); this.panelControl5.Dock = System.Windows.Forms.DockStyle.Fill; this.panelControl5.Location = new System.Drawing.Point(2, 2); this.panelControl5.Name = "panelControl5"; this.panelControl5.Size = new System.Drawing.Size(631, 394); this.panelControl5.TabIndex = 2; // // PEschematic // this.PEschematic.Dock = System.Windows.Forms.DockStyle.Fill; this.PEschematic.Location = new System.Drawing.Point(2, 2); this.PEschematic.MenuManager = this.barManager2; this.PEschematic.Name = "PEschematic"; this.PEschematic.Properties.Appearance.BackColor = System.Drawing.Color.White; this.PEschematic.Properties.Appearance.Options.UseBackColor = true; this.PEschematic.Properties.ShowMenu = false; this.PEschematic.Properties.SizeMode = DevExpress.XtraEditors.Controls.PictureSizeMode.Stretch; this.PEschematic.Size = new System.Drawing.Size(627, 390); this.PEschematic.TabIndex = 0; // // imageCollection1 // this.imageCollection1.ImageStream = ((DevExpress.Utils.ImageCollectionStreamer)(resources.GetObject("imageCollection1.ImageStream"))); // // timer1 // this.timer1.Interval = 1000; this.timer1.Tick += new System.EventHandler(this.timer1_Tick); // // FormMain // this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(807, 593); this.Controls.Add(this.PCschematic); this.Controls.Add(this.panelControl1); this.Controls.Add(this.navBarControl1); this.Controls.Add(this.panelControl2); this.Controls.Add(this.barDockControlLeft); this.Controls.Add(this.barDockControlRight); this.Controls.Add(this.barDockControlBottom); this.Controls.Add(this.barDockControlTop); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; this.IsMdiContainer = true; this.Name = "FormMain"; this.Text = "整车考核设故系统"; this.WindowState = System.Windows.Forms.FormWindowState.Maximized; this.Load += new System.EventHandler(this.FormMain_Load); ((System.ComponentModel.ISupportInitialize)(this.panelControl2)).EndInit(); this.panelControl2.ResumeLayout(false); this.panelControl2.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.ribbonControl1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemGridLookUpEdit1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemGridLookUpEdit1View)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemSearchLookUpEdit1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemSearchLookUpEdit1View)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.navBarControl1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.panelControl1)).EndInit(); this.panelControl1.ResumeLayout(false); this.panelControl1.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.toggleSwitch1.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.xtraTabbedMdiManager1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.barManager2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.PCschematic)).EndInit(); this.PCschematic.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.panelControl5)).EndInit(); this.panelControl5.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.PEschematic.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.imageCollection1)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); }
public WindowMenuUtility(XtraTabbedMdiManager mdiManager, Form shell) : this() { MdiManager = mdiManager; Shell = shell; }
/// <summary> /// Initializes a new <see cref="XtraTabWorkspace"/> /// </summary> public XtraTabbedMdiWorkspace() : base() { tabbedMdiManager = new XtraTabbedMdiManager(); Initialize(); }
public DragHelper(XtraTabbedMdiManager manager) { this.manager = manager; }
public static void OpenForm(frmMain index, XtraUserControl uc, string vnTitle, string enTitle, XtraTabbedMdiManager tabMain) { string languageID = new Configuration().Language; bool found = false; foreach (XtraForm frm in index.MdiChildren) { if (frm.Text.Equals((languageID.Equals("vi-VN")) ? vnTitle : enTitle)) { found = true; break; } } if (found) { foreach (XtraMdiTabPage tab in tabMain.Pages) { if (tab.Text.Equals((languageID.Equals("vi-VN")) ? vnTitle : enTitle)) { tabMain.SelectedPage = tab; break; } } } else { XtraForm frm = new XtraForm(); frm.Text = (languageID.Equals("vi-VN")) ? vnTitle : enTitle; frm.MdiParent = index; uc.Dock = DockStyle.Fill; frm.Controls.Clear(); frm.Controls.Add(uc); frm.Show(); } }
public void UnRegister(XtraTabbedMdiManager manager) { managers.Remove(manager); }
private void myTabbedMdiManager1_PageAdded(object sender, MdiTabPageEventArgs e) { XtraTabbedMdiManager tabbedMdi = (XtraTabbedMdiManager)sender; e.Page.ImageIndex = tabbedMdi.Pages.Count - 1; }
/// <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.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(MainForm)); this.barDockMgr = new DevExpress.XtraBars.BarAndDockingController(this.components); this.dockMgr = new DevExpress.XtraBars.Docking.DockManager(); this.pnlCountersTree = new DevExpress.XtraBars.Docking.DockPanel(); this.dockPanel1_Container = new DevExpress.XtraBars.Docking.ControlContainer(); this.cmdNewTab = new DevExpress.XtraBars.BarButtonItem(); this.barSubItem1 = new DevExpress.XtraBars.BarSubItem(); this.barButtonItem1 = new DevExpress.XtraBars.BarButtonItem(); this.barSubItem2 = new DevExpress.XtraBars.BarSubItem(); this.lsttopToolbarImages = new DevExpress.Utils.ImageCollection(this.components); this.tabsMgr = new DevExpress.XtraTabbedMdi.XtraTabbedMdiManager(this.components); this.defaultLookAndFeel1 = new DevExpress.LookAndFeel.DefaultLookAndFeel(this.components); this.imgRibbon = new DevExpress.Utils.ImageCollection(this.components); this.bar4 = new DevExpress.XtraBars.Bar(); this.ribbonMain = new DevExpress.XtraBars.Ribbon.RibbonControl(); this.barButtonGroup1 = new DevExpress.XtraBars.BarButtonGroup(); this.chkPanelCounters = new DevExpress.XtraBars.BarCheckItem(); this.barStaticItem1 = new DevExpress.XtraBars.BarStaticItem(); this.cmdScaleUp = new DevExpress.XtraBars.BarButtonItem(); this.cmdScaleDown = new DevExpress.XtraBars.BarButtonItem(); this.cmdAddCounters = new DevExpress.XtraBars.BarButtonItem(); this.cmdCreateRootNode = new DevExpress.XtraBars.BarButtonItem(); this.cmdCreateChildNode = new DevExpress.XtraBars.BarButtonItem(); this.cmdRemoveNode = new DevExpress.XtraBars.BarButtonItem(); this.cmdCreateFolderFromActiveMonitor = new DevExpress.XtraBars.BarButtonItem(); this.cmdSaveCountersToCurrentFolder = new DevExpress.XtraBars.BarButtonItem(); this.cmdSetCounterMachineNames = new DevExpress.XtraBars.BarButtonItem(); this.cmdAddNodeToNewTab = new DevExpress.XtraBars.BarButtonItem(); this.barButtonItem13 = new DevExpress.XtraBars.BarButtonItem(); this.chkTextReport = new DevExpress.XtraBars.BarCheckItem(); this.chkShowToolbar = new DevExpress.XtraBars.BarCheckItem(); this.chkLegend = new DevExpress.XtraBars.BarCheckItem(); this.chkShowVGrid = new DevExpress.XtraBars.BarCheckItem(); this.chkShowHGrid = new DevExpress.XtraBars.BarCheckItem(); this.barStaticItem2 = new DevExpress.XtraBars.BarStaticItem(); this.cmdRenameFolder = new DevExpress.XtraBars.BarButtonItem(); this.cmdRenameTab = new DevExpress.XtraBars.BarButtonItem(); this.barButtonGroup2 = new DevExpress.XtraBars.BarButtonGroup(); this.cmdImport = new DevExpress.XtraBars.BarButtonItem(); this.cmdExport = new DevExpress.XtraBars.BarButtonItem(); this.barButtonGroup3 = new DevExpress.XtraBars.BarButtonGroup(); this.barButtonGroup4 = new DevExpress.XtraBars.BarButtonGroup(); this.barButtonGroup5 = new DevExpress.XtraBars.BarButtonGroup(); this.barButtonItem2 = new DevExpress.XtraBars.BarButtonItem(); this.barButtonItem3 = new DevExpress.XtraBars.BarButtonItem(); this.barButtonItem4 = new DevExpress.XtraBars.BarButtonItem(); this.barButtonItem5 = new DevExpress.XtraBars.BarButtonItem(); this.barButtonItem6 = new DevExpress.XtraBars.BarButtonItem(); this.barButtonItem7 = new DevExpress.XtraBars.BarButtonItem(); this.lblVersionCaption = new DevExpress.XtraBars.BarStaticItem(); this.lblVersion = new DevExpress.XtraBars.BarStaticItem(); this.cmdCloseTab = new DevExpress.XtraBars.BarButtonItem(); this.cmdSetInstanceName = new DevExpress.XtraBars.BarButtonItem(); this.ribPageGeneral = new DevExpress.XtraBars.Ribbon.RibbonPage(); this.ribbonPageGroup1 = new DevExpress.XtraBars.Ribbon.RibbonPageGroup(); this.ribbonPageGroup2 = new DevExpress.XtraBars.Ribbon.RibbonPageGroup(); this.ribbonPageGroup4 = new DevExpress.XtraBars.Ribbon.RibbonPageGroup(); this.ribbonPageGroup16 = new DevExpress.XtraBars.Ribbon.RibbonPageGroup(); this.ribPageActiveMonitor = new DevExpress.XtraBars.Ribbon.RibbonPage(); this.ribbonPageGroup5 = new DevExpress.XtraBars.Ribbon.RibbonPageGroup(); this.ribbonPageGroup6 = new DevExpress.XtraBars.Ribbon.RibbonPageGroup(); this.ribbonPageGroup3 = new DevExpress.XtraBars.Ribbon.RibbonPageGroup(); this.ribbonPageGroup15 = new DevExpress.XtraBars.Ribbon.RibbonPageGroup(); this.ribPageLibFolder = new DevExpress.XtraBars.Ribbon.RibbonPage(); this.ribbonPageGroup7 = new DevExpress.XtraBars.Ribbon.RibbonPageGroup(); this.ribbonPageGroup12 = new DevExpress.XtraBars.Ribbon.RibbonPageGroup(); this.ribbonPageGroup10 = new DevExpress.XtraBars.Ribbon.RibbonPageGroup(); this.ribbonPageGroup11 = new DevExpress.XtraBars.Ribbon.RibbonPageGroup(); this.ribPageLibCounter = new DevExpress.XtraBars.Ribbon.RibbonPage(); this.ribbonPageGroup13 = new DevExpress.XtraBars.Ribbon.RibbonPageGroup(); this.ribbonPageGroup14 = new DevExpress.XtraBars.Ribbon.RibbonPageGroup(); this.ribbonPage1 = new DevExpress.XtraBars.Ribbon.RibbonPage(); this.ribbonPageGroup17 = new DevExpress.XtraBars.Ribbon.RibbonPageGroup(); this.ribbonPageGroup18 = new DevExpress.XtraBars.Ribbon.RibbonPageGroup(); this.ribbonPageGroup19 = new DevExpress.XtraBars.Ribbon.RibbonPageGroup(); this.ribbonPageGroup20 = new DevExpress.XtraBars.Ribbon.RibbonPageGroup(); this.ribbonStatusBar1 = new DevExpress.XtraBars.Ribbon.RibbonStatusBar(); this.ribbonPageGroup8 = new DevExpress.XtraBars.Ribbon.RibbonPageGroup(); this.ribbonPageGroup9 = new DevExpress.XtraBars.Ribbon.RibbonPageGroup(); this.popupMenu1 = new DevExpress.XtraBars.PopupMenu(this.components); this.popupMenu2 = new DevExpress.XtraBars.PopupMenu(this.components); this.popupMenu3 = new DevExpress.XtraBars.PopupMenu(this.components); this.toolTipController1 = new DevExpress.Utils.ToolTipController(this.components); ((System.ComponentModel.ISupportInitialize)(this.barDockMgr)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.dockMgr)).BeginInit(); this.pnlCountersTree.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.lsttopToolbarImages)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.tabsMgr)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.imgRibbon)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.popupMenu1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.popupMenu2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.popupMenu3)).BeginInit(); this.SuspendLayout(); // // barDockMgr // this.barDockMgr.AppearancesRibbon.PageHeader.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(224)), ((System.Byte)(224)), ((System.Byte)(224))); this.barDockMgr.AppearancesRibbon.PageHeader.BackColor2 = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(192)), ((System.Byte)(192))); this.barDockMgr.AppearancesRibbon.PageHeader.Options.UseBackColor = true; this.barDockMgr.LookAndFeel.Style = DevExpress.LookAndFeel.LookAndFeelStyle.Flat; this.barDockMgr.PaintStyleName = "Skin"; this.barDockMgr.PropertiesBar.AllowLinkLighting = false; // // dockMgr // this.dockMgr.Controller = this.barDockMgr; this.dockMgr.Form = this; this.dockMgr.RootPanels.AddRange(new DevExpress.XtraBars.Docking.DockPanel[] { this.pnlCountersTree}); this.dockMgr.TopZIndexControls.AddRange(new string[] { "DevExpress.XtraBars.BarDockControl", "System.Windows.Forms.StatusBar", "DevExpress.XtraBars.Ribbon.RibbonStatusBar", "DevExpress.XtraBars.Ribbon.RibbonControl"}); // // pnlCountersTree // this.pnlCountersTree.Controls.Add(this.dockPanel1_Container); this.pnlCountersTree.Dock = DevExpress.XtraBars.Docking.DockingStyle.Left; this.pnlCountersTree.ID = new System.Guid("67d03641-787f-4ee4-abc7-e67c35e02bd4"); this.pnlCountersTree.Location = new System.Drawing.Point(0, 144); this.pnlCountersTree.Name = "pnlCountersTree"; this.pnlCountersTree.Size = new System.Drawing.Size(206, 326); this.pnlCountersTree.Text = "Counter Library"; // // dockPanel1_Container // this.dockPanel1_Container.Location = new System.Drawing.Point(3, 25); this.dockPanel1_Container.Name = "dockPanel1_Container"; this.dockPanel1_Container.Size = new System.Drawing.Size(200, 298); this.dockPanel1_Container.TabIndex = 0; // // cmdNewTab // this.cmdNewTab.Caption = "&New tab"; this.cmdNewTab.Glyph = ((System.Drawing.Image)(resources.GetObject("cmdNewTab.Glyph"))); this.cmdNewTab.Hint = "New Tab"; this.cmdNewTab.Id = 3; this.cmdNewTab.ImageIndex = 0; this.cmdNewTab.ItemShortcut = new DevExpress.XtraBars.BarShortcut((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.N)); this.cmdNewTab.Name = "cmdNewTab"; this.cmdNewTab.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.cmdNewTab_ItemClick); // // barSubItem1 // this.barSubItem1.Caption = "&File"; this.barSubItem1.Id = 0; this.barSubItem1.LinksPersistInfo.AddRange(new DevExpress.XtraBars.LinkPersistInfo[] { new DevExpress.XtraBars.LinkPersistInfo(this.barButtonItem1)}); this.barSubItem1.Name = "barSubItem1"; // // barButtonItem1 // this.barButtonItem1.Caption = "E&xit"; this.barButtonItem1.Glyph = ((System.Drawing.Image)(resources.GetObject("barButtonItem1.Glyph"))); this.barButtonItem1.Hint = "Exit"; this.barButtonItem1.Id = 1; this.barButtonItem1.ImageIndex = 1; this.barButtonItem1.Name = "barButtonItem1"; // // barSubItem2 // this.barSubItem2.Caption = "&Tabs"; this.barSubItem2.Id = 2; this.barSubItem2.LinksPersistInfo.AddRange(new DevExpress.XtraBars.LinkPersistInfo[] { new DevExpress.XtraBars.LinkPersistInfo(this.cmdNewTab)}); this.barSubItem2.Name = "barSubItem2"; // // lsttopToolbarImages // this.lsttopToolbarImages.ImageStream = ((DevExpress.Utils.ImageCollectionStreamer)(resources.GetObject("lsttopToolbarImages.ImageStream"))); // // tabsMgr // this.tabsMgr.AllowDragDrop = DevExpress.Utils.DefaultBoolean.True; this.tabsMgr.AppearancePage.HeaderActive.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(192))); this.tabsMgr.AppearancePage.HeaderActive.BorderColor = System.Drawing.Color.Red; this.tabsMgr.AppearancePage.HeaderActive.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold); this.tabsMgr.AppearancePage.HeaderActive.Options.UseBackColor = true; this.tabsMgr.AppearancePage.HeaderActive.Options.UseBorderColor = true; this.tabsMgr.AppearancePage.HeaderActive.Options.UseFont = true; this.tabsMgr.Controller = this.barDockMgr; this.tabsMgr.HeaderButtons = ((DevExpress.XtraTab.TabButtons)(((DevExpress.XtraTab.TabButtons.Prev | DevExpress.XtraTab.TabButtons.Next) | DevExpress.XtraTab.TabButtons.Close))); this.tabsMgr.MdiParent = this; this.tabsMgr.SelectedPageChanged += new System.EventHandler(this.tabsMgr_SelectedPageChanged); this.tabsMgr.MouseDown += new System.Windows.Forms.MouseEventHandler(this.tabsMgr_MouseDown); // // defaultLookAndFeel1 // this.defaultLookAndFeel1.LookAndFeel.SkinName = "The Asphalt World"; // // imgRibbon // this.imgRibbon.ImageStream = ((DevExpress.Utils.ImageCollectionStreamer)(resources.GetObject("imgRibbon.ImageStream"))); // // bar4 // this.bar4.BarName = "barActions"; this.bar4.DockCol = 0; this.bar4.DockRow = 0; this.bar4.DockStyle = DevExpress.XtraBars.BarDockStyle.Top; this.bar4.FloatLocation = new System.Drawing.Point(229, 161); this.bar4.LinksPersistInfo.AddRange(new DevExpress.XtraBars.LinkPersistInfo[] { new DevExpress.XtraBars.LinkPersistInfo(this.barButtonItem1)}); this.bar4.OptionsBar.AllowDelete = true; this.bar4.OptionsBar.AllowQuickCustomization = false; this.bar4.OptionsBar.DisableClose = true; this.bar4.OptionsBar.DisableCustomization = true; this.bar4.OptionsBar.DrawDragBorder = false; this.bar4.OptionsBar.UseWholeRow = true; this.bar4.Text = "Actions"; // // ribbonMain // this.ribbonMain.Images = this.imgRibbon; this.ribbonMain.Items.AddRange(new DevExpress.XtraBars.BarItem[] { this.barSubItem1, this.barButtonItem1, this.barSubItem2, this.cmdNewTab, this.barButtonGroup1, this.chkPanelCounters, this.barStaticItem1, this.cmdScaleUp, this.cmdScaleDown, this.cmdAddCounters, this.cmdCreateRootNode, this.cmdCreateChildNode, this.cmdRemoveNode, this.cmdCreateFolderFromActiveMonitor, this.cmdSaveCountersToCurrentFolder, this.cmdSetCounterMachineNames, this.cmdAddNodeToNewTab, this.barButtonItem13, this.chkTextReport, this.chkShowToolbar, this.chkLegend, this.chkShowVGrid, this.chkShowHGrid, this.barStaticItem2, this.cmdRenameFolder, this.cmdRenameTab, this.barButtonGroup2, this.cmdImport, this.cmdExport, this.barButtonGroup3, this.barButtonGroup4, this.barButtonGroup5, this.barButtonItem2, this.barButtonItem3, this.barButtonItem4, this.barButtonItem5, this.barButtonItem6, this.barButtonItem7, this.lblVersionCaption, this.lblVersion, this.cmdCloseTab, this.cmdSetInstanceName}); this.ribbonMain.Location = new System.Drawing.Point(0, 0); this.ribbonMain.MaxItemId = 42; this.ribbonMain.Name = "ribbonMain"; this.ribbonMain.Pages.AddRange(new DevExpress.XtraBars.Ribbon.RibbonPage[] { this.ribPageGeneral, this.ribPageActiveMonitor, this.ribPageLibFolder, this.ribPageLibCounter, this.ribbonPage1}); this.ribbonMain.SelectedPage = this.ribPageActiveMonitor; this.ribbonMain.Size = new System.Drawing.Size(712, 144); this.ribbonMain.Toolbar.ItemLinks.Add(this.barButtonItem1); this.ribbonMain.Toolbar.ItemLinks.Add(this.cmdNewTab, true); this.ribbonMain.Toolbar.ItemLinks.Add(this.cmdRenameTab); this.ribbonMain.Toolbar.ItemLinks.Add(this.cmdAddCounters, true); this.ribbonMain.ToolbarLocation = DevExpress.XtraBars.Ribbon.RibbonQuickAccessToolbarLocation.Below; this.ribbonMain.SelectedPageChanged += new System.EventHandler(this.ribbonMain_SelectedPageChanged); // // barButtonGroup1 // this.barButtonGroup1.Caption = "barButtonGroup1"; this.barButtonGroup1.Id = 0; this.barButtonGroup1.Name = "barButtonGroup1"; // // chkPanelCounters // this.chkPanelCounters.Caption = "Show Counter Library"; this.chkPanelCounters.Checked = true; this.chkPanelCounters.Glyph = ((System.Drawing.Image)(resources.GetObject("chkPanelCounters.Glyph"))); this.chkPanelCounters.Hint = "Show counter library panel"; this.chkPanelCounters.Id = 1; this.chkPanelCounters.ItemShortcut = new DevExpress.XtraBars.BarShortcut((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.L)); this.chkPanelCounters.LargeGlyph = ((System.Drawing.Image)(resources.GetObject("chkPanelCounters.LargeGlyph"))); this.chkPanelCounters.Name = "chkPanelCounters"; this.chkPanelCounters.PaintStyle = DevExpress.XtraBars.BarItemPaintStyle.Caption; this.chkPanelCounters.CheckedChanged += new DevExpress.XtraBars.ItemClickEventHandler(this.chkPanelCounters_CheckedChanged); // // barStaticItem1 // this.barStaticItem1.Caption = "Actions on the active perfomance monitor"; this.barStaticItem1.Glyph = ((System.Drawing.Image)(resources.GetObject("barStaticItem1.Glyph"))); this.barStaticItem1.Id = 2; this.barStaticItem1.Name = "barStaticItem1"; this.barStaticItem1.RibbonStyle = DevExpress.XtraBars.Ribbon.RibbonItemStyles.Large; this.barStaticItem1.TextAlignment = System.Drawing.StringAlignment.Near; // // cmdScaleUp // this.cmdScaleUp.Caption = "Scale up"; this.cmdScaleUp.Glyph = ((System.Drawing.Image)(resources.GetObject("cmdScaleUp.Glyph"))); this.cmdScaleUp.Hint = "Scale up current counter"; this.cmdScaleUp.Id = 3; this.cmdScaleUp.ItemShortcut = new DevExpress.XtraBars.BarShortcut(System.Windows.Forms.Keys.Add); this.cmdScaleUp.Name = "cmdScaleUp"; this.cmdScaleUp.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.cmdScaleUp_ItemClick); // // cmdScaleDown // this.cmdScaleDown.Caption = "Scale down "; this.cmdScaleDown.Glyph = ((System.Drawing.Image)(resources.GetObject("cmdScaleDown.Glyph"))); this.cmdScaleDown.Hint = "Scale down current counter"; this.cmdScaleDown.Id = 4; this.cmdScaleDown.ItemShortcut = new DevExpress.XtraBars.BarShortcut(System.Windows.Forms.Keys.Subtract); this.cmdScaleDown.Name = "cmdScaleDown"; this.cmdScaleDown.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.barButtonItem3_ItemClick); // // cmdAddCounters // this.cmdAddCounters.Caption = "Add counter(s)"; this.cmdAddCounters.Glyph = ((System.Drawing.Image)(resources.GetObject("cmdAddCounters.Glyph"))); this.cmdAddCounters.Hint = "Add Counters..."; this.cmdAddCounters.Id = 5; this.cmdAddCounters.ItemShortcut = new DevExpress.XtraBars.BarShortcut((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.A)); this.cmdAddCounters.Name = "cmdAddCounters"; this.cmdAddCounters.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.cmdAddCounters_ItemClick); // // cmdCreateRootNode // this.cmdCreateRootNode.Caption = "Create Root"; this.cmdCreateRootNode.Glyph = ((System.Drawing.Image)(resources.GetObject("cmdCreateRootNode.Glyph"))); this.cmdCreateRootNode.Hint = "Create root folder in library"; this.cmdCreateRootNode.Id = 6; this.cmdCreateRootNode.Name = "cmdCreateRootNode"; this.cmdCreateRootNode.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.cmdCreateRootNode_ItemClick); // // cmdCreateChildNode // this.cmdCreateChildNode.Caption = "Create Child"; this.cmdCreateChildNode.Glyph = ((System.Drawing.Image)(resources.GetObject("cmdCreateChildNode.Glyph"))); this.cmdCreateChildNode.Hint = "Create sub folder in library"; this.cmdCreateChildNode.Id = 7; this.cmdCreateChildNode.Name = "cmdCreateChildNode"; this.cmdCreateChildNode.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.cmdCreateChildNode_ItemClick); // // cmdRemoveNode // this.cmdRemoveNode.Caption = "&Remove"; this.cmdRemoveNode.Hint = "Remove folder or counter from library"; this.cmdRemoveNode.Id = 8; this.cmdRemoveNode.ImageIndex = 1; this.cmdRemoveNode.Name = "cmdRemoveNode"; this.cmdRemoveNode.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.cmdRemoveNode_ItemClick); // // cmdCreateFolderFromActiveMonitor // this.cmdCreateFolderFromActiveMonitor.Caption = "Import Tab Counters to new folder"; this.cmdCreateFolderFromActiveMonitor.Glyph = ((System.Drawing.Image)(resources.GetObject("cmdCreateFolderFromActiveMonitor.Glyph"))); this.cmdCreateFolderFromActiveMonitor.Hint = "Import tab counters to a new library folder"; this.cmdCreateFolderFromActiveMonitor.Id = 10; this.cmdCreateFolderFromActiveMonitor.ItemShortcut = new DevExpress.XtraBars.BarShortcut(((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Shift) | System.Windows.Forms.Keys.N)); this.cmdCreateFolderFromActiveMonitor.Name = "cmdCreateFolderFromActiveMonitor"; this.cmdCreateFolderFromActiveMonitor.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.cmdCreateFolderFromActiveMonitor_ItemClick); // // cmdSaveCountersToCurrentFolder // this.cmdSaveCountersToCurrentFolder.Caption = "Import tab counters to selected folder"; this.cmdSaveCountersToCurrentFolder.Glyph = ((System.Drawing.Image)(resources.GetObject("cmdSaveCountersToCurrentFolder.Glyph"))); this.cmdSaveCountersToCurrentFolder.Hint = "Import tab counters to the selected library folder"; this.cmdSaveCountersToCurrentFolder.Id = 11; this.cmdSaveCountersToCurrentFolder.ItemShortcut = new DevExpress.XtraBars.BarShortcut(((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Shift) | System.Windows.Forms.Keys.F)); this.cmdSaveCountersToCurrentFolder.Name = "cmdSaveCountersToCurrentFolder"; this.cmdSaveCountersToCurrentFolder.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.cmdSaveCountersToCurrentFolder_ItemClick); // // cmdSetCounterMachineNames // this.cmdSetCounterMachineNames.Caption = "Set machine name"; this.cmdSetCounterMachineNames.Glyph = ((System.Drawing.Image)(resources.GetObject("cmdSetCounterMachineNames.Glyph"))); this.cmdSetCounterMachineNames.Hint = "set the machine name for the library counter(s)"; this.cmdSetCounterMachineNames.Id = 12; this.cmdSetCounterMachineNames.ItemShortcut = new DevExpress.XtraBars.BarShortcut((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.M)); this.cmdSetCounterMachineNames.Name = "cmdSetCounterMachineNames"; this.cmdSetCounterMachineNames.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.cmdChangeMachinNameForCOunters_ItemClick); // // cmdAddNodeToNewTab // this.cmdAddNodeToNewTab.Caption = "Add folder to new tab"; this.cmdAddNodeToNewTab.Glyph = ((System.Drawing.Image)(resources.GetObject("cmdAddNodeToNewTab.Glyph"))); this.cmdAddNodeToNewTab.Hint = "add this library folder\'s counters to a new tab"; this.cmdAddNodeToNewTab.Id = 13; this.cmdAddNodeToNewTab.ItemShortcut = new DevExpress.XtraBars.BarShortcut(((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Shift) | System.Windows.Forms.Keys.Right)); this.cmdAddNodeToNewTab.Name = "cmdAddNodeToNewTab"; this.cmdAddNodeToNewTab.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.cmdAddNodeToNewTab_ItemClick); // // barButtonItem13 // this.barButtonItem13.Caption = "Add to selected tab"; this.barButtonItem13.Glyph = ((System.Drawing.Image)(resources.GetObject("barButtonItem13.Glyph"))); this.barButtonItem13.Hint = "add this library folder/counter to the current tab"; this.barButtonItem13.Id = 16; this.barButtonItem13.ItemShortcut = new DevExpress.XtraBars.BarShortcut((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Right)); this.barButtonItem13.Name = "barButtonItem13"; this.barButtonItem13.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.barButtonItem13_ItemClick); // // chkTextReport // this.chkTextReport.Caption = "Text Report"; this.chkTextReport.Glyph = ((System.Drawing.Image)(resources.GetObject("chkTextReport.Glyph"))); this.chkTextReport.Hint = "Set the perfmon display to \"Text Report\""; this.chkTextReport.Id = 17; this.chkTextReport.ItemShortcut = new DevExpress.XtraBars.BarShortcut((System.Windows.Forms.Keys.Alt | System.Windows.Forms.Keys.R)); this.chkTextReport.LargeGlyph = ((System.Drawing.Image)(resources.GetObject("chkTextReport.LargeGlyph"))); this.chkTextReport.Name = "chkTextReport"; this.chkTextReport.CheckedChanged += new DevExpress.XtraBars.ItemClickEventHandler(this.chkTextReport_CheckedChanged); // // chkShowToolbar // this.chkShowToolbar.Caption = "Toolbar"; this.chkShowToolbar.Checked = true; this.chkShowToolbar.Glyph = ((System.Drawing.Image)(resources.GetObject("chkShowToolbar.Glyph"))); this.chkShowToolbar.Hint = "Show/Hide the perfmon toolbar"; this.chkShowToolbar.Id = 18; this.chkShowToolbar.ItemShortcut = new DevExpress.XtraBars.BarShortcut((System.Windows.Forms.Keys.Alt | System.Windows.Forms.Keys.T)); this.chkShowToolbar.Name = "chkShowToolbar"; this.chkShowToolbar.CheckedChanged += new DevExpress.XtraBars.ItemClickEventHandler(this.chkShowToolbar_CheckedChanged); // // chkLegend // this.chkLegend.Caption = "Legend"; this.chkLegend.Checked = true; this.chkLegend.Glyph = ((System.Drawing.Image)(resources.GetObject("chkLegend.Glyph"))); this.chkLegend.Hint = "Show/Hide the perfmon legend"; this.chkLegend.Id = 19; this.chkLegend.ItemShortcut = new DevExpress.XtraBars.BarShortcut((System.Windows.Forms.Keys.Alt | System.Windows.Forms.Keys.L)); this.chkLegend.Name = "chkLegend"; this.chkLegend.CheckedChanged += new DevExpress.XtraBars.ItemClickEventHandler(this.chkLegend_CheckedChanged); // // chkShowVGrid // this.chkShowVGrid.Caption = "Vertical Grid Lines"; this.chkShowVGrid.Glyph = ((System.Drawing.Image)(resources.GetObject("chkShowVGrid.Glyph"))); this.chkShowVGrid.Hint = "Show/Hide perfmon vertical grid lines"; this.chkShowVGrid.Id = 20; this.chkShowVGrid.ItemShortcut = new DevExpress.XtraBars.BarShortcut((System.Windows.Forms.Keys.Alt | System.Windows.Forms.Keys.V)); this.chkShowVGrid.Name = "chkShowVGrid"; this.chkShowVGrid.CheckedChanged += new DevExpress.XtraBars.ItemClickEventHandler(this.chkShowVGrid_CheckedChanged); // // chkShowHGrid // this.chkShowHGrid.Caption = "Horizontal Grid Lines"; this.chkShowHGrid.Glyph = ((System.Drawing.Image)(resources.GetObject("chkShowHGrid.Glyph"))); this.chkShowHGrid.Hint = "Show/Hide perfmon Horizontal grid lines"; this.chkShowHGrid.Id = 21; this.chkShowHGrid.ItemShortcut = new DevExpress.XtraBars.BarShortcut((System.Windows.Forms.Keys.Alt | System.Windows.Forms.Keys.H)); this.chkShowHGrid.Name = "chkShowHGrid"; this.chkShowHGrid.CheckedChanged += new DevExpress.XtraBars.ItemClickEventHandler(this.chkShowHGrid_CheckedChanged); // // barStaticItem2 // this.barStaticItem2.Caption = "Perf+ " + ""; this.barStaticItem2.Id = 22; this.barStaticItem2.Name = "barStaticItem2"; this.barStaticItem2.TextAlignment = System.Drawing.StringAlignment.Near; // // cmdRenameFolder // this.cmdRenameFolder.Caption = "&Rename"; this.cmdRenameFolder.Id = 23; this.cmdRenameFolder.Name = "cmdRenameFolder"; this.cmdRenameFolder.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.cmdRenameFolder_ItemClick); // // cmdRenameTab // this.cmdRenameTab.Caption = "&Rename Tab"; this.cmdRenameTab.Glyph = ((System.Drawing.Image)(resources.GetObject("cmdRenameTab.Glyph"))); this.cmdRenameTab.Hint = "Rename Tab"; this.cmdRenameTab.Id = 25; this.cmdRenameTab.ItemShortcut = new DevExpress.XtraBars.BarShortcut((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.R)); this.cmdRenameTab.Name = "cmdRenameTab"; this.cmdRenameTab.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.cmdRenameTab_ItemClick); // // barButtonGroup2 // this.barButtonGroup2.Caption = "Share"; this.barButtonGroup2.Id = 26; this.barButtonGroup2.Name = "barButtonGroup2"; // // cmdImport // this.cmdImport.Caption = "&Import Library..."; this.cmdImport.Glyph = ((System.Drawing.Image)(resources.GetObject("cmdImport.Glyph"))); this.cmdImport.Hint = "Import existing library counters from file"; this.cmdImport.Id = 27; this.cmdImport.ItemShortcut = new DevExpress.XtraBars.BarShortcut((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.I)); this.cmdImport.Name = "cmdImport"; this.cmdImport.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.cmdImport_ItemClick); // // cmdExport // this.cmdExport.Caption = "Export Library..."; this.cmdExport.Glyph = ((System.Drawing.Image)(resources.GetObject("cmdExport.Glyph"))); this.cmdExport.Hint = "Export coutner library to file"; this.cmdExport.Id = 28; this.cmdExport.ItemShortcut = new DevExpress.XtraBars.BarShortcut((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.E)); this.cmdExport.Name = "cmdExport"; this.cmdExport.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.cmdExport_ItemClick); // // barButtonGroup3 // this.barButtonGroup3.Caption = "barButtonGroup3"; this.barButtonGroup3.Id = 29; this.barButtonGroup3.Name = "barButtonGroup3"; // // barButtonGroup4 // this.barButtonGroup4.Caption = "View ptions"; this.barButtonGroup4.Id = 30; this.barButtonGroup4.ItemLinks.Add(this.chkLegend); this.barButtonGroup4.ItemLinks.Add(this.chkShowToolbar); this.barButtonGroup4.Name = "barButtonGroup4"; // // barButtonGroup5 // this.barButtonGroup5.Caption = "barButtonGroup5"; this.barButtonGroup5.Id = 31; this.barButtonGroup5.ItemLinks.Add(this.chkShowHGrid); this.barButtonGroup5.ItemLinks.Add(this.chkShowVGrid); this.barButtonGroup5.Name = "barButtonGroup5"; // // barButtonItem2 // this.barButtonItem2.Caption = "Team Agile"; this.barButtonItem2.Glyph = ((System.Drawing.Image)(resources.GetObject("barButtonItem2.Glyph"))); this.barButtonItem2.Id = 32; this.barButtonItem2.Name = "barButtonItem2"; this.barButtonItem2.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.barButtonItem2_ItemClick); // // barButtonItem3 // this.barButtonItem3.Caption = "Other Tools from Roy"; this.barButtonItem3.Glyph = ((System.Drawing.Image)(resources.GetObject("barButtonItem3.Glyph"))); this.barButtonItem3.Id = 33; this.barButtonItem3.Name = "barButtonItem3"; this.barButtonItem3.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.barButtonItem3_ItemClick_1); // // barButtonItem4 // this.barButtonItem4.Caption = "Roy\'s Blog"; this.barButtonItem4.Id = 34; this.barButtonItem4.LargeGlyph = ((System.Drawing.Image)(resources.GetObject("barButtonItem4.LargeGlyph"))); this.barButtonItem4.Name = "barButtonItem4"; this.barButtonItem4.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.barButtonItem4_ItemClick); // // barButtonItem5 // this.barButtonItem5.Caption = "Bug/ Feature request"; this.barButtonItem5.Glyph = ((System.Drawing.Image)(resources.GetObject("barButtonItem5.Glyph"))); this.barButtonItem5.Id = 35; this.barButtonItem5.Name = "barButtonItem5"; this.barButtonItem5.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.barButtonItem5_ItemClick); // // barButtonItem6 // this.barButtonItem6.Caption = "Email the author"; this.barButtonItem6.Glyph = ((System.Drawing.Image)(resources.GetObject("barButtonItem6.Glyph"))); this.barButtonItem6.Id = 36; this.barButtonItem6.Name = "barButtonItem6"; this.barButtonItem6.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.barButtonItem6_ItemClick); // // barButtonItem7 // this.barButtonItem7.Caption = "barButtonItem7"; this.barButtonItem7.Id = 37; this.barButtonItem7.Name = "barButtonItem7"; // // lblVersionCaption // this.lblVersionCaption.Caption = "Version:"; this.lblVersionCaption.Id = 38; this.lblVersionCaption.Name = "lblVersionCaption"; this.lblVersionCaption.TextAlignment = System.Drawing.StringAlignment.Near; // // lblVersion // this.lblVersion.Caption = " 1.0 "; this.lblVersion.Id = 39; this.lblVersion.Name = "lblVersion"; this.lblVersion.TextAlignment = System.Drawing.StringAlignment.Near; // // cmdCloseTab // this.cmdCloseTab.Caption = "&Close"; this.cmdCloseTab.Id = 40; this.cmdCloseTab.Name = "cmdCloseTab"; // // cmdSetInstanceName // this.cmdSetInstanceName.Caption = "Set Target Application Instance"; this.cmdSetInstanceName.Glyph = ((System.Drawing.Image)(resources.GetObject("cmdSetInstanceName.Glyph"))); this.cmdSetInstanceName.Hint = "Set the counter(s) target application instance"; this.cmdSetInstanceName.Id = 41; this.cmdSetInstanceName.ItemShortcut = new DevExpress.XtraBars.BarShortcut((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.T)); this.cmdSetInstanceName.Name = "cmdSetInstanceName"; this.cmdSetInstanceName.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.cmdSetInstanceName_ItemClick); // // ribPageGeneral // this.ribPageGeneral.Groups.AddRange(new DevExpress.XtraBars.Ribbon.RibbonPageGroup[] { this.ribbonPageGroup1, this.ribbonPageGroup2, this.ribbonPageGroup4, this.ribbonPageGroup16}); this.ribPageGeneral.Name = "ribPageGeneral"; this.ribPageGeneral.Text = "General"; // // ribbonPageGroup1 // this.ribbonPageGroup1.ItemLinks.Add(this.barButtonItem1); this.ribbonPageGroup1.Name = "ribbonPageGroup1"; this.ribbonPageGroup1.ShowCaptionButton = false; this.ribbonPageGroup1.Text = "Program"; // // ribbonPageGroup2 // this.ribbonPageGroup2.ItemLinks.Add(this.cmdNewTab); this.ribbonPageGroup2.ItemLinks.Add(this.cmdRenameTab); this.ribbonPageGroup2.Name = "ribbonPageGroup2"; this.ribbonPageGroup2.ShowCaptionButton = false; this.ribbonPageGroup2.Text = "Tabs"; // // ribbonPageGroup4 // this.ribbonPageGroup4.ItemLinks.Add(this.chkPanelCounters); this.ribbonPageGroup4.Name = "ribbonPageGroup4"; this.ribbonPageGroup4.Text = "Panels"; // // ribbonPageGroup16 // this.ribbonPageGroup16.ItemLinks.Add(this.cmdImport); this.ribbonPageGroup16.ItemLinks.Add(this.cmdExport); this.ribbonPageGroup16.Name = "ribbonPageGroup16"; this.ribbonPageGroup16.Text = "Share"; // // ribPageActiveMonitor // this.ribPageActiveMonitor.Groups.AddRange(new DevExpress.XtraBars.Ribbon.RibbonPageGroup[] { this.ribbonPageGroup5, this.ribbonPageGroup6, this.ribbonPageGroup3, this.ribbonPageGroup15}); this.ribPageActiveMonitor.Name = "ribPageActiveMonitor"; this.ribPageActiveMonitor.Text = "Active Monitor"; // // ribbonPageGroup5 // this.ribbonPageGroup5.ItemLinks.Add(this.cmdScaleUp); this.ribbonPageGroup5.ItemLinks.Add(this.cmdScaleDown); this.ribbonPageGroup5.Name = "ribbonPageGroup5"; this.ribbonPageGroup5.Text = "Active Counter"; // // ribbonPageGroup6 // this.ribbonPageGroup6.ItemLinks.Add(this.cmdAddCounters, true); this.ribbonPageGroup6.ItemLinks.Add(this.cmdRenameTab); this.ribbonPageGroup6.ItemLinks.Add(this.cmdNewTab); this.ribbonPageGroup6.Name = "ribbonPageGroup6"; this.ribbonPageGroup6.Text = "Monitor"; // // ribbonPageGroup3 // this.ribbonPageGroup3.ItemLinks.Add(this.barButtonGroup4); this.ribbonPageGroup3.ItemLinks.Add(this.barButtonGroup5); this.ribbonPageGroup3.ItemLinks.Add(this.chkTextReport); this.ribbonPageGroup3.Name = "ribbonPageGroup3"; this.ribbonPageGroup3.Text = "Toggle Visible"; // // ribbonPageGroup15 // this.ribbonPageGroup15.ItemLinks.Add(this.cmdCreateFolderFromActiveMonitor); this.ribbonPageGroup15.ItemLinks.Add(this.cmdSaveCountersToCurrentFolder); this.ribbonPageGroup15.Name = "ribbonPageGroup15"; this.ribbonPageGroup15.Text = "Library"; // // ribPageLibFolder // this.ribPageLibFolder.Groups.AddRange(new DevExpress.XtraBars.Ribbon.RibbonPageGroup[] { this.ribbonPageGroup7, this.ribbonPageGroup12, this.ribbonPageGroup10, this.ribbonPageGroup11}); this.ribPageLibFolder.Name = "ribPageLibFolder"; this.ribPageLibFolder.Text = "Library Folder"; // // ribbonPageGroup7 // this.ribbonPageGroup7.ItemLinks.Add(this.cmdCreateRootNode, true); this.ribbonPageGroup7.ItemLinks.Add(this.cmdCreateChildNode); this.ribbonPageGroup7.ItemLinks.Add(this.cmdRemoveNode, true); this.ribbonPageGroup7.ItemLinks.Add(this.cmdRenameFolder); this.ribbonPageGroup7.Name = "ribbonPageGroup7"; this.ribbonPageGroup7.Text = "Folders"; // // ribbonPageGroup12 // this.ribbonPageGroup12.ItemLinks.Add(this.cmdAddNodeToNewTab); this.ribbonPageGroup12.ItemLinks.Add(this.barButtonItem13); this.ribbonPageGroup12.Name = "ribbonPageGroup12"; this.ribbonPageGroup12.Text = "Monitor"; // // ribbonPageGroup10 // this.ribbonPageGroup10.ItemLinks.Add(this.cmdCreateFolderFromActiveMonitor); this.ribbonPageGroup10.ItemLinks.Add(this.cmdSaveCountersToCurrentFolder); this.ribbonPageGroup10.Name = "ribbonPageGroup10"; this.ribbonPageGroup10.Text = "Import"; // // ribbonPageGroup11 // this.ribbonPageGroup11.ItemLinks.Add(this.cmdSetCounterMachineNames); this.ribbonPageGroup11.ItemLinks.Add(this.cmdSetInstanceName); this.ribbonPageGroup11.Name = "ribbonPageGroup11"; this.ribbonPageGroup11.Text = "Current Folder\\Counter"; // // ribPageLibCounter // this.ribPageLibCounter.Groups.AddRange(new DevExpress.XtraBars.Ribbon.RibbonPageGroup[] { this.ribbonPageGroup13, this.ribbonPageGroup14}); this.ribPageLibCounter.Name = "ribPageLibCounter"; this.ribPageLibCounter.Text = "Library Counter"; // // ribbonPageGroup13 // this.ribbonPageGroup13.ItemLinks.Add(this.cmdSetCounterMachineNames); this.ribbonPageGroup13.Name = "ribbonPageGroup13"; this.ribbonPageGroup13.Text = "Modify Counter"; // // ribbonPageGroup14 // this.ribbonPageGroup14.ItemLinks.Add(this.cmdAddNodeToNewTab); this.ribbonPageGroup14.ItemLinks.Add(this.barButtonItem13); this.ribbonPageGroup14.Name = "ribbonPageGroup14"; this.ribbonPageGroup14.Text = "Monitor"; // // ribbonPage1 // this.ribbonPage1.Groups.AddRange(new DevExpress.XtraBars.Ribbon.RibbonPageGroup[] { this.ribbonPageGroup17, this.ribbonPageGroup18, this.ribbonPageGroup19, this.ribbonPageGroup20}); this.ribbonPage1.Name = "ribbonPage1"; this.ribbonPage1.Text = "Help"; // // ribbonPageGroup17 // this.ribbonPageGroup17.ItemLinks.Add(this.lblVersionCaption); this.ribbonPageGroup17.ItemLinks.Add(this.lblVersion); this.ribbonPageGroup17.Name = "ribbonPageGroup17"; this.ribbonPageGroup17.Text = "About"; // // ribbonPageGroup18 // this.ribbonPageGroup18.ItemLinks.Add(this.barButtonItem2); this.ribbonPageGroup18.ItemLinks.Add(this.barButtonItem3); this.ribbonPageGroup18.ItemLinks.Add(this.barButtonItem4, true); this.ribbonPageGroup18.Name = "ribbonPageGroup18"; this.ribbonPageGroup18.Text = "Other Sites"; // // ribbonPageGroup19 // this.ribbonPageGroup19.ItemLinks.Add(this.barButtonItem5); this.ribbonPageGroup19.ItemLinks.Add(this.barButtonItem6); this.ribbonPageGroup19.Name = "ribbonPageGroup19"; this.ribbonPageGroup19.Text = "Support"; // // ribbonPageGroup20 // this.ribbonPageGroup20.Name = "ribbonPageGroup20"; this.ribbonPageGroup20.Text = "Videos"; // // ribbonStatusBar1 // this.ribbonStatusBar1.ItemLinks.Add(this.barStaticItem2); this.ribbonStatusBar1.ItemLinks.Add(this.cmdScaleUp); this.ribbonStatusBar1.ItemLinks.Add(this.cmdScaleDown); this.ribbonStatusBar1.Location = new System.Drawing.Point(0, 470); this.ribbonStatusBar1.Name = "ribbonStatusBar1"; this.ribbonStatusBar1.Ribbon = this.ribbonMain; this.ribbonStatusBar1.Size = new System.Drawing.Size(712, 24); // // ribbonPageGroup8 // this.ribbonPageGroup8.ItemLinks.Add(this.barStaticItem1); this.ribbonPageGroup8.Name = "ribbonPageGroup8"; this.ribbonPageGroup8.Text = "Description"; // // ribbonPageGroup9 // this.ribbonPageGroup9.ItemLinks.Add(this.barStaticItem1); this.ribbonPageGroup9.Name = "ribbonPageGroup9"; this.ribbonPageGroup9.Text = "Description"; // // popupMenu1 // this.popupMenu1.Name = "popupMenu1"; this.popupMenu1.Ribbon = this.ribbonMain; // // popupMenu2 // this.popupMenu2.Name = "popupMenu2"; this.popupMenu2.Ribbon = this.ribbonMain; // // popupMenu3 // this.popupMenu3.ItemLinks.Add(this.cmdRenameTab); this.popupMenu3.ItemLinks.Add(this.cmdCloseTab); this.popupMenu3.Name = "popupMenu3"; this.popupMenu3.Ribbon = this.ribbonMain; // // toolTipController1 // this.toolTipController1.Rounded = true; this.toolTipController1.ShowBeak = true; // // MainForm // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(712, 494); this.Controls.Add(this.pnlCountersTree); this.Controls.Add(this.ribbonMain); this.Controls.Add(this.ribbonStatusBar1); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.IsMdiContainer = true; this.Name = "MainForm"; this.Text = "Perf+ (Alpha - Expires February 2007)"; this.Load += new System.EventHandler(this.MainForm_Load); ((System.ComponentModel.ISupportInitialize)(this.barDockMgr)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.dockMgr)).EndInit(); this.pnlCountersTree.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.lsttopToolbarImages)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.tabsMgr)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.imgRibbon)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.popupMenu1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.popupMenu2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.popupMenu3)).EndInit(); this.ResumeLayout(false); }
public ThumbnailHintHelper(XtraTabbedMdiManager manager) { _Manager = manager; manager.MouseMove += new MouseEventHandler(manager_MouseMove); }
public void formLoad() { this.Show(); // Create a BarManager that will display a bar of commands at the top of the main form. BarManager barManager = new BarManager(); barManager.Form = this; barManager.AllowCustomization = false; // Create a bar with a New button. barManager.BeginUpdate(); Bar bar = new Bar(barManager, "My Bar"); bar.DockStyle = BarDockStyle.Top; barManager.MainMenu = bar; // Create Event Handlers of Bar Menu Items BarItem barItem0 = new BarButtonItem(barManager, "Anasayfa "); barItem0.ItemClick += new ItemClickEventHandler(barItem0_ItemClick); bar.ItemLinks.Add(barItem0); BarItem barItem = new BarButtonItem(barManager, "Müşteri "); barItem.ItemClick += new ItemClickEventHandler(barItem_ItemClick); bar.ItemLinks.Add(barItem); BarItem barItem1 = new BarButtonItem(barManager, "Firma "); barItem1.ItemClick += new ItemClickEventHandler(barItem1_ItemClick); bar.ItemLinks.Add(barItem1); BarItem barItem3 = new BarButtonItem(barManager, "Çalışan "); barItem3.ItemClick += new ItemClickEventHandler(barItem3_ItemClick); bar.ItemLinks.Add(barItem3); BarItem barItem2 = new BarButtonItem(barManager, "Ürün "); barItem2.ItemClick += new ItemClickEventHandler(barItem2_ItemClick); bar.ItemLinks.Add(barItem2); BarItem barItem4 = new BarButtonItem(barManager, "Servis "); barItem4.ItemClick += new ItemClickEventHandler(barItem4_ItemClick); bar.ItemLinks.Add(barItem4); BarItem barItem8 = new BarButtonItem(barManager, "Sipariş "); barItem8.ItemClick += new ItemClickEventHandler(barItem8_ItemClick); bar.ItemLinks.Add(barItem8); BarItem barItem6 = new BarButtonItem(barManager, "Alış "); barItem6.ItemClick += new ItemClickEventHandler(barItem6_ItemClick); bar.ItemLinks.Add(barItem6); BarItem barItem19 = new BarButtonItem(barManager, "Satış "); barItem19.ItemClick += new ItemClickEventHandler(barItem19_ItemClick); bar.ItemLinks.Add(barItem19); BarItem barItem18 = new BarButtonItem(barManager, "Alacak"); barItem18.ItemClick += new ItemClickEventHandler(barItem18_ItemClick); bar.ItemLinks.Add(barItem18); BarItem barItem20 = new BarButtonItem(barManager, "Verecek"); barItem20.ItemClick += new ItemClickEventHandler(barItem20_ItemClick); bar.ItemLinks.Add(barItem20); BarItem barItem16 = new BarButtonItem(barManager, "Stok "); barItem16.ItemClick += new ItemClickEventHandler(barItem16_ItemClick); bar.ItemLinks.Add(barItem16); BarItem barItem14 = new BarButtonItem(barManager, "Arama | Mesaj "); barItem14.ItemClick += new ItemClickEventHandler(barItem14_ItemClick); bar.ItemLinks.Add(barItem14); BarItem barItem17 = new BarButtonItem(barManager, " Banka "); barItem17.ItemClick += new ItemClickEventHandler(barItem17_ItemClick); bar.ItemLinks.Add(barItem17); BarItem barItem9 = new BarButtonItem(barManager, "Çek "); barItem9.ItemClick += new ItemClickEventHandler(barItem9_ItemClick); bar.ItemLinks.Add(barItem9); BarItem barItem13 = new BarButtonItem(barManager, "Barkod "); barItem13.ItemClick += new ItemClickEventHandler(barItem13_ItemClick); bar.ItemLinks.Add(barItem13); BarItem barItem12 = new BarButtonItem(barManager, "Kasa "); barItem12.ItemClick += new ItemClickEventHandler(barItem12_ItemClick); bar.ItemLinks.Add(barItem12); BarItem barItem22 = new BarButtonItem(barManager, "Depo "); barItem22.ItemClick += new ItemClickEventHandler(barItem22_ItemClick); bar.ItemLinks.Add(barItem22); BarItem barItem21 = new BarButtonItem(barManager, "Harita "); barItem21.ItemClick += new ItemClickEventHandler(barItem21_ItemClick); bar.ItemLinks.Add(barItem21); BarItem barItem11 = new BarButtonItem(barManager, "İletişim "); barItem11.ItemClick += new ItemClickEventHandler(barItem11_ItemClick); bar.ItemLinks.Add(barItem11); barManager.EndUpdate(); // Create an XtraTabbedMdiManager that will manage MDI child windows. XtraTabbedMdiManager mdiManager = new XtraTabbedMdiManager(); mdiManager.MdiParent = this; MainForm(); // açılışta mainform gelsin diye }
public ModulesNavigator(RibbonControl ribbon, XtraTabbedMdiManager tabbedMdiManager) { this.ribbon = ribbon; //this.panel = panel; this.tabbedMdiManager = tabbedMdiManager; }
public MenuHelper(XtraTabbedMdiManager manager) { this.managerCore = manager; this.managerCore.MouseUp += OnManagerMouseUp; }
public TabbedMdiManagerHelper(XtraTabbedMdiManager manager) { this.manager = manager; manager.MouseDown += OnXtraTabbedMdiManagerMouseDown; }