Ejemplo n.º 1
0
        public CLoudTaskBasePopupMenu(System.Windows.Forms.Control form)
        {
            m_popupMenu     = new DevExpress.XtraBars.PopupMenu();
            m_barManager    = new DevExpress.XtraBars.BarManager();
            m_barButtonsMap = new Dictionary <string, BarButtonItem>();
            controller      = new Controllers.PopupMenuController();

            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm));
            ((System.ComponentModel.ISupportInitialize)(this.m_popupMenu)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.m_barManager)).BeginInit();

            this.m_barManager.Form       = form;
            this.m_barManager.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.barManagerItemClick);
            this.m_popupMenu.Manager     = this.m_barManager;
            this.m_popupMenu.Name        = "BasePopupMenu";
            //
            // CreateNewTask
            //
            DevExpress.XtraBars.BarButtonItem m_barButtonAddNewTask = new BarButtonItem();
            m_barButtonAddNewTask.Caption = GUIConstants.BarButtonAddNewTaskCaption;
            m_barButtonAddNewTask.Id      = 0;
            m_barButtonAddNewTask.Name    = "barButtonAddNewTask";
            m_barButtonsMap[GUIConstants.BarButtonAddNewTaskCaption] = m_barButtonAddNewTask;
            //
            // CreateNewCategory
            //
            DevExpress.XtraBars.BarButtonItem m_barButtonAddNewCategory = new BarButtonItem();
            m_barButtonAddNewCategory.Caption = GUIConstants.BarButtonAddNewCategoryCaption;
            m_barButtonAddNewCategory.Id      = 0;
            m_barButtonAddNewCategory.Name    = "barButtonAddNewTask";
            m_barButtonsMap[GUIConstants.BarButtonAddNewCategoryCaption] = m_barButtonAddNewCategory;
            //
            // DeleteNode
            //
            DevExpress.XtraBars.BarButtonItem m_barButtonDeleteElement = new BarButtonItem();
            m_barButtonDeleteElement.Caption    = GUIConstants.BarButtonDeleteNodeCaption;
            m_barButtonDeleteElement.Glyph      = ((System.Drawing.Image)(resources.GetObject("barButtonDeleteTask.Glyph")));
            m_barButtonDeleteElement.Id         = 1;
            m_barButtonDeleteElement.LargeGlyph = ((System.Drawing.Image)(resources.GetObject("barButtonDeleteTask.LargeGlyph")));
            m_barButtonDeleteElement.Name       = "barButtonDeleteTask";
            m_barButtonsMap[GUIConstants.BarButtonDeleteNodeCaption] = m_barButtonDeleteElement;

            ((System.ComponentModel.ISupportInitialize)(this.m_popupMenu)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.m_barManager)).EndInit();
        }
Ejemplo n.º 2
0
        public CLoudTaskBasePopupMenu(System.Windows.Forms.Control form)
        {
            m_popupMenu = new DevExpress.XtraBars.PopupMenu();
                m_barManager = new DevExpress.XtraBars.BarManager();
                m_barButtonsMap = new Dictionary<string, BarButtonItem>();
                controller = new Controllers.PopupMenuController();

                System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm));
                ((System.ComponentModel.ISupportInitialize)(this.m_popupMenu)).BeginInit();
                ((System.ComponentModel.ISupportInitialize)(this.m_barManager)).BeginInit();

                this.m_barManager.Form = form;
                this.m_barManager.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.barManagerItemClick);
                this.m_popupMenu.Manager = this.m_barManager;
                this.m_popupMenu.Name = "BasePopupMenu";
                //
                // CreateNewTask
                //
                DevExpress.XtraBars.BarButtonItem m_barButtonAddNewTask = new BarButtonItem();
                m_barButtonAddNewTask.Caption = GUIConstants.BarButtonAddNewTaskCaption;
                m_barButtonAddNewTask.Id = 0;
                m_barButtonAddNewTask.Name = "barButtonAddNewTask";
                m_barButtonsMap[GUIConstants.BarButtonAddNewTaskCaption] = m_barButtonAddNewTask;
                //
                // CreateNewCategory
                //
                DevExpress.XtraBars.BarButtonItem m_barButtonAddNewCategory = new BarButtonItem();
                m_barButtonAddNewCategory.Caption = GUIConstants.BarButtonAddNewCategoryCaption;
                m_barButtonAddNewCategory.Id = 0;
                m_barButtonAddNewCategory.Name = "barButtonAddNewTask";
                m_barButtonsMap[GUIConstants.BarButtonAddNewCategoryCaption] = m_barButtonAddNewCategory;
                //
                // DeleteNode
                //
                DevExpress.XtraBars.BarButtonItem m_barButtonDeleteElement = new BarButtonItem();
                m_barButtonDeleteElement.Caption = GUIConstants.BarButtonDeleteNodeCaption;
                m_barButtonDeleteElement.Glyph = ((System.Drawing.Image)(resources.GetObject("barButtonDeleteTask.Glyph")));
                m_barButtonDeleteElement.Id = 1;
                m_barButtonDeleteElement.LargeGlyph = ((System.Drawing.Image)(resources.GetObject("barButtonDeleteTask.LargeGlyph")));
                m_barButtonDeleteElement.Name = "barButtonDeleteTask";
                m_barButtonsMap[GUIConstants.BarButtonDeleteNodeCaption] = m_barButtonDeleteElement;

                ((System.ComponentModel.ISupportInitialize)(this.m_popupMenu)).EndInit();
                ((System.ComponentModel.ISupportInitialize)(this.m_barManager)).EndInit();
        }
Ejemplo n.º 3
0
        void createDropDownButton(FlexModel.MenuItem el)
        {
            popup = new DevExpress.XtraBars.PopupMenu();
            var menu = ribbon1.Items.CreateButton(el.Caption);

            menu.ActAsDropDown    = true;
            menu.ButtonStyle      = DevExpress.XtraBars.BarButtonStyle.DropDown;
            menu.CausesValidation = true;
            foreach (var item in _menus.Where(m => m.ParentID == el.ID))
            {
                if (!_security.Any(s => s.MenuItem_ID == item.ID))
                {
                    createButton(item);
                }
            }
            menu.DropDownControl = popup;
            group1.ItemLinks.Add(menu);
        }
Ejemplo n.º 4
0
        private void Form1_Load(object sender, EventArgs e)
        {
            // Finish BarManager initialization (to allow its further customization on the form load)
            barManager1.ForceInitialize();

            DevExpress.XtraBars.PopupMenu menu = new DevExpress.XtraBars.PopupMenu();
            menu.Manager       = barManager1;
            barManager1.Images = imageCollection1;
            BarButtonItem itemCopy    = new BarButtonItem(barManager1, "Copy", 0);
            BarButtonItem itemPaste   = new BarButtonItem(barManager1, "Paste", 1);
            BarButtonItem itemRefresh = new BarButtonItem(barManager1, "Refresh", 2);

            menu.AddItems(new BarItem[] { itemCopy, itemPaste, itemRefresh });
            // Create a separator before the Refresh item.
            itemRefresh.Links[0].BeginGroup = true;
            // Process item clicks.
            barManager1.ItemClick += BarManager1_ItemClick;
            // Associate the popup menu with the form.
            barManager1.SetPopupContextMenu(this, menu);
        }
        //Approve menu setup

        public static void ApproveMenuSetup(Session _uOW, DevExpress.XtraBars.PopupMenu _appMenu)
        {
            XPCollection wflowSteps = new XPCollection(_uOW, typeof(WorkflowStep));

            foreach (WorkflowStep action in wflowSteps)
            {
                _appMenu.AddItem(new DevExpress.XtraBars.BarButtonItem()
                {
                    Name       = action.WorkflowStepName.Replace(" ", string.Empty),
                    Caption    = action.WorkflowStepName,
                    Enabled    = false,
                    Tag        = action,
                    Visibility = BarItemVisibility.Never
                }).Item.ItemClick += (s, e) =>
                {
                    if (CoreLib.FormRecord.CurrentRecord != null && CoreLib.FormRecord.CurrentRecord is Line)
                    {
                        (CoreLib.FormRecord.CurrentRecord as Line).SetWorkflowStatus(action.NextWorkflow);
                    }
                };
            }
        }
Ejemplo n.º 6
0
 private void InitializeComponent()
 {
     this.components            = new System.ComponentModel.Container();
     this.navigationTreeList    = new DevExpress.XtraTreeList.TreeList();
     this.treeListColumn1       = new DevExpress.XtraTreeList.Columns.TreeListColumn();
     this.svgImageCollection1   = new DevExpress.Utils.SvgImageCollection(this.components);
     this.xtraTabControl1       = new DevExpress.XtraTab.XtraTabControl();
     this.LocalResourceTabPage  = new DevExpress.XtraTab.XtraTabPage();
     this.layoutControl1        = new DevExpress.XtraLayout.LayoutControl();
     this.CheckedResourceCombox = new DevExpress.XtraEditors.CheckedComboBoxEdit();
     this.Root = new DevExpress.XtraLayout.LayoutControlGroup();
     this.layoutControlItem1   = new DevExpress.XtraLayout.LayoutControlItem();
     this.layoutControlItem2   = new DevExpress.XtraLayout.LayoutControlItem();
     this.DBResourceTabPage    = new DevExpress.XtraTab.XtraTabPage();
     this.WebTabPage           = new DevExpress.XtraTab.XtraTabPage();
     this.popupMenu1           = new DevExpress.XtraBars.PopupMenu(this.components);
     this.barButtonItem1       = new DevExpress.XtraBars.BarButtonItem();
     this.barManager1          = new DevExpress.XtraBars.BarManager(this.components);
     this.barDockControlTop    = new DevExpress.XtraBars.BarDockControl();
     this.barDockControlBottom = new DevExpress.XtraBars.BarDockControl();
     this.barDockControlLeft   = new DevExpress.XtraBars.BarDockControl();
     this.barDockControlRight  = new DevExpress.XtraBars.BarDockControl();
     this.barStaticItem1       = new DevExpress.XtraBars.BarStaticItem();
     ((System.ComponentModel.ISupportInitialize)(this.navigationTreeList)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.svgImageCollection1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.xtraTabControl1)).BeginInit();
     this.xtraTabControl1.SuspendLayout();
     this.LocalResourceTabPage.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).BeginInit();
     this.layoutControl1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.CheckedResourceCombox.Properties)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.Root)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.popupMenu1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.barManager1)).BeginInit();
     this.SuspendLayout();
     //
     // navigationTreeList
     //
     this.navigationTreeList.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
     this.navigationTreeList.Columns.AddRange(new DevExpress.XtraTreeList.Columns.TreeListColumn[] {
         this.treeListColumn1
     });
     this.navigationTreeList.Location = new System.Drawing.Point(2, 26);
     this.navigationTreeList.Name     = "navigationTreeList";
     this.navigationTreeList.OptionsBehavior.Editable   = false;
     this.navigationTreeList.OptionsFind.AllowFindPanel = false;
     this.navigationTreeList.OptionsSelection.EnableAppearanceFocusedCell = false;
     this.navigationTreeList.OptionsView.FocusRectStyle       = DevExpress.XtraTreeList.DrawFocusRectStyle.None;
     this.navigationTreeList.OptionsView.ShowColumns          = false;
     this.navigationTreeList.OptionsView.ShowHorzLines        = false;
     this.navigationTreeList.OptionsView.ShowIndentAsRowStyle = true;
     this.navigationTreeList.OptionsView.ShowIndicator        = false;
     this.navigationTreeList.OptionsView.ShowVertLines        = false;
     this.navigationTreeList.RowHeight       = 22;
     this.navigationTreeList.SelectImageList = this.svgImageCollection1;
     this.navigationTreeList.Size            = new System.Drawing.Size(313, 674);
     this.navigationTreeList.TabIndex        = 1;
     //
     // treeListColumn1
     //
     this.treeListColumn1.Caption      = "treeListColumn1";
     this.treeListColumn1.FieldName    = "treeListColumn1";
     this.treeListColumn1.Name         = "treeListColumn1";
     this.treeListColumn1.Visible      = true;
     this.treeListColumn1.VisibleIndex = 0;
     //
     // svgImageCollection1
     //
     this.svgImageCollection1.Add("electronics_desktopmac", "image://svgimages/icon builder/electronics_desktopmac.svg");
     //
     // xtraTabControl1
     //
     this.xtraTabControl1.Dock            = System.Windows.Forms.DockStyle.Fill;
     this.xtraTabControl1.Location        = new System.Drawing.Point(0, 0);
     this.xtraTabControl1.Name            = "xtraTabControl1";
     this.xtraTabControl1.SelectedTabPage = this.LocalResourceTabPage;
     this.xtraTabControl1.Size            = new System.Drawing.Size(323, 731);
     this.xtraTabControl1.TabIndex        = 2;
     this.xtraTabControl1.TabPages.AddRange(new DevExpress.XtraTab.XtraTabPage[] {
         this.LocalResourceTabPage,
         this.DBResourceTabPage,
         this.WebTabPage
     });
     //
     // LocalResourceTabPage
     //
     this.LocalResourceTabPage.Controls.Add(this.layoutControl1);
     this.LocalResourceTabPage.Name = "LocalResourceTabPage";
     this.LocalResourceTabPage.Size = new System.Drawing.Size(317, 702);
     this.LocalResourceTabPage.Text = "本地资源";
     //
     // layoutControl1
     //
     this.layoutControl1.Controls.Add(this.CheckedResourceCombox);
     this.layoutControl1.Controls.Add(this.navigationTreeList);
     this.layoutControl1.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.layoutControl1.Location = new System.Drawing.Point(0, 0);
     this.layoutControl1.Margin   = new System.Windows.Forms.Padding(0);
     this.layoutControl1.Name     = "layoutControl1";
     this.layoutControl1.Root     = this.Root;
     this.layoutControl1.Size     = new System.Drawing.Size(317, 702);
     this.layoutControl1.TabIndex = 3;
     this.layoutControl1.Text     = "layoutControl1";
     //
     // CheckedResourceCombox
     //
     this.CheckedResourceCombox.EditValue = "";
     this.CheckedResourceCombox.Location  = new System.Drawing.Point(2, 2);
     this.CheckedResourceCombox.Name      = "CheckedResourceCombox";
     this.CheckedResourceCombox.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
         new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)
     });
     this.CheckedResourceCombox.Size            = new System.Drawing.Size(313, 20);
     this.CheckedResourceCombox.StyleController = this.layoutControl1;
     this.CheckedResourceCombox.TabIndex        = 2;
     //
     // Root
     //
     this.Root.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True;
     this.Root.GroupBordersVisible         = false;
     this.Root.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
         this.layoutControlItem1,
         this.layoutControlItem2
     });
     this.Root.Name        = "Root";
     this.Root.Padding     = new DevExpress.XtraLayout.Utils.Padding(0, 0, 0, 0);
     this.Root.Size        = new System.Drawing.Size(317, 702);
     this.Root.TextVisible = false;
     //
     // layoutControlItem1
     //
     this.layoutControlItem1.Control     = this.navigationTreeList;
     this.layoutControlItem1.Location    = new System.Drawing.Point(0, 24);
     this.layoutControlItem1.Name        = "layoutControlItem1";
     this.layoutControlItem1.Size        = new System.Drawing.Size(317, 678);
     this.layoutControlItem1.TextSize    = new System.Drawing.Size(0, 0);
     this.layoutControlItem1.TextVisible = false;
     //
     // layoutControlItem2
     //
     this.layoutControlItem2.Control               = this.CheckedResourceCombox;
     this.layoutControlItem2.Location              = new System.Drawing.Point(0, 0);
     this.layoutControlItem2.Name                  = "layoutControlItem2";
     this.layoutControlItem2.Size                  = new System.Drawing.Size(317, 24);
     this.layoutControlItem2.TextAlignMode         = DevExpress.XtraLayout.TextAlignModeItem.AutoSize;
     this.layoutControlItem2.TextSize              = new System.Drawing.Size(0, 0);
     this.layoutControlItem2.TextToControlDistance = 0;
     this.layoutControlItem2.TextVisible           = false;
     //
     // DBResourceTabPage
     //
     this.DBResourceTabPage.Name = "DBResourceTabPage";
     this.DBResourceTabPage.Size = new System.Drawing.Size(317, 702);
     this.DBResourceTabPage.Text = "数据库资源";
     //
     // WebTabPage
     //
     this.WebTabPage.Name = "WebTabPage";
     this.WebTabPage.Size = new System.Drawing.Size(317, 702);
     this.WebTabPage.Text = "Web资源";
     //
     // popupMenu1
     //
     this.popupMenu1.LinksPersistInfo.AddRange(new DevExpress.XtraBars.LinkPersistInfo[] {
         new DevExpress.XtraBars.LinkPersistInfo(this.barButtonItem1),
         new DevExpress.XtraBars.LinkPersistInfo(this.barStaticItem1)
     });
     this.popupMenu1.Manager = this.barManager1;
     this.popupMenu1.Name    = "popupMenu1";
     //
     // barButtonItem1
     //
     this.barButtonItem1.Caption = "barButtonItem1";
     this.barButtonItem1.Id      = 2;
     this.barButtonItem1.Name    = "barButtonItem1";
     //
     // barManager1
     //
     this.barManager1.DockControls.Add(this.barDockControlTop);
     this.barManager1.DockControls.Add(this.barDockControlBottom);
     this.barManager1.DockControls.Add(this.barDockControlLeft);
     this.barManager1.DockControls.Add(this.barDockControlRight);
     this.barManager1.Form = this;
     this.barManager1.Items.AddRange(new DevExpress.XtraBars.BarItem[] {
         this.barButtonItem1,
         this.barStaticItem1
     });
     this.barManager1.MaxItemId = 4;
     //
     // barDockControlTop
     //
     this.barDockControlTop.CausesValidation = false;
     this.barDockControlTop.Dock             = System.Windows.Forms.DockStyle.Top;
     this.barDockControlTop.Location         = new System.Drawing.Point(0, 0);
     this.barDockControlTop.Manager          = this.barManager1;
     this.barDockControlTop.Size             = new System.Drawing.Size(323, 0);
     //
     // barDockControlBottom
     //
     this.barDockControlBottom.CausesValidation = false;
     this.barDockControlBottom.Dock             = System.Windows.Forms.DockStyle.Bottom;
     this.barDockControlBottom.Location         = new System.Drawing.Point(0, 731);
     this.barDockControlBottom.Manager          = this.barManager1;
     this.barDockControlBottom.Size             = new System.Drawing.Size(323, 0);
     //
     // barDockControlLeft
     //
     this.barDockControlLeft.CausesValidation = false;
     this.barDockControlLeft.Dock             = System.Windows.Forms.DockStyle.Left;
     this.barDockControlLeft.Location         = new System.Drawing.Point(0, 0);
     this.barDockControlLeft.Manager          = this.barManager1;
     this.barDockControlLeft.Size             = new System.Drawing.Size(0, 731);
     //
     // barDockControlRight
     //
     this.barDockControlRight.CausesValidation = false;
     this.barDockControlRight.Dock             = System.Windows.Forms.DockStyle.Right;
     this.barDockControlRight.Location         = new System.Drawing.Point(323, 0);
     this.barDockControlRight.Manager          = this.barManager1;
     this.barDockControlRight.Size             = new System.Drawing.Size(0, 731);
     //
     // barStaticItem1
     //
     this.barStaticItem1.Caption = "barStaticItem1";
     this.barStaticItem1.Id      = 3;
     this.barStaticItem1.Name    = "barStaticItem1";
     //
     // ResourcePanel
     //
     this.Appearance.Font = new System.Drawing.Font("Tahoma", 8.25F);
     this.Appearance.Options.UseBackColor = true;
     this.Appearance.Options.UseFont      = true;
     this.AutoScaleDimensions             = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.Controls.Add(this.xtraTabControl1);
     this.Controls.Add(this.barDockControlLeft);
     this.Controls.Add(this.barDockControlRight);
     this.Controls.Add(this.barDockControlBottom);
     this.Controls.Add(this.barDockControlTop);
     this.Name = "ResourcePanel";
     this.Size = new System.Drawing.Size(323, 731);
     ((System.ComponentModel.ISupportInitialize)(this.navigationTreeList)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.svgImageCollection1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.xtraTabControl1)).EndInit();
     this.xtraTabControl1.ResumeLayout(false);
     this.LocalResourceTabPage.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).EndInit();
     this.layoutControl1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.CheckedResourceCombox.Properties)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.Root)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.popupMenu1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.barManager1)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Ejemplo n.º 7
0
        public static void InitPrintGrid(frmTPhieuThongKeChange frm,bool IsLandscape)
        {
            frm.barItemIn.Visibility = BarItemVisibility.Never;

            //   link.ShowPreviewDialog();

            BarButtonItem itemXemtruoc = new BarButtonItem();
            itemXemtruoc.Caption = "&Xem trước";
            itemXemtruoc.PaintStyle = BarItemPaintStyle.CaptionGlyph;
            itemXemtruoc.Glyph = FrameworkParams.imageStore.GetImage1616("fwPrintPreview.png");
            itemXemtruoc.ItemClick += delegate(object sender, ItemClickEventArgs e)
            {
                if (FrameworkParams.headerLetter != null)
                {
                    PrintableComponentLink link = FrameworkParams.headerLetter.Draw(frm.pivotGridMaster, frm.Text.ToUpper(),
                            "Ngày báo cáo: " + DateTime.Today.ToString(FrameworkParams.option.dateFormat));
                    link.PrintingSystem.PageSettings.Landscape = IsLandscape;
                    link.ShowPreview();
                }
                else
                {
                   frm.pivotGridMaster.ShowPrintPreview();
                }
            };

            PopupMenu popupMenu = new DevExpress.XtraBars.PopupMenu(frm.barManager1.Container);
            popupMenu.Manager = frm.barManager1;
            popupMenu.LinksPersistInfo.Add(new LinkPersistInfo(itemXemtruoc));

            BarButtonItem itemPrint = new BarButtonItem();
            itemPrint.Caption = "&In";
            itemPrint.PaintStyle = BarItemPaintStyle.CaptionGlyph;
            itemPrint.Glyph = frm.barItemIn.Glyph;
            itemPrint.ButtonStyle = BarButtonStyle.DropDown;
            itemPrint.DropDownControl = popupMenu;
            itemPrint.Visibility = BarItemVisibility.Always;
            itemPrint.ItemClick += delegate(object sender, ItemClickEventArgs e)
            {
                if (FrameworkParams.headerLetter != null)
                {
                    PrintableComponentLink link = FrameworkParams.headerLetter.Draw(frm.pivotGridMaster,frm.Text.ToUpper(),
                             "Ngày báo cáo: " + DateTime.Today.ToString(FrameworkParams.option.dateFormat));
                    link.PrintingSystem.PageSettings.Landscape = IsLandscape;
                    link.PrintDlg();
                }
                else
                {
                    frm.pivotGridMaster.Print();
                }
            };
            int index = 0;
            for (int i = 0; i < frm.MainBar.LinksPersistInfo.Count; i++)
            {
                if (frm.MainBar.LinksPersistInfo[i].Item.Name == frm.barItemIn.Name)
                {
                    index = i;
                    break;
                }
            }
            frm.MainBar.LinksPersistInfo.Insert(index, new LinkPersistInfo(itemPrint, true));
            frm.barManager1.Items.AddRange(new BarItem[] { itemPrint, itemXemtruoc });
        }
Ejemplo n.º 8
0
        public static void InitPrintGrid(BarManager barManger,Bar MainBar, GridView gridView,
            BarBaseButtonItem barButtonItemPrint, bool IsLandscape)
        {
            barButtonItemPrint.Visibility = BarItemVisibility.Never;

            //   link.ShowPreviewDialog();

            BarButtonItem itemXemtruoc = new BarButtonItem();
            itemXemtruoc.Caption = "&Xem trước";
            itemXemtruoc.PaintStyle = BarItemPaintStyle.CaptionGlyph;
            itemXemtruoc.Glyph = FrameworkParams.imageStore.GetImage1616("fwPrintPreview.png");
            itemXemtruoc.ItemClick += delegate(object sender, ItemClickEventArgs e)
            {
                if (FrameworkParams.headerLetter != null)
                {
                    bool showCaption = gridView.OptionsView.ShowViewCaption;
                    gridView.OptionsView.ShowViewCaption = false;
                    PrintableComponentLink link = FrameworkParams.headerLetter.Draw(gridView.GridControl, gridView.ViewCaption.ToUpper(),
                            "Ngày báo cáo: " + DateTime.Today.ToString(FrameworkParams.option.dateFormat));
                    link.PrintingSystem.PageSettings.Landscape = IsLandscape;
                    gridView.OptionsView.ShowViewCaption = showCaption;
                    link.ShowPreview();
                }
                else
                {
                    gridView.GridControl.ShowPrintPreview();
                }
            };

            PopupMenu popupMenu = new DevExpress.XtraBars.PopupMenu(barManger.Container);
            popupMenu.Manager = barManger;
            popupMenu.LinksPersistInfo.Add(new LinkPersistInfo(itemXemtruoc));

            BarButtonItem itemPrint = new BarButtonItem();
            itemPrint.Caption = "&In";
            itemPrint.PaintStyle = BarItemPaintStyle.CaptionGlyph;
            itemPrint.Glyph = barButtonItemPrint.Glyph;
            itemPrint.ButtonStyle = BarButtonStyle.DropDown;
            itemPrint.DropDownControl = popupMenu;
            itemPrint.Enabled = false;
            itemPrint.Visibility = BarItemVisibility.Always;
            itemPrint.ItemClick += delegate(object sender, ItemClickEventArgs e)
            {
                if (FrameworkParams.headerLetter != null)
                {
                    bool showCaption = gridView.OptionsView.ShowViewCaption;
                    gridView.OptionsView.ShowViewCaption = false;
                    PrintableComponentLink link = FrameworkParams.headerLetter.Draw(gridView.GridControl, gridView.ViewCaption.ToUpper(),
                             "Ngày báo cáo: " + DateTime.Today.ToString(FrameworkParams.option.dateFormat));
                    link.PrintingSystem.PageSettings.Landscape = IsLandscape;
                    gridView.OptionsView.ShowViewCaption = showCaption;
                    gridView.OptionsPrint.PrintDetails = true;
                    link.PrintDlg();
                }
                else
                {
                   gridView.GridControl.Print();
                }
            };
            int index =0;
            for (int i = 0; i < MainBar.LinksPersistInfo.Count; i++)
            {
                if (MainBar.LinksPersistInfo[i].Item.Name == barButtonItemPrint.Name)
                {
                    index = i;
                    break;
                }
            }
            MainBar.LinksPersistInfo.Insert(index, new LinkPersistInfo(itemPrint, true));
            barManger.Items.AddRange(new BarItem[] { itemPrint, itemXemtruoc });
            gridView.RowCountChanged += delegate(object sender, EventArgs e)
            {
                itemPrint.Enabled = gridView.RowCount > 0;
            };
        }
Ejemplo n.º 9
0
        private void ShowMergePopup(DragEventArgs e)
        {
            DevExpress.XtraBars.PopupMenu buttonContextMenu;
            DevExpress.XtraBars.BarButtonItem menuButtonExport = new DevExpress.XtraBars.BarButtonItem();
            DevExpress.XtraBars.BarButtonItem menuButtonSave = new DevExpress.XtraBars.BarButtonItem();

            var barManager1 = new BarManager();
            barManager1.Form = this;
            buttonContextMenu = new DevExpress.XtraBars.PopupMenu(barManager1);
            buttonContextMenu.Name = "subViewContextMenu";

            menuButtonExport.Caption = "Слить";
            menuButtonExport.Id = 1;
            menuButtonExport.Name = "menuButtonMerge";
            //menuButtonExport.ItemClick += new ItemClickEventHandler(menuButtonExport_ItemClick);

            menuButtonSave.Caption = "Добавить";
            menuButtonSave.Id = 2;
            menuButtonSave.Name = "menuButtonAdd";
            //menuButtonSave.ItemClick += new ItemClickEventHandler(menuButtonSave_ItemClick);
            //add items to barmanager
            barManager1.Items.AddRange(new DevExpress.XtraBars.BarItem[]
            {
                menuButtonExport,
                menuButtonSave
            });
            //create links between bar items and popup
            buttonContextMenu.ItemLinks.Add(barManager1.Items["menuButtonMerge"]);
            buttonContextMenu.ItemLinks.Add(barManager1.Items["menuButtonAdd"]);

            //finally set the context menu to the control or use the showpopup method on right click of control
            //barManager1.SetPopupContextMenu(btnInsert, buttonContextMenu);
            //buttonContextMenu.ShowPopup(treeShop.PointToClient(new Point(e.X, e.Y)));
            buttonContextMenu.ShowPopup(new Point(e.X, e.Y));
        }
Ejemplo n.º 10
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.lblCoverItem          = new System.Windows.Forms.Label();
     this.txtNewItemDescription = new DevExpress.XtraEditors.TextEdit();
     this.ppRightClick          = new DevExpress.XtraBars.PopupMenu();
     this.barmRightClick        = new DevExpress.XtraBars.BarManager();
     this.barDockControlTop     = new DevExpress.XtraBars.BarDockControl();
     this.barDockControlBottom  = new DevExpress.XtraBars.BarDockControl();
     this.barDockControlLeft    = new DevExpress.XtraBars.BarDockControl();
     this.barDockControlRight   = new DevExpress.XtraBars.BarDockControl();
     ((System.ComponentModel.ISupportInitialize)(this.pnlBorder)).BeginInit();
     this.pnlBorder.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.txtNewItemDescription.Properties)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.ppRightClick)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.barmRightClick)).BeginInit();
     this.SuspendLayout();
     //
     // pnlBorder
     //
     this.pnlBorder.Controls.Add(this.txtNewItemDescription);
     this.pnlBorder.Controls.Add(this.lblCoverItem);
     this.pnlBorder.Name = "pnlBorder";
     this.pnlBorder.Controls.SetChildIndex(this.lblCoverItem, 0);
     this.pnlBorder.Controls.SetChildIndex(this.vScroll, 0);
     this.pnlBorder.Controls.SetChildIndex(this.hScroll, 0);
     this.pnlBorder.Controls.SetChildIndex(this.txtNewItemDescription, 0);
     //
     // vScroll
     //
     this.vScroll.Name = "vScroll";
     //
     // hScroll
     //
     this.hScroll.Name = "hScroll";
     //
     // lblCoverItem
     //
     this.lblCoverItem.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                      | System.Windows.Forms.AnchorStyles.Right)));
     this.lblCoverItem.BackColor = System.Drawing.Color.White;
     this.lblCoverItem.Location  = new System.Drawing.Point(2, 22);
     this.lblCoverItem.Name      = "lblCoverItem";
     this.lblCoverItem.Size      = new System.Drawing.Size(724, 18);
     this.lblCoverItem.TabIndex  = 4;
     this.lblCoverItem.Text      = "               Click here to add a new task";
     this.lblCoverItem.Click    += new System.EventHandler(this.lblCoverItem_Click);
     //
     // txtNewItemDescription
     //
     this.txtNewItemDescription.Location = new System.Drawing.Point(30, 20);
     this.txtNewItemDescription.Name     = "txtNewItemDescription";
     //
     // txtNewItemDescription.Properties
     //
     this.txtNewItemDescription.Properties.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
     this.txtNewItemDescription.Size     = new System.Drawing.Size(75, 18);
     this.txtNewItemDescription.TabIndex = 5;
     this.txtNewItemDescription.Visible  = false;
     //
     // ppRightClick
     //
     this.ppRightClick.Manager = this.barmRightClick;
     this.ppRightClick.Name    = "ppRightClick";
     //
     // barmRightClick
     //
     this.barmRightClick.DockControls.Add(this.barDockControlTop);
     this.barmRightClick.DockControls.Add(this.barDockControlBottom);
     this.barmRightClick.DockControls.Add(this.barDockControlLeft);
     this.barmRightClick.DockControls.Add(this.barDockControlRight);
     this.barmRightClick.Form      = this;
     this.barmRightClick.MaxItemId = 0;
     //
     // TaskListGUI
     //
     this.BorderColor = System.Drawing.Color.FromArgb(((System.Byte)(247)), ((System.Byte)(245)), ((System.Byte)(241)));
     this.Controls.Add(this.barDockControlTop);
     this.Controls.Add(this.barDockControlBottom);
     this.Controls.Add(this.barDockControlLeft);
     this.Controls.Add(this.barDockControlRight);
     this.Name = "TaskListGUI";
     this.barmRightClick.SetPopupContextMenu(this, this.ppRightClick);
     this.Controls.SetChildIndex(this.barDockControlRight, 0);
     this.Controls.SetChildIndex(this.barDockControlLeft, 0);
     this.Controls.SetChildIndex(this.barDockControlBottom, 0);
     this.Controls.SetChildIndex(this.barDockControlTop, 0);
     this.Controls.SetChildIndex(this.pnlBorder, 0);
     ((System.ComponentModel.ISupportInitialize)(this.pnlBorder)).EndInit();
     this.pnlBorder.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.txtNewItemDescription.Properties)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.ppRightClick)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.barmRightClick)).EndInit();
     this.ResumeLayout(false);
 }
Ejemplo n.º 11
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.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>
 /// Initializes a new instance of the <see cref="NestedDynamicActionContainer"/> class.
 /// </summary>
 public NestedDynamicActionContainer() : base()
 {
     contextMenu      = new DevExpress.XtraBars.PopupMenu(BarManager);
     contextMenu.Name = nameof(contextMenu);
 }