public DevSkinBase() { InitializeComponent(); _DefaultLookAndFeel = new DefaultLookAndFeel(); LoadSkin(); }
public MainForm() { InitializeComponent(); defaultLookAndFeel = defaultLookAndFeel1; extentCoord = new ExtentCoord(); }
public ChartAppearanceMenu(BarManager manager, DefaultLookAndFeel lookAndFeel, string about) : base(manager, lookAndFeel, about) { CreatePrintAndExportToMenu(); AddItems(); }
private void skinRibbonGalleryBarItem1_GalleryItemClick(object sender, DevExpress.XtraBars.Ribbon.GalleryItemClickEventArgs e) { // 换皮肤 string SkinValue = e.Item.Caption; Properties.Settings.Default.SoftwareSkin = SkinValue; Properties.Settings.Default.Save(); DefaultLookAndFeel Custom = new DefaultLookAndFeel(); Custom.LookAndFeel.SetSkinStyle(SkinValue); }
public LoginX() { InitializeComponent(); //Init DevExpress LookAndFeelHelper.ForceDefaultLookAndFeelChanged(); SkinManager.EnableFormSkins(); SkinManager.EnableMdiFormSkins(); OfficeSkins.Register(); BonusSkins.Register(); DefaultLookAndFeel df = new DefaultLookAndFeel(); df.LookAndFeel.SetSkinStyle("Seven"); }
public ChartAppearanceMenu(BarManager manager, DefaultLookAndFeel lookAndFeel, string about) : base(manager, lookAndFeel, about) { CreateAppearancesMenu(); CreatePalettesMenu(); CreatePrintAndExportToMenu(); CreateWizardMenu(); CreateExtendMenu(); miFeatures.Caption = "XtraCharts Features"; miAboutProduct.Caption = "功能说明"; AddItems(); }
public MySkinsBarMenuHelper(BarManager manager, DefaultLookAndFeel lookAndFeel) { if (manager == null) { throw new ArgumentNullException("manager"); } if (lookAndFeel == null) { throw new ArgumentNullException("lookAndFeel"); } this.lookAndFeel = lookAndFeel; this.manager = manager; // this.manager.Images = DevExpress.Utils.Controls.ImageHelper.CreateImageCollectionFromResources("DevExpress.Tutorials.MainDemo.menu.bmp", typeof(LookAndFeelMenu).Assembly, new Size(16, 16), Color.Magenta); this.manager.ForceInitialize(); SetupMenu(); }
public TreeListAppearanceMenu(BarManager manager, DefaultLookAndFeel lookAndFeel, string about) : base(manager, lookAndFeel, about) { RaiseSwitchStyle(); miViewOptions = new BarSubItem(this.manager, "&View Options"); miViewOptions.Popup += new EventHandler(ViewOptions_Popup); this.MainMenu.ItemLinks.Insert(2, miViewOptions); miExport = new BarSubItem(this.manager, "Print And Export To..."); miExport.ItemLinks.Add(new ButtonBarItem(this.manager, "Export data to XML file", new ItemClickEventHandler(ExportXML_Click))); miExport.ItemLinks.Add(new ButtonBarItem(this.manager, "Export to HTML file", new ItemClickEventHandler(ExportHtml_Click))).BeginGroup = true; miExport.ItemLinks.Add(new ButtonBarItem(this.manager, "Export to Portable Document Format file", new ItemClickEventHandler(ExportPdf_Click))); miExport.ItemLinks.Add(new ButtonBarItem(this.manager, "Export to Microsoft Excel file", new ItemClickEventHandler(ExportXls_Click))); miExport.ItemLinks.Add(new ButtonBarItem(this.manager, "Export to Text file", new ItemClickEventHandler(ExportText_Click))); miExport.ItemLinks.Add(new ButtonBarItem(this.manager, "Export to Rich Text Format file", new ItemClickEventHandler(ExportRtf_Click))); miExport.ItemLinks.Add(new ButtonBarItem(this.manager, "Print Preview", new ItemClickEventHandler(PrintPreview_OnClick))).BeginGroup = true; this.MainMenu.ItemLinks.Insert(3, miExport); miFeatures.Caption = "XtraTreeList Features"; miAboutProduct.Caption = "About &XtraTreeList"; }
public static void Main(string[] args) { //args = new string[] { "CBADONGTIEN1" }; Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(defaultValue: false); BonusSkins.Register(); OfficeSkins.Register(); string defaultStyle2 = "Money Twins"; DefaultLookAndFeel defaultLookAndFeelMain2 = new DefaultLookAndFeel(); if (defaultStyle2 != string.Empty) { defaultLookAndFeelMain2.LookAndFeel.SetSkinStyle(defaultStyle2); } string H_KEY = "HKEY_CURRENT_USER\\Software\\SGD\\"; RegistryKey HKey = Registry.CurrentUser.OpenSubKey("Software\\SGD\\"); if (HKey == null) { Registry.CurrentUser.CreateSubKey("Software\\SGD\\"); HKey = Registry.CurrentUser.OpenSubKey("Software\\SGD\\"); } string server = ConfigurationSettings.AppSettings["WebServer"]; Config.NewKeyValue("WebServer", server); string productName3 = "CBABPM"; string[] softList = HKey.GetSubKeyNames(); string P_KEY2 = ""; if (args.Length != 0) { productName3 = args[0]; softList = new[] { args[0] }; } if (softList.Length > 1) { fSoftList fsl = new fSoftList(); fsl.ShowDialog(); productName3 = fsl.Productname; P_KEY2 = H_KEY + productName3 + "\\"; if (productName3 == string.Empty) { return; } } else if (softList.Length == 0) { //productName3 = "CBASGD133"; string subkey = "Software\\SGD\\" + productName3; P_KEY2 = H_KEY + productName3 + "\\"; RegistryKey pKey = Registry.CurrentUser.OpenSubKey(subkey); if (pKey == null) { Registry.CurrentUser.CreateSubKey(subkey); Registry.SetValue(P_KEY2, "CompanyName", "SGD", RegistryValueKind.String); Registry.SetValue(P_KEY2, "Created", "0", RegistryValueKind.DWord); Registry.SetValue(P_KEY2, "isDemo", "0", RegistryValueKind.DWord); Registry.SetValue(P_KEY2, "Language", "0", RegistryValueKind.DWord); Registry.SetValue(P_KEY2, "Package", "7", RegistryValueKind.String); Registry.SetValue(P_KEY2, "isOnline", "0", RegistryValueKind.DWord); Registry.SetValue(P_KEY2, "Password", "20-2C-B9-62-AC-59-07-5B-96-4B-07-15-2D-23-4B-70", RegistryValueKind.ExpandString); Registry.SetValue(P_KEY2, "RegisterNumber", "", RegistryValueKind.String); Registry.SetValue(P_KEY2, "SavePassword", "True", RegistryValueKind.String); Registry.SetValue(P_KEY2, "StructDb", "SGD", RegistryValueKind.String); Registry.SetValue(P_KEY2, "RemoteServer", "SGD", RegistryValueKind.String); Registry.SetValue(P_KEY2, "Style", "Money Twins", RegistryValueKind.String); Registry.SetValue(P_KEY2, "SupportOnline", "SGD", RegistryValueKind.String); Registry.SetValue(P_KEY2, "UserName", "Admin", RegistryValueKind.String); Registry.SetValue(P_KEY2, "isRemote", "False", RegistryValueKind.String); Registry.SetValue(P_KEY2, "SoftType", "0", RegistryValueKind.DWord); } } else { productName3 = softList[0]; P_KEY2 = H_KEY + productName3 + "\\"; } Config.NewKeyValue("ProductName", productName3); Config.NewKeyValue("H_KEY", P_KEY2); defaultStyle2 = Registry.GetValue(P_KEY2, "Style", string.Empty).ToString(); defaultLookAndFeelMain2 = new DefaultLookAndFeel(); if (defaultStyle2 != string.Empty) { defaultLookAndFeelMain2.LookAndFeel.SetSkinStyle(defaultStyle2); } string created = Registry.GetValue(P_KEY2, "Created", 0).ToString(); if (created == "0") { CreateData frmCreateData = new CreateData(productName3); frmCreateData.ShowDialog(); if (frmCreateData.DialogResult == DialogResult.Cancel) { return; } Registry.SetValue(P_KEY2, "Created", 1); } Config.NewKeyValue("H_KEY", P_KEY2); int SoftType = (int)Registry.GetValue(P_KEY2, "SoftType", 1); int isOnline = 0; try { isOnline = (int)Registry.GetValue(P_KEY2, "isOnline", 0); } catch { } string extend = isOnline == 0 ? "" : "1"; string Company = Registry.GetValue(P_KEY2, "CompanyName", "").ToString(); CPUid Cpu = (SoftType != 0) ? new CPUid(Company + productName3 + "SGDBPMOnline" + extend) : new CPUid(Company + productName3 + "SGDEMTOnline" + extend); string RegisterNumber = Registry.GetValue(P_KEY2, "RegisterNumber", "").ToString(); if (RegisterNumber != Cpu.KeyString) { Config.NewKeyValue("isDemo", 1); if (MessageBox.Show("Bạn đang dùng phiên bản demo, bạn có muốn đăng ký lại không?", "Thông báo", MessageBoxButtons.YesNo) == DialogResult.Yes) { RegisterF rf = new RegisterF(); rf.producName = productName3; rf.ShowDialog(); Config.NewKeyValue("isDemo", 0); if (rf.DialogResult == DialogResult.Cancel) { return; } RegisterNumber = rf.textEditValue.Text; } } else { Config.NewKeyValue("isDemo", 0); Config.NewKeyValue("CompanyName", Company); Config.NewKeyValue("SoftType", SoftType); Config.NewKeyValue("isOnline", isOnline); } SetEnvironment(); //Check data online phải có register trên server Login frmLogin = new Login(); frmLogin.ShowDialog(); if (frmLogin.DialogResult != DialogResult.Cancel) { if (isOnline == 1)//Kiểm tra ngày hết hạn { try { CDTControl.Log log = new CDTControl.Log(); string uKey = log.GetExDate(RegisterNumber); UserKey key = JsonConvert.DeserializeObject <UserKey>(uKey); if (key == null) { if (File.Exists(productName3 + ".txt")) { MessageBox.Show("Máy bạn đã hết hạn sử dụng gói phần mềm này! \n Liên hệ : 0935.45.75.15 Vỹ Công Trần để được hướng dẫn"); return; } else { MessageBox.Show("Bạn cần kết nối internet để kiểm tra cập nhật mới nhất!"); } } else if (DateTime.Now > key.Exdate) { MessageBox.Show("Máy bạn đã hết hạn sử dụng gói phần mềm này! \n Liên hệ : 00935.45.75.15 Vỹ Công Trần để được hướng dẫn"); LogFile.CreateFile(productName3 + ".txt"); return; } else { LogFile.DeleteFile(productName3 + ".txt"); } } catch { } } Application.Run(new Main(frmLogin.drUser, frmLogin.drPackage)); } }
public void InitDevX(string style) { LookAndFeelHelper.ForceDefaultLookAndFeelChanged(); SkinManager.EnableFormSkins(); SkinManager.EnableMdiFormSkins(); OfficeSkins.Register(); BonusSkins.Register(); DefaultLookAndFeel df = new DefaultLookAndFeel(); df.LookAndFeel.SetSkinStyle(style); }
/// <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); }
/// <summary> /// 界面风格设置控件 /// </summary> /// <param name="defaultLookAndFeel"></param> /// <param name="imageDir"></param> /// <param name="imageColorType"></param> public StyleSettingForm(DefaultLookAndFeel defaultLookAndFeel, string imageDir, EImageColorType imageColorType = EImageColorType.Default) : this() { this.thematicSettingControl.DefaultLookAndFeel = defaultLookAndFeel; this.iconColorfulControl1.ImageDir = imageDir; this.iconColorfulControl1.ImageColorType = imageColorType; }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(CommonParentForm)); this.rbnMain = new DevExpress.XtraBars.Ribbon.RibbonControl(); this.appMenu = new DevExpress.XtraBars.Ribbon.ApplicationMenu(this.components); this.bbiSettings = new DevExpress.XtraBars.BarButtonItem(); this.bbiExitUser = new DevExpress.XtraBars.BarButtonItem(); this.siVersion = new DevExpress.XtraBars.BarStaticItem(); this.alignButtonGroup = new DevExpress.XtraBars.BarButtonGroup(); this.bbiAdd = new DevExpress.XtraBars.BarButtonItem(); this.bbiRemove = new DevExpress.XtraBars.BarButtonItem(); this.bbiRefresh = new DevExpress.XtraBars.BarButtonItem(); this.bbiExel = new DevExpress.XtraBars.BarButtonItem(); this.bbiAdmin = new DevExpress.XtraBars.BarButtonItem(); this.bbiSave = new DevExpress.XtraBars.BarButtonItem(); this.bbiRoleEdit = new DevExpress.XtraBars.BarButtonItem(); this.brDockMenuItem = new DevExpress.XtraBars.BarDockingMenuItem(); this.brEdItControlsStates = new DevExpress.XtraBars.BarEditItem(); this.ripceControlsStates = new DevExpress.XtraEditors.Repository.RepositoryItemPopupContainerEdit(); this.rpMain = new DevExpress.XtraBars.Ribbon.RibbonPage(); this.rpgMain = new DevExpress.XtraBars.Ribbon.RibbonPageGroup(); this.rpDictionaries = new DevExpress.XtraBars.Ribbon.RibbonPage(); this.rpgCommonDictionaries = new DevExpress.XtraBars.Ribbon.RibbonPageGroup(); this.rpReports = new DevExpress.XtraBars.Ribbon.RibbonPage(); this.rpSettings = new DevExpress.XtraBars.Ribbon.RibbonPage(); this.rpAdmin = new DevExpress.XtraBars.Ribbon.RibbonPage(); this.rpgAdmin = new DevExpress.XtraBars.Ribbon.RibbonPageGroup(); this.riceStates = new DevExpress.XtraEditors.Repository.RepositoryItemCheckEdit(); this.rsbMain = new DevExpress.XtraBars.Ribbon.RibbonStatusBar(); this.defaultLookAndFeel = new DevExpress.LookAndFeel.DefaultLookAndFeel(this.components); this.dxErrorProvider = new DevExpress.XtraEditors.DXErrorProvider.DXErrorProvider(this.components); this.documentMng = new DevExpress.XtraBars.Docking2010.DocumentManager(this.components); this.MDIViewNative = new DevExpress.XtraBars.Docking2010.Views.NativeMdi.NativeMdiView(this.components); this.MDIViewTabbed = new DevExpress.XtraBars.Docking2010.Views.Tabbed.TabbedView(this.components); this.bbiChangeUser = new DevExpress.XtraBars.BarButtonItem(); ((System.ComponentModel.ISupportInitialize)(this.rbnMain)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.appMenu)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.ripceControlsStates)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.riceStates)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.dxErrorProvider)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.documentMng)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.MDIViewNative)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.MDIViewTabbed)).BeginInit(); this.SuspendLayout(); // // rbnMain // this.rbnMain.ApplicationButtonDropDownControl = this.appMenu; this.rbnMain.ApplicationButtonText = "Меню"; this.rbnMain.AutoSizeItems = true; this.rbnMain.Categories.AddRange(new DevExpress.XtraBars.BarManagerCategory[] { new DevExpress.XtraBars.BarManagerCategory("Dictionaries", new System.Guid("bfb17616-73d9-42e6-8028-a10ce19e5160"))}); this.rbnMain.ExpandCollapseItem.Id = 0; this.rbnMain.Items.AddRange(new DevExpress.XtraBars.BarItem[] { this.rbnMain.ExpandCollapseItem, this.siVersion, this.alignButtonGroup, this.bbiAdd, this.bbiRemove, this.bbiRefresh, this.bbiExel, this.bbiAdmin, this.bbiSave, this.bbiRoleEdit, this.brDockMenuItem, this.bbiSettings, this.brEdItControlsStates, this.bbiExitUser, this.bbiChangeUser}); this.rbnMain.Location = new System.Drawing.Point(0, 0); this.rbnMain.MaxItemId = 162; this.rbnMain.Name = "rbnMain"; this.rbnMain.Pages.AddRange(new DevExpress.XtraBars.Ribbon.RibbonPage[] { this.rpMain, this.rpDictionaries, this.rpReports, this.rpSettings, this.rpAdmin}); this.rbnMain.RepositoryItems.AddRange(new DevExpress.XtraEditors.Repository.RepositoryItem[] { this.ripceControlsStates, this.riceStates}); this.rbnMain.RibbonStyle = DevExpress.XtraBars.Ribbon.RibbonControlStyle.Office2013; this.rbnMain.ShowToolbarCustomizeItem = false; this.rbnMain.Size = new System.Drawing.Size(1210, 173); this.rbnMain.StatusBar = this.rsbMain; this.rbnMain.Toolbar.ItemLinks.Add(this.bbiAdd); this.rbnMain.Toolbar.ItemLinks.Add(this.bbiRemove); this.rbnMain.Toolbar.ItemLinks.Add(this.bbiRefresh); this.rbnMain.Toolbar.ItemLinks.Add(this.bbiSave); this.rbnMain.Toolbar.ItemLinks.Add(this.bbiExel); this.rbnMain.Toolbar.ItemLinks.Add(this.brDockMenuItem); this.rbnMain.Toolbar.ShowCustomizeItem = false; this.rbnMain.ToolbarLocation = DevExpress.XtraBars.Ribbon.RibbonQuickAccessToolbarLocation.Below; this.rbnMain.ShowCustomizationMenu += new DevExpress.XtraBars.Ribbon.RibbonCustomizationMenuEventHandler(this.RibbonShowCustomizationMenu); this.rbnMain.Merge += new DevExpress.XtraBars.Ribbon.RibbonMergeEventHandler(this.MainMerge); // // appMenu // this.appMenu.ItemLinks.Add(this.bbiSettings, true); this.appMenu.ItemLinks.Add(this.bbiChangeUser); this.appMenu.ItemLinks.Add(this.bbiExitUser); this.appMenu.Name = "appMenu"; this.appMenu.Ribbon = this.rbnMain; // // bbiSettings // this.bbiSettings.Caption = "Настройки"; this.bbiSettings.Description = "Настройки программы"; this.bbiSettings.Hint = "Настройки программы"; this.bbiSettings.Id = 76; this.bbiSettings.LargeGlyph = ((System.Drawing.Image)(resources.GetObject("bbiSettings.LargeGlyph"))); this.bbiSettings.Name = "bbiSettings"; // // bbiExitUser // this.bbiExitUser.Caption = "Выход"; this.bbiExitUser.CategoryGuid = new System.Guid("6ffddb2b-9015-4d97-a4c1-91613e0ef537"); this.bbiExitUser.Id = 160; this.bbiExitUser.LargeGlyph = ((System.Drawing.Image)(resources.GetObject("bbiExitUser.LargeGlyph"))); this.bbiExitUser.Name = "bbiExitUser"; // // siVersion // this.siVersion.Caption = "Версия:"; this.siVersion.Id = 31; this.siVersion.Name = "siVersion"; this.siVersion.TextAlignment = System.Drawing.StringAlignment.Near; // // alignButtonGroup // this.alignButtonGroup.Caption = "Align Commands"; this.alignButtonGroup.Id = 52; this.alignButtonGroup.Name = "alignButtonGroup"; // // bbiAdd // this.bbiAdd.Caption = "Добавить данные"; this.bbiAdd.Glyph = ((System.Drawing.Image)(resources.GetObject("bbiAdd.Glyph"))); this.bbiAdd.Hint = "Добавить новую запись в текущий элемент интерфейса"; this.bbiAdd.Id = 62; this.bbiAdd.ItemShortcut = new DevExpress.XtraBars.BarShortcut((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.N)); this.bbiAdd.Name = "bbiAdd"; this.bbiAdd.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.AddItemClick); // // bbiRemove // this.bbiRemove.Caption = "Удалить данные"; this.bbiRemove.Glyph = ((System.Drawing.Image)(resources.GetObject("bbiRemove.Glyph"))); this.bbiRemove.Hint = "Удалить текущие данные"; this.bbiRemove.Id = 63; this.bbiRemove.ItemShortcut = new DevExpress.XtraBars.BarShortcut((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Delete)); this.bbiRemove.Name = "bbiRemove"; this.bbiRemove.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.RemoveItemClick); // // bbiRefresh // this.bbiRefresh.Caption = "Обновить данные"; this.bbiRefresh.Glyph = ((System.Drawing.Image)(resources.GetObject("bbiRefresh.Glyph"))); this.bbiRefresh.Hint = "Обновить записи из базы данных"; this.bbiRefresh.Id = 65; this.bbiRefresh.ItemShortcut = new DevExpress.XtraBars.BarShortcut(System.Windows.Forms.Keys.F5); this.bbiRefresh.Name = "bbiRefresh"; this.bbiRefresh.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.RefreshItemClick); // // bbiExel // this.bbiExel.Caption = "Сохранить в Exel"; this.bbiExel.Glyph = ((System.Drawing.Image)(resources.GetObject("bbiExel.Glyph"))); this.bbiExel.Hint = "Сохранить данные в виде Excel"; this.bbiExel.Id = 66; this.bbiExel.Name = "bbiExel"; this.bbiExel.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.ExelItemClick); // // bbiAdmin // this.bbiAdmin.Caption = "Настройка интерфейсов"; this.bbiAdmin.Glyph = ((System.Drawing.Image)(resources.GetObject("bbiAdmin.Glyph"))); this.bbiAdmin.Hint = "Администрирование внешнего вида форм"; this.bbiAdmin.Id = 69; this.bbiAdmin.LargeGlyph = ((System.Drawing.Image)(resources.GetObject("bbiAdmin.LargeGlyph"))); this.bbiAdmin.Name = "bbiAdmin"; this.bbiAdmin.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.AdminItemClick); // // bbiSave // this.bbiSave.Caption = "Сохранить в базу"; this.bbiSave.Glyph = ((System.Drawing.Image)(resources.GetObject("bbiSave.Glyph"))); this.bbiSave.Hint = "Сохранить изменения текущего элемента на сервер"; this.bbiSave.Id = 70; this.bbiSave.ItemShortcut = new DevExpress.XtraBars.BarShortcut((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.S)); this.bbiSave.Name = "bbiSave"; this.bbiSave.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.CommitItemClick); // // bbiRoleEdit // this.bbiRoleEdit.Caption = "Настройка ролей и сотрудников"; this.bbiRoleEdit.Glyph = ((System.Drawing.Image)(resources.GetObject("bbiRoleEdit.Glyph"))); this.bbiRoleEdit.Id = 71; this.bbiRoleEdit.LargeGlyph = ((System.Drawing.Image)(resources.GetObject("bbiRoleEdit.LargeGlyph"))); this.bbiRoleEdit.Name = "bbiRoleEdit"; this.bbiRoleEdit.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.RoleEditItemClick); // // brDockMenuItem // this.brDockMenuItem.Caption = "Расположение форм"; this.brDockMenuItem.Glyph = ((System.Drawing.Image)(resources.GetObject("brDockMenuItem.Glyph"))); this.brDockMenuItem.Hint = "Настройка расположения форм"; this.brDockMenuItem.Id = 78; this.brDockMenuItem.Name = "brDockMenuItem"; // // brEdItControlsStates // this.brEdItControlsStates.Edit = this.ripceControlsStates; this.brEdItControlsStates.Id = 89; this.brEdItControlsStates.Name = "brEdItControlsStates"; // // ripceControlsStates // this.ripceControlsStates.AutoHeight = false; this.ripceControlsStates.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); this.ripceControlsStates.Name = "ripceControlsStates"; // // rpMain // this.rpMain.Groups.AddRange(new DevExpress.XtraBars.Ribbon.RibbonPageGroup[] { this.rpgMain}); this.rpMain.Name = "rpMain"; this.rpMain.Text = "Главная"; // // rpgMain // this.rpgMain.Name = "rpgMain"; this.rpgMain.Text = "Главное"; // // rpDictionaries // this.rpDictionaries.Groups.AddRange(new DevExpress.XtraBars.Ribbon.RibbonPageGroup[] { this.rpgCommonDictionaries}); this.rpDictionaries.Name = "rpDictionaries"; this.rpDictionaries.Text = "Справочники"; // // rpgCommonDictionaries // this.rpgCommonDictionaries.Name = "rpgCommonDictionaries"; this.rpgCommonDictionaries.Text = "Общие"; // // rpReports // this.rpReports.Name = "rpReports"; this.rpReports.Text = "Отчёты"; // // rpSettings // this.rpSettings.Name = "rpSettings"; this.rpSettings.Text = "Настройки системы"; // // rpAdmin // this.rpAdmin.Groups.AddRange(new DevExpress.XtraBars.Ribbon.RibbonPageGroup[] { this.rpgAdmin}); this.rpAdmin.Name = "rpAdmin"; this.rpAdmin.Text = "Администрирование"; this.rpAdmin.Visible = false; // // rpgAdmin // this.rpgAdmin.ItemLinks.Add(this.bbiAdmin); this.rpgAdmin.ItemLinks.Add(this.bbiRoleEdit); this.rpgAdmin.Name = "rpgAdmin"; this.rpgAdmin.Text = "Администратор"; // // riceStates // this.riceStates.Name = "riceStates"; this.riceStates.NullStyle = DevExpress.XtraEditors.Controls.StyleIndeterminate.Unchecked; // // rsbMain // this.rsbMain.ItemLinks.Add(this.siVersion); this.rsbMain.Location = new System.Drawing.Point(0, 669); this.rsbMain.Name = "rsbMain"; this.rsbMain.Ribbon = this.rbnMain; this.rsbMain.Size = new System.Drawing.Size(1210, 31); // // dxErrorProvider // this.dxErrorProvider.ContainerControl = this; // // documentMng // this.documentMng.MdiParent = this; this.documentMng.MenuManager = this.rbnMain; this.documentMng.ShowThumbnailsInTaskBar = DevExpress.Utils.DefaultBoolean.False; this.documentMng.View = this.MDIViewNative; this.documentMng.ViewCollection.AddRange(new DevExpress.XtraBars.Docking2010.Views.BaseView[] { this.MDIViewNative, this.MDIViewTabbed}); // // bbiChangeUser // this.bbiChangeUser.Caption = "Сменить пользователя"; this.bbiChangeUser.Id = 161; this.bbiChangeUser.LargeGlyph = ((System.Drawing.Image)(resources.GetObject("bbiChangeUser.LargeGlyph"))); this.bbiChangeUser.Name = "bbiChangeUser"; // // CommonParentForm // this.AllowFormGlass = DevExpress.Utils.DefaultBoolean.False; this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(1210, 700); this.Controls.Add(this.rsbMain); this.Controls.Add(this.rbnMain); this.IsMdiContainer = true; this.Name = "CommonParentForm"; this.Ribbon = this.rbnMain; this.StatusBar = this.rsbMain; this.WindowState = System.Windows.Forms.FormWindowState.Maximized; this.Activated += new System.EventHandler(this.CommonParentFormActivated); this.Load += new System.EventHandler(this.CommonParentFormLoad); this.Shown += new System.EventHandler(this.CommonParentFormShown); ((System.ComponentModel.ISupportInitialize)(this.rbnMain)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.appMenu)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.ripceControlsStates)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.riceStates)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.dxErrorProvider)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.documentMng)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.MDIViewNative)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.MDIViewTabbed)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); }
/// <summary> /// 界面主题风格设置控件 /// </summary> /// <param name="defaultLookAndFeel"></param> public ThematicSettingControl(DefaultLookAndFeel defaultLookAndFeel) : this() => this.DefaultLookAndFeel = defaultLookAndFeel;
public static void Main(string[] args) { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(defaultValue: false); BonusSkins.Register(); OfficeSkins.Register(); string defaultStyle2 = "Money Twins"; DefaultLookAndFeel defaultLookAndFeelMain2 = new DefaultLookAndFeel(); if (defaultStyle2 != string.Empty) { defaultLookAndFeelMain2.LookAndFeel.SetSkinStyle(defaultStyle2); } string server = ConfigurationSettings.AppSettings["WebServer"]; Config.NewKeyValue("WebServer", server); string productName3 = "CBASGD133"; if (args.Length != 0) { productName3 = args[0]; } string H_KEY = "HKEY_CURRENT_USER\\Software\\SGD\\"; RegistryKey HKey = Registry.CurrentUser.OpenSubKey("Software\\SGD\\"); if (HKey == null) { Registry.CurrentUser.CreateSubKey("Software\\SGD\\"); HKey = Registry.CurrentUser.OpenSubKey("Software\\SGD\\"); } string[] softList = HKey.GetSubKeyNames(); string P_KEY2 = ""; if (softList.Length > 1) { fSoftList fsl = new fSoftList(); fsl.ShowDialog(); productName3 = fsl.Productname; P_KEY2 = H_KEY + productName3 + "\\"; if (productName3 == string.Empty) { return; } } else if (softList.Length == 0) { productName3 = "CBASGD133"; string subkey = "Software\\SGD\\" + productName3; P_KEY2 = H_KEY + productName3 + "\\"; RegistryKey pKey = Registry.CurrentUser.OpenSubKey(subkey); if (pKey == null) { Registry.CurrentUser.CreateSubKey(subkey); Registry.SetValue(P_KEY2, "CompanyName", "SGD", RegistryValueKind.String); Registry.SetValue(P_KEY2, "Created", "0", RegistryValueKind.DWord); Registry.SetValue(P_KEY2, "isDemo", "0", RegistryValueKind.DWord); Registry.SetValue(P_KEY2, "Language", "0", RegistryValueKind.DWord); Registry.SetValue(P_KEY2, "Package", "7", RegistryValueKind.String); Registry.SetValue(P_KEY2, "isOnline", "0", RegistryValueKind.DWord); Registry.SetValue(P_KEY2, "Password", "20-2C-B9-62-AC-59-07-5B-96-4B-07-15-2D-23-4B-70", RegistryValueKind.ExpandString); Registry.SetValue(P_KEY2, "RegisterNumber", "", RegistryValueKind.String); Registry.SetValue(P_KEY2, "SavePassword", "True", RegistryValueKind.String); Registry.SetValue(P_KEY2, "StructDb", "SGD", RegistryValueKind.String); Registry.SetValue(P_KEY2, "RemoteServer", "SGD", RegistryValueKind.String); Registry.SetValue(P_KEY2, "Style", "Money Twins", RegistryValueKind.String); Registry.SetValue(P_KEY2, "SupportOnline", "SGD", RegistryValueKind.String); Registry.SetValue(P_KEY2, "UserName", "Admin", RegistryValueKind.String); Registry.SetValue(P_KEY2, "isRemote", "False", RegistryValueKind.String); Registry.SetValue(P_KEY2, "SoftType", "0", RegistryValueKind.DWord); } } else { productName3 = softList[0]; P_KEY2 = H_KEY + productName3 + "\\"; } Config.NewKeyValue("ProductName", productName3); Config.NewKeyValue("H_KEY", P_KEY2); defaultStyle2 = Registry.GetValue(P_KEY2, "Style", string.Empty).ToString(); defaultLookAndFeelMain2 = new DefaultLookAndFeel(); if (defaultStyle2 != string.Empty) { defaultLookAndFeelMain2.LookAndFeel.SetSkinStyle(defaultStyle2); } string created = Registry.GetValue(P_KEY2, "Created", 0).ToString(); int isOnline = 0; try { isOnline = (int)Registry.GetValue(P_KEY2, "isOnline", 0); } catch { } Config.NewKeyValue("H_KEY", P_KEY2); int SoftType = (int)Registry.GetValue(P_KEY2, "SoftType", 1); string extend = "1"; string Company = Registry.GetValue(P_KEY2, "CompanyName", "").ToString(); CPUid Cpu = new CPUid(Company + productName3 + "SGDBPMOnline" + extend); string RegisterNumber = Registry.GetValue(P_KEY2, "RegisterNumber", "").ToString(); if (RegisterNumber != Cpu.KeyString) { Config.NewKeyValue("isDemo", 1); if (MessageBox.Show("Bạn đang dùng phiên bản demo, bạn có muốn đăng ký lại không?", "Thông báo", MessageBoxButtons.YesNo) == DialogResult.Yes) { RegisterF rf = new RegisterF(); rf.producName = productName3; rf.ShowDialog(); Config.NewKeyValue("isDemo", 0); if (rf.DialogResult == DialogResult.Cancel) { return; } } } else { Config.NewKeyValue("isDemo", 0); Config.NewKeyValue("CompanyName", Company); Config.NewKeyValue("SoftType", SoftType); Config.NewKeyValue("isOnline", isOnline); } if (isOnline == 0) // Trường hợp off line { if (created == "0") // { CreateData frmCreateData = new CreateData(productName3); frmCreateData.ShowDialog(); if (frmCreateData.DialogResult == DialogResult.Cancel) { return; } Registry.SetValue(P_KEY2, "Created", 1); } } else { CPUid cpu = new CPUid(productName3); UserConnection u = new UserConnection(); u.DatabaseName = productName3; u.ComputerName = cpu.MaMay; u.LicenceKey = "";// Registry.GetValue(P_KEY2, "EBA4330AABE2029DB278B8A049E33A07", ""); ; string ob = JsonConvert.SerializeObject(u); string re = GetConnection(ob); try { u = JsonConvert.DeserializeObject <UserConnection>(re); if (u != null) { string structName = Registry.GetValue(P_KEY2, "StructName", "").ToString(); string connection = Security.DeCode64(u.StructDb); connection += ";Database=" + structName; Config.NewKeyValue("StructConnection", Security.EnCode64(connection)); if (DateTime.Now > u.TimeEx) { MessageBox.Show("Máy bạn đã hết hạn sử dụng gói phần mềm này!"); return; } } } catch { } } SetEnvironment(); Login frmLogin = new Login(); frmLogin.ShowDialog(); if (frmLogin.DialogResult != DialogResult.Cancel) { if (isOnline == 1)//Kiểm tra ngày hết hạn { try { //CDTControl.Log log = new CDTControl.Log(); //string uKey = log.GetExDate(RegisterNumber); //UserKey key = JsonConvert.DeserializeObject<UserKey>(uKey); //DateTime Exdate = key.Exdate; //if (DateTime.Now > Exdate) // MessageBox.Show("Máy bạn đã hết hạn sử dụng gói phần mềm này!"); } catch { } } Application.Run(new Main(frmLogin.drUser, frmLogin.drPackage)); } }
public MainX() { InitializeComponent(); //Auto Complete Setup tb_vsearch.Select(); tb_vsearch.AutoCompleteMode = AutoCompleteMode.Suggest; tb_vsearch.AutoCompleteSource = AutoCompleteSource.CustomSource; tb_psearch.AutoCompleteMode = AutoCompleteMode.Suggest; tb_psearch.AutoCompleteSource = AutoCompleteSource.CustomSource; //Authentication if (File.Exists("settings.data")) { string[] settings = File.ReadAllLines("settings.data"); Log.Authenticate(settings[0], settings[1]); } //Create Directories if (!Directory.Exists("Active")) Directory.CreateDirectory("Active"); if (!Directory.Exists("Downloads")) Directory.CreateDirectory("Downloads"); if (!Directory.Exists(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) + "/DankWire")) Directory.CreateDirectory(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) + "/DankWire"); //Init DevExpress LookAndFeelHelper.ForceDefaultLookAndFeelChanged(); SkinManager.EnableFormSkins(); SkinManager.EnableMdiFormSkins(); OfficeSkins.Register(); BonusSkins.Register(); DefaultLookAndFeel df = new DefaultLookAndFeel(); df.LookAndFeel.SetSkinStyle("Seven"); updateRecent.RunWorkerAsync(); saveDims(); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); this.btnNuevoCliente = new DevExpress.XtraEditors.SimpleButton(); this.labelControl1 = new DevExpress.XtraEditors.LabelControl(); this.gridCliente = new DevExpress.XtraGrid.GridControl(); this.viewCliente = new DevExpress.XtraGrid.Views.Grid.GridView(); this.gridColumn2 = new DevExpress.XtraGrid.Columns.GridColumn(); this.gridColumn4 = new DevExpress.XtraGrid.Columns.GridColumn(); this.gridColumn1 = new DevExpress.XtraGrid.Columns.GridColumn(); this.gridColumn3 = new DevExpress.XtraGrid.Columns.GridColumn(); this.gridColumn5 = new DevExpress.XtraGrid.Columns.GridColumn(); this.gridColumn6 = new DevExpress.XtraGrid.Columns.GridColumn(); this.gridColumn7 = new DevExpress.XtraGrid.Columns.GridColumn(); this.gridView3 = new DevExpress.XtraGrid.Views.Grid.GridView(); this.defaultLookAndFeel1 = new DevExpress.LookAndFeel.DefaultLookAndFeel(this.components); this.btnBorrarCliente = new DevExpress.XtraEditors.SimpleButton(); this.frmEditarArticulo = new DevExpress.XtraEditors.SimpleButton(); ((System.ComponentModel.ISupportInitialize)(this.gridCliente)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.viewCliente)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.gridView3)).BeginInit(); this.SuspendLayout(); // // btnNuevoCliente // this.btnNuevoCliente.Appearance.Font = new System.Drawing.Font("Calibri", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.btnNuevoCliente.Appearance.Options.UseFont = true; this.btnNuevoCliente.Appearance.Options.UseTextOptions = true; this.btnNuevoCliente.Appearance.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Center; this.btnNuevoCliente.ImageToTextAlignment = DevExpress.XtraEditors.ImageAlignToText.RightCenter; this.btnNuevoCliente.Location = new System.Drawing.Point(30, 88); this.btnNuevoCliente.Name = "btnNuevoCliente"; this.btnNuevoCliente.Size = new System.Drawing.Size(77, 24); this.btnNuevoCliente.TabIndex = 45; this.btnNuevoCliente.Text = "Nuevo"; this.btnNuevoCliente.ToolTip = "Le permite al usuario añadir un nuevo articulo al Inventario."; this.btnNuevoCliente.ToolTipIconType = DevExpress.Utils.ToolTipIconType.Information; this.btnNuevoCliente.ToolTipTitle = "Nuevo"; this.btnNuevoCliente.Click += new System.EventHandler(this.btnNuevoCliente_Click); // // labelControl1 // this.labelControl1.Appearance.Font = new System.Drawing.Font("Segoe UI Light", 24F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.labelControl1.Location = new System.Drawing.Point(30, 26); this.labelControl1.Name = "labelControl1"; this.labelControl1.Size = new System.Drawing.Size(105, 45); this.labelControl1.TabIndex = 44; this.labelControl1.Text = "Clientes"; // // gridCliente // this.gridCliente.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.gridCliente.Location = new System.Drawing.Point(30, 118); this.gridCliente.MainView = this.viewCliente; this.gridCliente.Name = "gridCliente"; this.gridCliente.Size = new System.Drawing.Size(1213, 544); this.gridCliente.TabIndex = 43; this.gridCliente.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { this.viewCliente, this.gridView3 }); this.gridCliente.DoubleClick += new System.EventHandler(this.gridCliente_DoubleClick); // // viewCliente // this.viewCliente.Appearance.HeaderPanel.Font = new System.Drawing.Font("Segoe UI Semibold", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.viewCliente.Appearance.HeaderPanel.Options.UseFont = true; this.viewCliente.Appearance.Row.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.viewCliente.Appearance.Row.Options.UseFont = true; this.viewCliente.ColumnPanelRowHeight = 30; this.viewCliente.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { this.gridColumn2, this.gridColumn4, this.gridColumn1, this.gridColumn3, this.gridColumn5, this.gridColumn6, this.gridColumn7 }); this.viewCliente.GridControl = this.gridCliente; this.viewCliente.Name = "viewCliente"; this.viewCliente.OptionsBehavior.Editable = false; this.viewCliente.OptionsFind.AlwaysVisible = true; this.viewCliente.OptionsSelection.EnableAppearanceFocusedCell = false; this.viewCliente.RowHeight = 30; // // gridColumn2 // this.gridColumn2.AppearanceCell.Options.UseTextOptions = true; this.gridColumn2.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; this.gridColumn2.AppearanceHeader.Options.UseTextOptions = true; this.gridColumn2.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; this.gridColumn2.Caption = "ID"; this.gridColumn2.FieldName = "id_cliente"; this.gridColumn2.MaxWidth = 300; this.gridColumn2.Name = "gridColumn2"; this.gridColumn2.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False; this.gridColumn2.Width = 45; // // gridColumn4 // this.gridColumn4.Caption = "Nombre"; this.gridColumn4.FieldName = "nombre"; this.gridColumn4.Name = "gridColumn4"; this.gridColumn4.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False; this.gridColumn4.Visible = true; this.gridColumn4.VisibleIndex = 1; this.gridColumn4.Width = 320; // // gridColumn1 // this.gridColumn1.Caption = "Sector"; this.gridColumn1.FieldName = "sector"; this.gridColumn1.Name = "gridColumn1"; this.gridColumn1.Visible = true; this.gridColumn1.VisibleIndex = 3; this.gridColumn1.Width = 139; // // gridColumn3 // this.gridColumn3.Caption = "Razon Social"; this.gridColumn3.FieldName = "razon_social"; this.gridColumn3.Name = "gridColumn3"; this.gridColumn3.Visible = true; this.gridColumn3.VisibleIndex = 2; this.gridColumn3.Width = 153; // // gridColumn5 // this.gridColumn5.Caption = "Telefono"; this.gridColumn5.FieldName = "telefono"; this.gridColumn5.Name = "gridColumn5"; this.gridColumn5.Visible = true; this.gridColumn5.VisibleIndex = 4; this.gridColumn5.Width = 158; // // gridColumn6 // this.gridColumn6.Caption = "Codigo"; this.gridColumn6.FieldName = "codigo"; this.gridColumn6.Name = "gridColumn6"; this.gridColumn6.Visible = true; this.gridColumn6.VisibleIndex = 0; this.gridColumn6.Width = 116; // // gridColumn7 // this.gridColumn7.Caption = "Descripcion"; this.gridColumn7.FieldName = "descripcion"; this.gridColumn7.Name = "gridColumn7"; this.gridColumn7.Visible = true; this.gridColumn7.VisibleIndex = 5; this.gridColumn7.Width = 309; // // gridView3 // this.gridView3.GridControl = this.gridCliente; this.gridView3.Name = "gridView3"; // // defaultLookAndFeel1 // this.defaultLookAndFeel1.LookAndFeel.SkinName = "DevExpress Dark Style"; // // btnBorrarCliente // this.btnBorrarCliente.Appearance.Font = new System.Drawing.Font("Calibri", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.btnBorrarCliente.Appearance.Options.UseFont = true; this.btnBorrarCliente.Appearance.Options.UseTextOptions = true; this.btnBorrarCliente.Appearance.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Center; this.btnBorrarCliente.ImageToTextAlignment = DevExpress.XtraEditors.ImageAlignToText.RightCenter; this.btnBorrarCliente.Location = new System.Drawing.Point(196, 88); this.btnBorrarCliente.Name = "btnBorrarCliente"; this.btnBorrarCliente.Size = new System.Drawing.Size(77, 24); this.btnBorrarCliente.TabIndex = 50; this.btnBorrarCliente.Text = "Borrar"; this.btnBorrarCliente.ToolTip = "Le permite al usuario añadir un nuevo articulo al Inventario."; this.btnBorrarCliente.ToolTipIconType = DevExpress.Utils.ToolTipIconType.Information; this.btnBorrarCliente.ToolTipTitle = "Nuevo"; // // frmEditarArticulo // this.frmEditarArticulo.Appearance.Font = new System.Drawing.Font("Calibri", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.frmEditarArticulo.Appearance.Options.UseFont = true; this.frmEditarArticulo.Appearance.Options.UseTextOptions = true; this.frmEditarArticulo.Appearance.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Center; this.frmEditarArticulo.ImageToTextAlignment = DevExpress.XtraEditors.ImageAlignToText.RightCenter; this.frmEditarArticulo.Location = new System.Drawing.Point(113, 88); this.frmEditarArticulo.Name = "frmEditarArticulo"; this.frmEditarArticulo.Size = new System.Drawing.Size(77, 24); this.frmEditarArticulo.TabIndex = 49; this.frmEditarArticulo.Text = "Editar"; this.frmEditarArticulo.ToolTip = "Le permite al usuario añadir un nuevo articulo al Inventario."; this.frmEditarArticulo.ToolTipIconType = DevExpress.Utils.ToolTipIconType.Information; this.frmEditarArticulo.ToolTipTitle = "Agregar"; this.frmEditarArticulo.Click += new System.EventHandler(this.frmEditarArticulo_Click); // // FrmClientes // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(1273, 691); this.Controls.Add(this.btnBorrarCliente); this.Controls.Add(this.frmEditarArticulo); this.Controls.Add(this.btnNuevoCliente); this.Controls.Add(this.labelControl1); this.Controls.Add(this.gridCliente); this.Name = "FrmClientes"; this.Text = "Catalogo de Clientes"; this.Load += new System.EventHandler(this.FrmClientes_Load); ((System.ComponentModel.ISupportInitialize)(this.gridCliente)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.viewCliente)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.gridView3)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); }
public SkinsForm(DefaultLookAndFeel defaultLookAndFeel) { InitializeComponent(); this.defaultLookAndFeel = defaultLookAndFeel; }
/// <summary> /// 初始化并设置界面主题风格 /// </summary> /// <param name="defaultLookAndFeel"></param> /// <param name="skinName">主题风格类型的中文名,必须为<see cref="ThematicManager.SkinNameToValue"/>.Keys的值之一</param> public static void SetSkin(this DefaultLookAndFeel defaultLookAndFeel, string skinName) { defaultLookAndFeel.LookAndFeel.SkinName = SkinNameToValue[skinName]; }
private void InitializeComponent() { this.components = new System.ComponentModel.Container(); PresentationBuilder.BLL.PowerPoint.FontItem fontItem1 = new PresentationBuilder.BLL.PowerPoint.FontItem(); PresentationBuilder.BLL.PowerPoint.FontItem fontItem2 = new PresentationBuilder.BLL.PowerPoint.FontItem(); PresentationBuilder.BLL.PowerPoint.FontItem fontItem3 = new PresentationBuilder.BLL.PowerPoint.FontItem(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm)); this.toolStrip1 = new System.Windows.Forms.ToolStrip(); this.newStripButton = new System.Windows.Forms.ToolStripButton(); this.openStripButton = new System.Windows.Forms.ToolStripButton(); this.saveStripButton = new System.Windows.Forms.ToolStripButton(); this.powerpointStripButton = new System.Windows.Forms.ToolStripButton(); this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator(); this.addStripButton = new System.Windows.Forms.ToolStripButton(); this.insertStripButton = new System.Windows.Forms.ToolStripButton(); this.deleteStripButton = new System.Windows.Forms.ToolStripButton(); this.upStripButton = new System.Windows.Forms.ToolStripButton(); this.downStripButton = new System.Windows.Forms.ToolStripButton(); this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator(); this.fontStripButton = new System.Windows.Forms.ToolStripButton(); this.songStripButton = new System.Windows.Forms.ToolStripButton(); this.messagesStripButton = new System.Windows.Forms.ToolStripButton(); this.defaultLookAndFeel1 = new DevExpress.LookAndFeel.DefaultLookAndFeel(this.components); this.menuStrip1 = new System.Windows.Forms.MenuStrip(); this.fileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.newToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.openToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.saveToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.saveAsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripMenuItem1 = new System.Windows.Forms.ToolStripSeparator(); this.createInPowerpointToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.slideToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.addToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.insertToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.deleteToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.moveUpToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.moveDownToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.toolsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.songsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.messagesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripMenuItem2 = new System.Windows.Forms.ToolStripSeparator(); this.aboutToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.slidePanel = new PresentationBuilder.Win.Controls.SlideListBox(); this.toolStrip1.SuspendLayout(); this.menuStrip1.SuspendLayout(); this.SuspendLayout(); // // toolStrip1 // this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.newStripButton, this.openStripButton, this.saveStripButton, this.powerpointStripButton, this.toolStripSeparator1, this.addStripButton, this.insertStripButton, this.deleteStripButton, this.upStripButton, this.downStripButton, this.toolStripSeparator2, this.fontStripButton, this.songStripButton, this.messagesStripButton }); this.toolStrip1.Location = new System.Drawing.Point(0, 24); this.toolStrip1.Name = "toolStrip1"; this.toolStrip1.Size = new System.Drawing.Size(662, 25); this.toolStrip1.TabIndex = 5; this.toolStrip1.Text = "toolStrip1"; // // newStripButton // this.newStripButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.newStripButton.Image = global::PresentationBuilder.Win.Properties.Resources.New; this.newStripButton.ImageTransparentColor = System.Drawing.Color.Magenta; this.newStripButton.Name = "newStripButton"; this.newStripButton.Size = new System.Drawing.Size(23, 22); this.newStripButton.Text = "toolStripButton2"; this.newStripButton.ToolTipText = "Clear Slides"; this.newStripButton.Click += new System.EventHandler(this.newStripButton_Click); // // openStripButton // this.openStripButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.openStripButton.Image = global::PresentationBuilder.Win.Properties.Resources.openfolderHS; this.openStripButton.ImageTransparentColor = System.Drawing.Color.Magenta; this.openStripButton.Name = "openStripButton"; this.openStripButton.Size = new System.Drawing.Size(23, 22); this.openStripButton.Text = "toolStripButton2"; this.openStripButton.ToolTipText = "Open File"; this.openStripButton.Click += new System.EventHandler(this.openStripButton_Click); // // saveStripButton // this.saveStripButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.saveStripButton.Image = global::PresentationBuilder.Win.Properties.Resources.saveHS; this.saveStripButton.ImageTransparentColor = System.Drawing.Color.Magenta; this.saveStripButton.Name = "saveStripButton"; this.saveStripButton.Size = new System.Drawing.Size(23, 22); this.saveStripButton.Text = "toolStripButton3"; this.saveStripButton.ToolTipText = "Save File"; this.saveStripButton.Click += new System.EventHandler(this.saveStripButton_Click); // // powerpointStripButton // this.powerpointStripButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.powerpointStripButton.Image = global::PresentationBuilder.Win.Properties.Resources.Build; this.powerpointStripButton.ImageTransparentColor = System.Drawing.Color.White; this.powerpointStripButton.Name = "powerpointStripButton"; this.powerpointStripButton.Size = new System.Drawing.Size(23, 22); this.powerpointStripButton.Text = "toolStripButton6"; this.powerpointStripButton.ToolTipText = "Create in Powerpoint"; this.powerpointStripButton.Click += new System.EventHandler(this.powerpointStripButton_Click); // // toolStripSeparator1 // this.toolStripSeparator1.Name = "toolStripSeparator1"; this.toolStripSeparator1.Size = new System.Drawing.Size(6, 25); // // addStripButton // this.addStripButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.addStripButton.Image = global::PresentationBuilder.Win.Properties.Resources.Add; this.addStripButton.ImageTransparentColor = System.Drawing.Color.White; this.addStripButton.Name = "addStripButton"; this.addStripButton.Size = new System.Drawing.Size(23, 22); this.addStripButton.Text = "Add Slide"; this.addStripButton.Click += new System.EventHandler(this.addStripButton_Click); // // insertStripButton // this.insertStripButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.insertStripButton.Image = global::PresentationBuilder.Win.Properties.Resources.Insert; this.insertStripButton.ImageTransparentColor = System.Drawing.Color.White; this.insertStripButton.Name = "insertStripButton"; this.insertStripButton.Size = new System.Drawing.Size(23, 22); this.insertStripButton.Text = "toolStripButton5"; this.insertStripButton.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText; this.insertStripButton.ToolTipText = "Insert Slide"; this.insertStripButton.Click += new System.EventHandler(this.insertStripButton_Click); // // deleteStripButton // this.deleteStripButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.deleteStripButton.Image = global::PresentationBuilder.Win.Properties.Resources.DeleteHS; this.deleteStripButton.ImageTransparentColor = System.Drawing.Color.Magenta; this.deleteStripButton.Name = "deleteStripButton"; this.deleteStripButton.Size = new System.Drawing.Size(23, 22); this.deleteStripButton.Text = "toolStripButton1"; this.deleteStripButton.ToolTipText = "Delete Slide"; this.deleteStripButton.Click += new System.EventHandler(this.deleteStripButton_Click); // // upStripButton // this.upStripButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.upStripButton.Image = global::PresentationBuilder.Win.Properties.Resources.MoveUp; this.upStripButton.ImageTransparentColor = System.Drawing.Color.White; this.upStripButton.Name = "upStripButton"; this.upStripButton.Size = new System.Drawing.Size(23, 22); this.upStripButton.Text = "toolStripButton7"; this.upStripButton.ToolTipText = "Move Slide Up"; this.upStripButton.Click += new System.EventHandler(this.upStripButton_Click); // // downStripButton // this.downStripButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.downStripButton.Image = global::PresentationBuilder.Win.Properties.Resources.MoveDown; this.downStripButton.ImageTransparentColor = System.Drawing.Color.White; this.downStripButton.Name = "downStripButton"; this.downStripButton.Size = new System.Drawing.Size(23, 22); this.downStripButton.Text = "toolStripButton8"; this.downStripButton.ToolTipText = "Move Slide Down"; this.downStripButton.Click += new System.EventHandler(this.downStripButton_Click); // // toolStripSeparator2 // this.toolStripSeparator2.Name = "toolStripSeparator2"; this.toolStripSeparator2.Size = new System.Drawing.Size(6, 25); // // fontStripButton // this.fontStripButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.fontStripButton.Image = global::PresentationBuilder.Win.Properties.Resources.FontDialogHS; this.fontStripButton.ImageTransparentColor = System.Drawing.Color.Magenta; this.fontStripButton.Name = "fontStripButton"; this.fontStripButton.Size = new System.Drawing.Size(23, 22); this.fontStripButton.Text = "toolStripButton10"; this.fontStripButton.ToolTipText = "Slide Fonts"; this.fontStripButton.Click += new System.EventHandler(this.fontStripButton_Click); // // songStripButton // this.songStripButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.songStripButton.Image = global::PresentationBuilder.Win.Properties.Resources.Note; this.songStripButton.ImageTransparentColor = System.Drawing.Color.Magenta; this.songStripButton.Name = "songStripButton"; this.songStripButton.Size = new System.Drawing.Size(23, 22); this.songStripButton.Text = "toolStripButton9"; this.songStripButton.ToolTipText = "Edit Songs"; this.songStripButton.Click += new System.EventHandler(this.songStripButton_Click); // // messagesStripButton // this.messagesStripButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.messagesStripButton.Image = global::PresentationBuilder.Win.Properties.Resources.Book_angleHS; this.messagesStripButton.ImageTransparentColor = System.Drawing.Color.Magenta; this.messagesStripButton.Name = "messagesStripButton"; this.messagesStripButton.Size = new System.Drawing.Size(23, 22); this.messagesStripButton.Text = "toolStripButton11"; this.messagesStripButton.ToolTipText = "Edit Messages"; this.messagesStripButton.Click += new System.EventHandler(this.messagesStripButton_Click); // // defaultLookAndFeel1 // this.defaultLookAndFeel1.LookAndFeel.UseWindowsXPTheme = true; // // menuStrip1 // this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.fileToolStripMenuItem, this.slideToolStripMenuItem, this.toolsToolStripMenuItem }); this.menuStrip1.Location = new System.Drawing.Point(0, 0); this.menuStrip1.Name = "menuStrip1"; this.menuStrip1.Size = new System.Drawing.Size(662, 24); this.menuStrip1.TabIndex = 8; this.menuStrip1.Text = "menuStrip1"; // // fileToolStripMenuItem // this.fileToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.newToolStripMenuItem, this.openToolStripMenuItem, this.saveToolStripMenuItem, this.saveAsToolStripMenuItem, this.toolStripMenuItem1, this.createInPowerpointToolStripMenuItem }); this.fileToolStripMenuItem.Name = "fileToolStripMenuItem"; this.fileToolStripMenuItem.Size = new System.Drawing.Size(37, 20); this.fileToolStripMenuItem.Text = "&File"; // // newToolStripMenuItem // this.newToolStripMenuItem.Name = "newToolStripMenuItem"; this.newToolStripMenuItem.Size = new System.Drawing.Size(185, 22); this.newToolStripMenuItem.Text = "&New"; this.newToolStripMenuItem.Click += new System.EventHandler(this.newStripButton_Click); // // openToolStripMenuItem // this.openToolStripMenuItem.Name = "openToolStripMenuItem"; this.openToolStripMenuItem.Size = new System.Drawing.Size(185, 22); this.openToolStripMenuItem.Text = "&Open..."; this.openToolStripMenuItem.Click += new System.EventHandler(this.openStripButton_Click); // // saveToolStripMenuItem // this.saveToolStripMenuItem.Name = "saveToolStripMenuItem"; this.saveToolStripMenuItem.Size = new System.Drawing.Size(185, 22); this.saveToolStripMenuItem.Text = "&Save"; this.saveToolStripMenuItem.Click += new System.EventHandler(this.saveStripButton_Click); // // saveAsToolStripMenuItem // this.saveAsToolStripMenuItem.Name = "saveAsToolStripMenuItem"; this.saveAsToolStripMenuItem.Size = new System.Drawing.Size(185, 22); this.saveAsToolStripMenuItem.Text = "&Save As..."; this.saveAsToolStripMenuItem.Click += new System.EventHandler(this.saveAsToolStripMenuItem_Click); // // toolStripMenuItem1 // this.toolStripMenuItem1.Name = "toolStripMenuItem1"; this.toolStripMenuItem1.Size = new System.Drawing.Size(182, 6); // // createInPowerpointToolStripMenuItem // this.createInPowerpointToolStripMenuItem.Name = "createInPowerpointToolStripMenuItem"; this.createInPowerpointToolStripMenuItem.Size = new System.Drawing.Size(185, 22); this.createInPowerpointToolStripMenuItem.Text = "&Create in Powerpoint"; this.createInPowerpointToolStripMenuItem.Click += new System.EventHandler(this.powerpointStripButton_Click); // // slideToolStripMenuItem // this.slideToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.addToolStripMenuItem, this.insertToolStripMenuItem, this.deleteToolStripMenuItem, this.moveUpToolStripMenuItem, this.moveDownToolStripMenuItem }); this.slideToolStripMenuItem.Name = "slideToolStripMenuItem"; this.slideToolStripMenuItem.Size = new System.Drawing.Size(44, 20); this.slideToolStripMenuItem.Text = "&Slide"; // // addToolStripMenuItem // this.addToolStripMenuItem.Name = "addToolStripMenuItem"; this.addToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.A))); this.addToolStripMenuItem.Size = new System.Drawing.Size(138, 22); this.addToolStripMenuItem.Text = "&Add"; this.addToolStripMenuItem.Click += new System.EventHandler(this.addStripButton_Click); // // insertToolStripMenuItem // this.insertToolStripMenuItem.Name = "insertToolStripMenuItem"; this.insertToolStripMenuItem.Size = new System.Drawing.Size(138, 22); this.insertToolStripMenuItem.Text = "&Insert"; this.insertToolStripMenuItem.Click += new System.EventHandler(this.insertStripButton_Click); // // deleteToolStripMenuItem // this.deleteToolStripMenuItem.Name = "deleteToolStripMenuItem"; this.deleteToolStripMenuItem.Size = new System.Drawing.Size(138, 22); this.deleteToolStripMenuItem.Text = "&Delete"; this.deleteToolStripMenuItem.Click += new System.EventHandler(this.deleteStripButton_Click); // // moveUpToolStripMenuItem // this.moveUpToolStripMenuItem.Name = "moveUpToolStripMenuItem"; this.moveUpToolStripMenuItem.Size = new System.Drawing.Size(138, 22); this.moveUpToolStripMenuItem.Text = "Move &Up"; this.moveUpToolStripMenuItem.Click += new System.EventHandler(this.upStripButton_Click); // // moveDownToolStripMenuItem // this.moveDownToolStripMenuItem.Name = "moveDownToolStripMenuItem"; this.moveDownToolStripMenuItem.Size = new System.Drawing.Size(138, 22); this.moveDownToolStripMenuItem.Text = "Move &Down"; this.moveDownToolStripMenuItem.Click += new System.EventHandler(this.downStripButton_Click); // // toolsToolStripMenuItem // this.toolsToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.songsToolStripMenuItem, this.messagesToolStripMenuItem, this.toolStripMenuItem2, this.aboutToolStripMenuItem }); this.toolsToolStripMenuItem.Name = "toolsToolStripMenuItem"; this.toolsToolStripMenuItem.Size = new System.Drawing.Size(47, 20); this.toolsToolStripMenuItem.Text = "&Tools"; // // songsToolStripMenuItem // this.songsToolStripMenuItem.Name = "songsToolStripMenuItem"; this.songsToolStripMenuItem.Size = new System.Drawing.Size(134, 22); this.songsToolStripMenuItem.Text = "&Songs..."; this.songsToolStripMenuItem.Click += new System.EventHandler(this.songStripButton_Click); // // messagesToolStripMenuItem // this.messagesToolStripMenuItem.Name = "messagesToolStripMenuItem"; this.messagesToolStripMenuItem.Size = new System.Drawing.Size(134, 22); this.messagesToolStripMenuItem.Text = "&Messages..."; this.messagesToolStripMenuItem.Click += new System.EventHandler(this.messagesStripButton_Click); // // toolStripMenuItem2 // this.toolStripMenuItem2.Name = "toolStripMenuItem2"; this.toolStripMenuItem2.Size = new System.Drawing.Size(131, 6); // // aboutToolStripMenuItem // this.aboutToolStripMenuItem.Name = "aboutToolStripMenuItem"; this.aboutToolStripMenuItem.Size = new System.Drawing.Size(134, 22); this.aboutToolStripMenuItem.Text = "&About..."; this.aboutToolStripMenuItem.Click += new System.EventHandler(this.aboutToolStripMenuItem_Click); // // slidePanel // this.slidePanel.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.slidePanel.AutoScroll = true; this.slidePanel.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; fontItem1.Bold = true; fontItem1.FontColor = System.Drawing.Color.Black; fontItem1.FontName = "Arial"; fontItem1.Italic = false; fontItem1.LineSpacing = 1F; fontItem1.Shadow = false; fontItem1.Size = 32F; fontItem1.Underline = false; //this.slidePanel.IndicatorFont = fontItem1; this.slidePanel.IsDirty = false; this.slidePanel.Location = new System.Drawing.Point(7, 52); fontItem2.Bold = true; fontItem2.FontColor = System.Drawing.Color.Black; fontItem2.FontName = "Arial"; fontItem2.Italic = false; fontItem2.LineSpacing = 1F; fontItem2.Shadow = false; fontItem2.Size = 32F; fontItem2.Underline = false; //this.slidePanel.MessageFont = fontItem2; this.slidePanel.Name = "slidePanel"; this.slidePanel.Size = new System.Drawing.Size(649, 415); fontItem3.Bold = true; fontItem3.FontColor = System.Drawing.Color.Black; fontItem3.FontName = "Arial"; fontItem3.Italic = false; fontItem3.LineSpacing = 1F; fontItem3.Shadow = false; fontItem3.Size = 32F; fontItem3.Underline = false; //this.slidePanel.SongFont = fontItem3; this.slidePanel.TabIndex = 3; // // MainForm // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(662, 470); this.Controls.Add(this.toolStrip1); this.Controls.Add(this.slidePanel); this.Controls.Add(this.menuStrip1); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.Name = "MainForm"; this.Text = "Presentation Builder"; this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.MainForm_FormClosing); this.toolStrip1.ResumeLayout(false); this.toolStrip1.PerformLayout(); this.menuStrip1.ResumeLayout(false); this.menuStrip1.PerformLayout(); this.ResumeLayout(false); this.PerformLayout(); }