private void GenerateLayoutChildPanels(Collection <FanLayoutPanel> childPanelItems, DockPanel parentPanel)
        {
            foreach (FanLayoutPanel childPanel in childPanelItems)
            {
                DockPanel dockChildPanel = new DockPanel();
                dockChildPanel.Dock                       = DockingStyle.Fill;//;FanLayoutDockPositionEnumHelper.toDockingStyle(childPanel.DockPosistion);
                dockChildPanel.ID                         = new System.Guid(childPanel.Guid);
                dockChildPanel.Location                   = new System.Drawing.Point(0, 200);
                dockChildPanel.Name                       = childPanel.Name;
                dockChildPanel.OriginalSize               = new System.Drawing.Size(200, 200);
                dockChildPanel.Size                       = new System.Drawing.Size(200, 271);
                dockChildPanel.Text                       = childPanel.Title;
                dockChildPanel.Options.ShowCloseButton    = true;
                dockChildPanel.Options.ShowAutoHideButton = true;
                dockChildPanel.Options.ShowMaximizeButton = true;
                dockChildPanel.ClosingPanel              += dockPanel_ClosingPanel;

                ControlContainer container = new ControlContainer();
                container.Location = new System.Drawing.Point(0, 0);
                container.Dock     = DockStyle.Fill;
                container.Name     = childPanel.Name + "_Container";
                container.Size     = new System.Drawing.Size(493, 242);
                container.TabIndex = 0;

                dockChildPanel.Controls.Add(container);

                parentPanel.Controls.Add(dockChildPanel);

                //将Assembly加载到面板中,构建面板内容
                LoadAssemblyToPanel(dockChildPanel, container, childPanel.Assembly, childPanel.AssemblyType);

                //将面板注册到寻址服务中
                this.GetAddressService().Register(dockChildPanel.Name, dockChildPanel, ControlTypeEnum.Panel);
            }
        }
示例#2
0
文件: Login.cs 项目: avs009/gsf
				/// <summary>
				/// Creates an instance of the login control.
				/// </summary>
				/// <param name="container">Control containing this control.</param>
				/// <param name="securityProvider">Current security control.</param>
				public Login(ControlContainer container, WebSecurityProvider securityProvider)
				{
					
					m_container = container;
					m_securityProvider = securityProvider;
					
				}
示例#3
0
        public void Create(DataViewParams aParams)
        {
            VerifyParameters(aParams);
            fParams = aParams;
            fParams.dataProvider.AddView(this);
            CreateVisualItemTree();
            fDescriptionPanel = fParams.descriptionContainer;

            if (fDescriptionPanel != null)
            {
                fDescriptionPanel.Reset();
                fDescriptionPanel.StartUpdate();
                TextBox t = new TextBox();
                t.Multiline         = true;
                t.Dock              = DockStyle.Fill;
                t.ReadOnly          = true;
                t.BorderStyle       = BorderStyle.FixedSingle;
                t.Font              = new Font("Lucida fax", 10);
                fDescriptionTextBox = t;
                fDescriptionPanel.Controls.Add(t);
                fDescriptionPanel.EndUpdate();
            }

            if (fPreviewForm == null)
            {
                fPreviewForm = new PreviewForm();
                fPreviewForm.PreviewTimer.Tick += PreviewTimer_Tick;
            }
            ReCreateTree();
        }
示例#4
0
				/// <summary>
				/// Creates an instance of the change password control.
				/// </summary>
				/// <param name="container">Control containing this control.</param>
				/// <param name="securityProvider">Current security control.</param>
				public ChangePassword(ControlContainer container, WebSecurityProvider securityProvider)
				{
					
					m_container = container;
					m_securityProvider = securityProvider;
					
				}
            void RegisterPeekPanel(DockManager dockManager, ModuleType type)
            {
                var panel = new DockPanel();

                panel.ID = viewModel.GetModuleID(type);
                panels.Add(panel.ID, type);
                panel.Name = "peekPanel" + viewModel.GetModuleName(type);
                panel.Options.AllowDockBottom = false;
                panel.Options.AllowDockLeft   = false;
                panel.Options.AllowDockTop    = false;
                panel.Options.AllowFloating   = false;
                panel.Text         = viewModel.GetModuleCaption(type);
                panel.Visibility   = DockVisibility.Hidden;
                panel.SavedDock    = DockingStyle.Right;
                panel.OriginalSize = new System.Drawing.Size(200, 200);
                if (dockManager.HiddenPanels.Count > 0)
                {
                    panel.SavedParent = dockManager.HiddenPanels[0];
                    panel.Dock        = DockingStyle.Fill;
                    panel.SavedDock   = DockingStyle.Fill;
                    panel.SavedIndex  = dockManager.HiddenPanels.Count - 1;
                }
                var container = new ControlContainer();

                container.Name = panel.Name + "_ControlContainer";
                panel.Controls.Add(container);
                panel.Register(dockManager);
                dockManager.HiddenPanels.AddRange(new DockPanel[] { panel });
            }
示例#6
0
 private void button1_Click(object sender, EventArgs e)
 {
     //初始化
     countryChart.Dispose();
     dockContainer.Dispose();
     dockClear();
     countryChart  = new ChartControl();
     dockContainer = new ControlContainer();
     //显示dock
     dockShow();
     dockpanel.Resize += new System.EventHandler(this.dockpanel_Resize);
     dockContainer.Controls.Add(countryChart);
     dockpanel.Controls.Add(dockContainer);
     //设置属性
     dockContainer.Location            = new System.Drawing.Point(0, 0);
     dockContainer.Name                = "country_Container";
     dockContainer.Size                = new Size(dockpanel.Size.Width, dockpanel.Size.Height - 30);
     dockContainer.TabIndex            = 0;
     countryChart.Size                 = new Size(dockpanel.Size.Width, dockpanel.Size.Height - 20);
     countryChart.RuntimeHitTesting    = true;
     countryChart.MouseUp             += CountryChart_MouseUp;
     countryChart.CustomDrawCrosshair += CountryChart_CustomDrawCrosshair;
     //填充数据
     showChart(countryChart, "country", "ARM");
 }
示例#7
0
    private void LoadExisting()
    {
        control = ReloadControl();
        IScreenDefault screen = (IScreenDefault)ControlContainer.FindControl(control.GetType().Name);

        screen.LoadExisting();
        // btnSave.Enabled = false;
    }
示例#8
0
 private void button2_Click(object sender, EventArgs e)
 {
     countryChart.Dispose();
     dockContainer.Dispose();
     dockClear();
     countryChart  = new ChartControl();
     dockContainer = new ControlContainer();
 }
        /// <summary>
        /// 将Assembly加载到面板中,构建面板内容
        /// </summary>
        /// <param name="controlContainer"></param>
        /// <param name="uiView"></param>
        private void LoadAssemblyToPanel(DockPanel dockPanel, ControlContainer controlContainer, string assembly, string assemblyType)
        {
            if (string.IsNullOrWhiteSpace(assembly))
            {
                return;
            }

            string[] temp = assembly.Split(',');
            if (temp.Length < 2)
            {
                return;
            }

            string assembleName = temp[1] + "." + assemblyType;
            string typeName     = temp[0];
            object obj          = AssemblyHelper.GetInstanceFromAssembly(assembleName, typeName);

            if (obj == null)
            {
                logger.Error("加载【" + typeName + "】插件中的【" + assembleName + "】失败,并忽略该插件");
                FanMessageBox.Warning("加载【" + typeName + "】插件中的【" + assembleName + "】失败,并忽略该插件", "系统消息");
                return;
            }


            if (obj is FanUserControl)
            {
                FanUserControl userControl = (FanUserControl)obj;
                userControl.Name       = dockPanel.Name; // +"_UserControl";
                userControl.OwnerPanel = dockPanel;
                userControl.Dock       = DockStyle.Fill;
                //将图标集转递给各个面板
                userControl.LoadImage16Collection(GlobalParamService.SystemSettingParam.Image16CollectionList);
                userControl.LoadImage32Collection(GlobalParamService.SystemSettingParam.Image32CollectionList);

                controlContainer.Controls.Add(userControl);

                //将面板中的用户控件注册到寻址服务中
                this.GetAddressService().Register(userControl.Name, userControl, ControlTypeEnum.UserControl);

                //this.Container.HookHolder.AddControlHook(userControl.ControlHookHolder);
                //this.Container.HookHolder.AddUiViewHook(userControl);
                //_uiViews_cache.Add(userControl);
            }
            else
            {
                logger.Error("加载【" + typeName + "】插件中的【" + assembleName + "】不是FanUserControl标准用户控件,并忽略该插件");
                FanMessageBox.Show("加载【" + typeName + "】插件中的【" + assembleName + "】不是FanUserControl标准用户控件,并忽略该插件", "系统消息", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                return;
            }
            //else if (obj is UserControl)
            //{
            //    UserControl userControl = (UserControl)obj;
            //    userControl.Dock = DockStyle.Fill;
            //    controlContainer.Controls.Add(userControl);
            //}
        }
示例#10
0
 public FormMap()
 {
     InitializeComponent();
     countryChart          = new ChartControl();
     dockContainer         = new ControlContainer();
     importtype            = new string[] { "food", "goods", "fuel", "service", "merchandise", "commercial service" };
     importname            = new string[] { "food_import", "goods_import", "fuel_import", "service_import", "merchandise_import", "commercial_service_import" };
     dockContainer.Resize += new System.EventHandler(this.dockContainer_Resize);
     nowmode = "home";
 }
示例#11
0
 public ContainerStore()
 {
     DI = new DIContainer()
     {
     };
     controls = new ControlContainer(DI);
     windows  = new WindowContainer(DI);
     _registerDialogs();
     _registerServices();
 }
示例#12
0
        public static ABCDockPanel AddNewDockPanel(ABCView view)
        {
            ABCDockPanel panel = new ABCDockPanel();

            panel.Dock = DevExpress.XtraBars.Docking.DockingStyle.Left;

            DevExpress.XtraBars.Docking.ControlContainer ctrl = new ControlContainer();
            ctrl.Dock   = DockStyle.Fill;
            ctrl.Parent = panel;

            return(panel);
        }
示例#13
0
        /// <summary>
        /// 初始化主程序类
        /// </summary>
        /// <param name="barList">工具条列表</param>
        /// <param name="appMenu">开始菜单</param>
        /// <param name="frameMenu">图框菜单</param>
        /// <param name="lyrMenu">图层菜单</param>
        /// <param name="rgbMenu">波段组合菜单</param>
        /// <param name="layerItem">图层选择控件</param>
        /// <param name="sptItem">状态栏坐标系</param>
        /// <param name="xyItem">状态栏坐标</param>
        /// <param name="rasterItem">状态栏栅格信息</param>
        /// <param name="swipeItem">卷帘按钮</param>
        /// <param name="eagleItem">鹰眼按钮</param>
        /// <param name="dpEagle">鹰眼控件</param>
        /// <param name="lstRecentFiles">最近历史控件</param>
        /// <param name="tableContainer">属性表容器</param>
        public void Initialize(List <Bar> barList, ApplicationMenu appMenu,
                               PopupMenu frameMenu, PopupMenu lyrMenu, PopupMenu rgbMenu,
                               BarEditItem layerItem, BarItem sptItem, BarItem xyItem,
                               BarItem rasterItem, BarItem swipeItem, BarButtonItem eagleItem, DockPanel dpEagle,
                               ImageListBoxControl lstRecentFiles, ControlContainer tableContainer)
        {
            MapAPI.NewDocument();

            this._barList               = barList;
            this._appMenu               = appMenu;
            this._popMenuFrame          = frameMenu;
            this._popMenuLayer          = lyrMenu;
            this._popMenuRGB            = rgbMenu;
            this._barEditLyList         = layerItem;
            this._barItemSwipe          = swipeItem;
            this._layerEffectProperties = new CommandsEnvironmentClass();
            this._barItemSPt            = sptItem;
            this._barItemXY             = xyItem;
            this._barItemRaster         = rasterItem;
            this._barEagle              = eagleItem;
            this._dpEagle               = dpEagle;
            this._lstRecently           = lstRecentFiles;
            //EnviVars.instance.TablePanel = tablePanel;
            EnviVars.instance.TableContainer  = tableContainer;
            EnviVars.instance.RecentFilesCtrl = lstRecentFiles;
            history = new TaskHistory(ConstDef.FILE_RENCENTFILES, 5);
            EnviVars.instance.history = history;
            history.LoadHistory();
            _eagleEye = new MapControlEagle(this._mapControl as IMapControl4, this._mapControlEagle as IMapControl4);
            this._barEagle.ItemClick             += new ItemClickEventHandler(this._barEagle_ItemClick);
            lstRecentFiles.MouseDoubleClick      += new System.Windows.Forms.MouseEventHandler(this.lstRecently_MouseClick);
            this._barEditLyList.EditValueChanged += new EventHandler(this.barEditLyList_EditValueChanged);

            //绑定工具条按钮事件
            IEnumerator enumerator;

            foreach (Bar current in barList)
            {
                enumerator = current.ItemLinks.GetEnumerator();
                this.GetContainerCommandList(enumerator);
            }
            //绑定开始菜单按钮事件
            enumerator = appMenu.ItemLinks.GetEnumerator();
            this.GetContainerCommandList(enumerator);
            //绑定图框菜单按钮事件
            enumerator = frameMenu.ItemLinks.GetEnumerator();
            this.GetContainerCommandList(enumerator);
            //绑定图层菜单按钮事件
            enumerator = lyrMenu.ItemLinks.GetEnumerator();
            this.GetContainerCommandList(enumerator);
        }
        public void Find_OneNestedControl_ReturnsCorrectResult()
        {
            var screen = new ScreenControl();

            screen.Name = "screen";

            float buttonWidth  = 100;
            float buttonHeight = 40;

            var button1 = new FakeControl(new Area(40, 40, buttonWidth, buttonHeight));

            button1.Name = "button1";

            var button2 = new FakeControl(new Area(5 + 40, 40, buttonWidth, buttonHeight));

            button2.Name = "button2";

            var button3 = new FakeControl(new Area(40, 5 + 40, buttonWidth, buttonHeight));

            button3.Name = "button3";

            var button4 = new FakeControl(new Area(5 + 40, 5, buttonWidth, buttonHeight));

            button4.Name = "button4";

            var container = new ControlContainer(new Area(5 + 40, 5, 300, 300));

            container.Name = "container";

            var button5 = new FakeControl(new Area(10, 10, buttonWidth, buttonHeight));

            button5.Name = "button1";

            var container_button2 = new FakeControl(new Area(5 + 10, 10, buttonWidth, buttonHeight));

            container_button2.Name = "button2";

            container.AddControl(button5);
            container.AddControl(container_button2);

            screen.AddControl(button1);
            screen.AddControl(button2);
            screen.AddControl(button3);
            screen.AddControl(button4);

            screen.AddControl(container);

            var actual = screen.Find("container/button2");

            Assert.AreEqual(container_button2, actual);
        }
        public void Bubbling_A_Null_Event_ThrowsArgumentNullException()
        {
            ControlContainer outermost    = new ControlContainer(Area.None);
            ControlContainer intermediate = new ControlContainer(Area.None);
            ControlContainer innermost    = new ControlContainer(Area.None);

            controlThatTriggersTheEvent = new FakeBubbleControl();

            innermost.AddControl(controlThatTriggersTheEvent);
            intermediate.AddControl(innermost);
            outermost.AddControl(intermediate);

            controlThatTriggersTheEvent.TriggerNullEvent();
        }
 /// <summary>
 /// 新增課程相關右鍵選單控制項
 /// </summary>
 public static void AddItem(ControlContainer item)
 {
     if (_Manager == null)
     {
         if (catchItems == null)
         {
             catchItems = new List <ControlContainer>();
         }
         catchItems.Add(item);
     }
     else
     {
         _Manager.Add(item);
     }
 }
示例#17
0
        private void InitOtherComponent()
        {
            this.dpFooter = new DockPanel();
            ControlContainer controlContainer = new ControlContainer();

            this.xucSalaryCard1 = new xucSalaryCard();
            {
                Dock = DockStyle.Fill;
            }
            controlContainer.Controls.Add(this.xucSalaryCard1);
            this.dpFooter.Controls.Add(controlContainer);
            this.dpFooter.Dock = DockingStyle.Bottom;
            this.dManager.RootPanels.AddRange(new DockPanel[] { this.dpFooter });
            this.dpFooter.VisibilityChanged += new VisibilityChangedEventHandler(this.dpFooter_VisibilityChanged);
            this.xucSalaryCard1.Updated     += new xucSalaryCard.UpdatedHandler(this.xucSalaryCard1_Updated);
        }
示例#18
0
        public Control GetFirstControl()
        {
            if ((this.Panel == null) || (this.Panel.Controls.Count == 0))
            {
                return(null);
            }
            ControlContainer container = this.Panel.Controls[0] as ControlContainer;

            if (container != null)
            {
                if (container.Controls.Count > 0)
                {
                    return(container.Controls[0]);
                }
                return(null);
            }
            return(this.Panel.Controls[0]);
        }
示例#19
0
        private void LoadRuntimeControl(Type type)
        {
            IToolboxControl  ctrl          = Activator.CreateInstance(type) as IToolboxControl;
            ControlContainer hostContainer = new ControlContainer(ctrl);

            tabControlMain.TabPages.Add(hostContainer.ControlCaption);
            TabPage page = tabControlMain.TabPages[tabControlMain.TabPages.Count - 1];

            page.Margin  = new System.Windows.Forms.Padding(0);
            page.Padding = new System.Windows.Forms.Padding(0);
            page.Controls.Add(hostContainer as Control);
            page.Tag = hostContainer;
            imageListTabMain.Images.Add(hostContainer.Icon);
            page.ImageIndex = imageListTabMain.Images.Count - 1;
            (hostContainer as Control).Dock = DockStyle.Fill;
            _toolboxControls.Add(hostContainer);
            hostContainer.InitializeControl(this);
        }
        public void Event_Is_Bubbled_All_The_Way_Up()
        {
            ControlContainer outermost    = new ControlContainer(Area.None);
            ControlContainer intermediate = new ControlContainer(Area.None);
            ControlContainer innermost    = new ControlContainer(Area.None);

            controlThatTriggersTheEvent = new FakeBubbleControl();

            innermost.AddControl(controlThatTriggersTheEvent);
            intermediate.AddControl(innermost);
            outermost.AddControl(intermediate);

            outermost.EventBubbled += outmost_EventBubbled;

            controlThatTriggersTheEvent.TriggerEvent();

            // The test should never reach this line.
            Assert.Fail();
        }
示例#21
0
 private void tileItem2_ItemClick(object sender, TileItemEventArgs e)
 {
     if (e.Item.Elements[1].Text == "默认设置")
     {
         System.Diagnostics.Process.Start("notepad.exe", Application.StartupPath + "\\" + "延迟线收发组件-十六通道测试软件.exe.config");
     }
     else
     {
         dockPanel_数据采集模块.Controls.Clear();
         //展示初始化窗体
         _DataModule.TopLevel        = false;
         _DataModule.Dock            = DockStyle.Fill;
         _DataModule.FormBorderStyle = FormBorderStyle.None;
         ControlContainer controlContainer = new ControlContainer();
         controlContainer.Controls.Add(_DataModule);
         dockPanel_数据采集模块.FloatVertical = true;
         dockPanel_数据采集模块.Controls.Add(controlContainer);
         _DataModule.Show();
         dockPanel_数据采集模块.Show();
     }
 }
示例#22
0
        public RulerPanel(ReportPageDesigner pd) : base()
        {
            FPageDesigner = pd;
            FPage         = pd.Page as ReportPage;
            FWorkspace    = new ReportWorkspace(FPageDesigner);
            FWorkspace.LocationChanged += new EventHandler(Workspace_LocationChanged);

            FHorzRuler        = new HorzRuler(pd);
            FHorzRuler.Height = 24;
            FHorzRuler.Dock   = DockStyle.Top;
            FVertRuler        = new VertRuler(pd);
            FVertRuler.Dock   = DockStyle.Left;
            FVertRuler.Width  = 24;

            btnSwitchView           = new Button();
            btnSwitchView.Location  = new Point(4, 4);
            btnSwitchView.Size      = new Size(16, 16);
            btnSwitchView.FlatStyle = FlatStyle.Flat;
            btnSwitchView.FlatAppearance.BorderColor = SystemColors.ButtonFace;
            btnSwitchView.FlatAppearance.BorderSize  = 0;
            btnSwitchView.Cursor = Cursors.Hand;
            btnSwitchView.Image  = Res.GetImage(81);
            btnSwitchView.Click += new EventHandler(btnSwitchView_Click);
            FHorzRuler.Controls.Add(btnSwitchView);

            FStructure      = new BandStructure(FPageDesigner);
            FStructure.Dock = DockStyle.Fill;

            FControlContainer      = new ControlContainer(FWorkspace);
            FControlContainer.Dock = DockStyle.Fill;

            Panel1.Controls.Add(FStructure);
            Panel2.Controls.AddRange(new Control[] { FControlContainer, FVertRuler, FHorzRuler });
            Panel1MinSize    = 20;
            FixedPanel       = FixedPanel.Panel1;
            SplitterDistance = 120;
            SplitterMoved   += new SplitterEventHandler(RulerPanel_SplitterMoved);

            AdjustOffset();
        }
示例#23
0
        public ControlContainerWrapper(ControlContainer container)
            : base()
        {
            Update += () =>
            {
                if (ControlContainer == null)
                {
                    return;
                }

                if (!inited)
                {
                    ControlContainer.Init();

                    inited = true;
                }

                ControlContainer.Update();
            };

            ControlContainer = container;
        }
        private void InitializeComponent()
        {
            var container = new ControlContainer();

            notifyIcon1 = new NotifyIcon(container);
            contextMenuStrip1 = new ContextMenuStrip(container);
            VisaGanttMeny = new ToolStripMenuItem("Ganttschema");
            VisaSpektrumMeny = new ToolStripMenuItem("Spektrumdiagram");
            AvslutaApplikationMeny = new ToolStripMenuItem("Avsluta");
            VisaVeckoöversiktMeny = new ToolStripMenuItem("Veckoöversikt");
            toolStripMenuItem1 = new ToolStripSeparator();

            notifyIcon1.ContextMenuStrip = this.contextMenuStrip1;
            notifyIcon1.Visible = true;

            contextMenuStrip1.Items.AddRange(new ToolStripItem[] {
                VisaGanttMeny,
                VisaVeckoöversiktMeny,
                VisaSpektrumMeny,
                toolStripMenuItem1,
                AvslutaApplikationMeny});

            contextMenuStrip1.ResumeLayout(false);
        }
示例#25
0
 private void CreateContent()
 {
     try
     {
         if (this.caller != null && this.caller is System.Windows.Forms.Control.ControlCollection)
         {
             ControlContainer value = new ControlContainer();
             this.dockPanel = new DockPanel();
             this.dockPanel.Controls.Add(value);
             this.dockPanel.Dock = DockingStyle.Right;
             this.dockPanel.Text = this.codon.Properties["title"];
             ((System.Windows.Forms.Control.ControlCollection) this.caller).Add(this.dockPanel);
         }
         this.dockPanelContent = (IDockPanelContent)this.codon.AddIn.CreateObject(this.codon.Properties["class"]);
         if (this.dockPanelContent != null && this.dockPanelContent.Control != null)
         {
             this.dockPanel.Controls.Add(this.dockPanelContent.Control);
             this.dockPanelContent.Control.Dock = System.Windows.Forms.DockStyle.Fill;
         }
     }
     catch (System.Exception)
     {
     }
 }
示例#26
0
 public ControlTypeDescriptorContext(ICollection collection)
 {
     cc = new ControlContainer(collection);
 }
示例#27
0
        protected override void Start()
        {
            this.AddLabelControl("BlendingOptionsLabel").SetLabelStyle(EditorStyles.boldLabel);
            _blendMode = this.AddEnumControl <BlendMode>("_Mode");
            _colorMode = this.AddEnumControl <ColorMode>("_ColorMode");
            this.AddSpaceControl();

            this.AddLabelControl("MainOptionsLabel").SetLabelStyle(EditorStyles.boldLabel);
            _flipbook = this.AddKeywordToggleControl("_REQUIRE_UV2");
            this.AddToggleControl("_Cull", 0, 2);

            _zWriteOffOptions     = this.AddControlContainer();
            _softParticles        = _zWriteOffOptions.AddToggleListControl("_SoftParticlesEnabled");
            _softParticleNearFade = _softParticles.AddPropertyControl("_SoftParticlesNearFadeDistance");
            _softParticleFarFade  = _softParticles.AddPropertyControl("_SoftParticlesFarFadeDistance");
            _cameraFading         = _zWriteOffOptions.AddToggleListControl("_CameraFadingEnabled");
            _cameraNearFade       = _cameraFading.AddPropertyControl("_CameraNearFadeDistance");
            _cameraFarFade        = _cameraFading.AddPropertyControl("_CameraFarFadeDistance");

            _dissolve = this.AddToggleListControl("_DissolveEnabled");
            _dissolve.AddTextureControl("_DissolveTex");
            _dissolve.AddPropertyControl("_DCutoff");
            _dissolve.AddPropertyControl("_DissolveScale");

            _vertexMod = this.AddToggleListControl("_VertexMod");
            _vertexMod.AddTextureControl("_NoiseTex");
            _vertexMod.AddPropertyControl("_Amplitude");
            _vertexMod.AddVectorControl("_VUVScroll", true, true, false, false).Alias("VertexUVScroll");
            _vertexMod.AddVectorControl("_VUVScroll", false, false, true, true).Alias("VertexUVScale");

            _rim = this.AddToggleListControl("_RimEn");
            _rim.AddPropertyControl("_RimVal");
            _rim.AddColorControl("_RimColor");

            _distorsion = this.AddToggleListControl("_UVDistEnable");
            _distorsion.AddTextureControl("_UVDisTex");
            _distorsion.AddVectorControl("_UVDisSpeed", true, true, false, false).Alias("UVScrollSpeed");
            _distorsion.AddVectorControl("_UVDisSpeed", false, false, true, true).Alias("UVScrollScale");
            this.AddSpaceControl();

            this.AddLabelControl("MapsOptionsLabel").SetLabelStyle(EditorStyles.boldLabel);
            _albedoControl = this.AddTextureControl("_MainTex", "_Color").SetHasHDRColor(true);
            this.AddVectorControl("_UVScroll", true, true, false, false);
            this.AddSpaceControl();

            _albedo2 = this.AddToggleListControl("_MainTex2Enabled");
            _albedo2.AddTextureControl("_MainTex2", "_Color2").SetHasHDRColor(true);
            _albedo2.AddEnumControl <VRLBlend>("_MainTex2Blend");
            _albedo2.AddVectorControl("_UVScroll2", true, true, false, false).Alias("Albedo2ScrollSpeed");
            _albedo2.AddVectorControl("_UVScroll2", false, false, true, true).Alias("Albedo2ScrollScale");
            this.AddSpaceControl();

            _emission        = this.AddKeywordToggleListControl("_EMISSION");
            _emissionControl = _emission.AddTextureControl("_EmissionMap", "_EmissionColor").SetHasHDRColor(true);
            this.AddSpaceControl();

            _mainTileAndOffset = this.AddTilingAndOffsetControl("_MainTex");
            this.AddSpaceControl();

            _streamsControl = this.AddVertexStreamsControl("VertexStreams")
                              .AddVertexStream(ParticleSystemVertexStream.Position)
                              .AddVertexStream(ParticleSystemVertexStream.Color)
                              .AddVertexStream(ParticleSystemVertexStream.UV);
        }
示例#28
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);
 }
示例#29
0
            private ControlContainer LockPage(string activeControl)
            {

                if (m_parent != null)
                {
                    // First we have to find the page's form. We cannot use Page.Form property because it's not set yet.
                    HtmlForm form = null;
                    if (m_parent.Master == null)
                    {
                        // Page doesn't have a Master Page.
                        foreach (Control ctrl in m_parent.Controls)
                        {
                            form = ctrl as HtmlForm;
                            if (form != null)
                            {
                                break;
                            }
                        }
                    }
                    else
                    {
                        // Page has a Master Page, so the form resides there.
                        foreach (Control ctrl in m_parent.Master.Controls)
                        {
                            form = ctrl as HtmlForm;
                            if (form != null)
                            {
                                break;
                            }
                        }
                    }

                    // Next we check if the page has been locked previously. If so, we don't need to repeat the process,
                    // instead we find the security control and return it.
                    Table controlTable = form.FindControl(SecurityControlID) as Table;
                    if (controlTable == null)
                    {
                        // Page has not been locked yet.
                        ControlContainer control = new ControlContainer(this, activeControl);

                        // Add control to the table.
                        controlTable = ControlContainer.NewTable(1, 1);
                        controlTable.ID = SecurityControlID;
                        controlTable.HorizontalAlign = HorizontalAlign.Center;
                        controlTable.Rows[0].Cells[0].Controls.Add(control);

                        form.Controls.Clear(); // Clear all controls.
                        form.Controls.Add(controlTable); // Add the container control.

                        m_locked = true; // Indicates that page is in lock-down mode.

                        return control;
                    }
                    else
                    {
                        // Page has been locked previously.
                        return ((ControlContainer)(controlTable.Rows[0].Cells[0].Controls[0]));
                    }
                }
                else
                {
                    throw (new InvalidOperationException("Parent property is not set."));
                }

            }
示例#30
0
 void Start()
 {
     Transform t = ExtraFunctions.searchInAncestor (transform, typeof(ControlContainer));
     cc = t.GetComponent<ControlContainer> ();
     ctrlText = transform.GetChild (0).GetComponent<Text> ();
 }
示例#31
0
        public static void CreateViews(IContainer components, DockManager dockManager, TabbedView tabbedView)
        {
            if (views != null && views.Count > 0)
            {
                DevExpress.XtraBars.Docking2010.Views.Tabbed.DocumentGroup documentGroup = new DevExpress.XtraBars.Docking2010.Views.Tabbed.DocumentGroup(components);
                tabbedView.DocumentGroups.AddRange(new DevExpress.XtraBars.Docking2010.Views.Tabbed.DocumentGroup[] { documentGroup });

                for (int i = 0; i < views.Count; i++)
                {
                    XtraUserControl uc = (XtraUserControl)views[i];

                    DockPanel dockPanel = new DevExpress.XtraBars.Docking.DockPanel();
                    DevExpress.XtraBars.Docking2010.Views.Tabbed.Document dockPanel_Document = new DevExpress.XtraBars.Docking2010.Views.Tabbed.Document(components);
                    ControlContainer dockPanel_Container = new ControlContainer();

                    dockManager.RootPanels.AddRange(new DevExpress.XtraBars.Docking.DockPanel[] { dockPanel });
                    tabbedView.Documents.Add(dockPanel_Document);
                    documentGroup.Items.Add(dockPanel_Document);

                    dockPanel.Controls.Add(dockPanel_Container);
                    dockPanel.DockedAsTabbedDocument            = true;
                    dockPanel.Options.AllowDockAsTabbedDocument = true;
                    dockPanel.Options.AllowDockLeft             = false;
                    dockPanel.Options.AllowDockRight            = false;
                    dockPanel.Options.AllowDockTop    = false;
                    dockPanel.Options.AllowDockBottom = false;
                    dockPanel.Options.AllowDockFill   = false;
                    dockPanel.ID = System.Guid.NewGuid();
                    string strName = DateTime.Now.Ticks.ToString();
                    dockPanel.Name             = "dockPanel" + strName;
                    dockPanel.OriginalSize     = new System.Drawing.Size(300, 300);
                    dockPanel.Text             = views[i].Title;
                    dockPanel.SavedIndex       = i;
                    dockPanel.SavedMdiDocument = true;
                    dockPanel.FloatLocation    = new System.Drawing.Point(0, 0);
                    if (views[i].ShowCloseButton)
                    {
                        dockPanel.Options.ShowCloseButton = true;
                    }
                    else
                    {
                        dockPanel.Options.ShowCloseButton = false;
                    }
                    dockPanel_Container.Controls.Add(uc);
                    dockPanel_Container.Location = new System.Drawing.Point(0, 0);
                    dockPanel_Container.Name     = "dockPanel_Container" + strName;
                    dockPanel_Container.Size     = new System.Drawing.Size(300, 300);
                    dockPanel_Container.TabIndex = 0;

                    uc.Dock     = System.Windows.Forms.DockStyle.Fill;
                    uc.Location = new System.Drawing.Point(0, 0);
                    uc.Name     = "uc" + strName;
                    uc.Size     = new System.Drawing.Size(300, 300);
                    uc.TabIndex = 0;

                    dockPanel_Document.Caption       = views[i].Title;
                    dockPanel_Document.ControlName   = dockPanel.Name;
                    dockPanel_Document.FloatLocation = new System.Drawing.Point(0, 0);
                    dockPanel_Document.FloatSize     = new System.Drawing.Size(300, 300);
                    if (views[i].ShowCloseButton)
                    {
                        dockPanel_Document.Properties.AllowClose = DevExpress.Utils.DefaultBoolean.True;
                    }
                    else
                    {
                        dockPanel_Document.Properties.AllowClose = DevExpress.Utils.DefaultBoolean.False;
                    }

                    if (views[i].IsActive)
                    {
                        InitActivateViewText = views[i].Title;
                    }
                    ContentCollection.Add(views[i]);
                }
            }
        }
示例#32
0
        public static void CreateAutoHidePad(System.Windows.Forms.Form form, DockManager dockManager, List <IPadContent> pads, System.Windows.Forms.DockStyle dockStyle, DevExpress.XtraBars.Docking.DockingStyle dockStyle1)
        {
            if (pads == null || pads.Count == 0)
            {
                return;
            }
            string            strName        = DateTime.Now.Ticks.ToString();
            AutoHideContainer panelContainer = new DevExpress.XtraBars.Docking.AutoHideContainer();

            dockManager.AutoHideContainers.AddRange(new DevExpress.XtraBars.Docking.AutoHideContainer[] { panelContainer });

            panelContainer.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(236)))), ((int)(((byte)(239)))));
            panelContainer.Dock      = dockStyle;
            panelContainer.Location  = new System.Drawing.Point(20, 147);
            panelContainer.Name      = "panelContainer" + strName;
            panelContainer.Size      = new System.Drawing.Size(864, 20);

            for (int i = 0; i < pads.Count; i++)
            {
                XtraUserControl uc = (XtraUserControl)pads[i];

                DockPanel        dockPanel           = new DevExpress.XtraBars.Docking.DockPanel();
                ControlContainer dockPanel_Container = new ControlContainer();

                dockPanel.Controls.Add(dockPanel_Container);
                dockPanel.DockedAsTabbedDocument            = false;
                dockPanel.Options.AllowDockAsTabbedDocument = false;
                dockPanel.Dock          = dockStyle1;
                dockPanel.SavedDock     = dockStyle1;
                dockPanel.FloatVertical = true;
                dockPanel.ID            = System.Guid.NewGuid();
                dockPanel.Location      = new System.Drawing.Point(0, 0);
                strName                = DateTime.Now.Ticks.ToString();
                dockPanel.Name         = "dockPanel" + strName;
                dockPanel.OriginalSize = new System.Drawing.Size(200, 200);
                dockPanel.Size         = new System.Drawing.Size(200, 200);
                dockPanel.Text         = pads[i].Title;
                if (pads[i].ShowCloseButton)
                {
                    dockPanel.Options.ShowCloseButton = true;
                }
                else
                {
                    dockPanel.Options.ShowCloseButton = false;
                }
                dockPanel.Visibility = DockVisibility.AutoHide;

                dockPanel.Options.ShowMaximizeButton = true;

                dockPanel_Container.Controls.Add(uc);
                dockPanel_Container.Location = new System.Drawing.Point(0, 0);
                dockPanel_Container.Name     = "dockPanel_Container" + strName;
                dockPanel_Container.Size     = new System.Drawing.Size(200, 200);
                dockPanel_Container.TabIndex = 0;

                uc.Dock     = System.Windows.Forms.DockStyle.Fill;
                uc.Location = new System.Drawing.Point(0, 0);
                uc.Name     = "uc" + strName;
                uc.Size     = new System.Drawing.Size(200, 200);
                uc.TabIndex = 0;

                panelContainer.Controls.Add(dockPanel);

                ContentCollection.Add(pads[i]);
            }
            form.Controls.Add(panelContainer);
        }
示例#33
0
        public static void CreatePad(System.Windows.Forms.Form form, DockManager dockManager, List <IPadContent> pads, DockingStyle dockStyle)
        {
            if (pads == null || pads.Count == 0)
            {
                return;
            }
            if (pads.Count == 1)
            {
                IPadContent      pad                 = pads[0];
                XtraUserControl  uc                  = (XtraUserControl)pad;
                DockPanel        dockPanel           = new DevExpress.XtraBars.Docking.DockPanel();
                ControlContainer dockPanel_Container = new ControlContainer();
                dockManager.RootPanels.AddRange(new DevExpress.XtraBars.Docking.DockPanel[] { dockPanel });

                dockPanel.Controls.Add(dockPanel_Container);
                dockPanel.Dock = dockStyle;
                dockPanel.DockedAsTabbedDocument            = false;
                dockPanel.Options.AllowDockAsTabbedDocument = false;
                dockPanel.ID       = System.Guid.NewGuid();
                dockPanel.Location = new System.Drawing.Point(0, 0);
                string strName = DateTime.Now.Ticks.ToString();
                dockPanel.Name         = "dockPanel" + strName;
                dockPanel.OriginalSize = new System.Drawing.Size(200, 200);
                dockPanel.Size         = new System.Drawing.Size(200, 200);
                dockPanel.Text         = pad.Title;
                if (pad.ShowCloseButton)
                {
                    dockPanel.Options.ShowCloseButton = true;
                }
                else
                {
                    dockPanel.Options.ShowCloseButton = false;
                }

                dockPanel.Options.ShowMaximizeButton = true;

                dockPanel_Container.Controls.Add(uc);
                dockPanel_Container.Location = new System.Drawing.Point(0, 0);
                dockPanel_Container.Name     = "dockPanel_Container" + strName;
                dockPanel_Container.Size     = new System.Drawing.Size(200, 200);
                dockPanel_Container.TabIndex = 0;

                uc.Dock     = System.Windows.Forms.DockStyle.Fill;
                uc.Location = new System.Drawing.Point(0, 0);
                uc.Name     = "uc" + strName;
                uc.Size     = new System.Drawing.Size(200, 200);
                uc.TabIndex = 0;

                form.Controls.Add(dockPanel);

                ContentCollection.Add(pads[0]);
            }
            else
            {
                string    strName        = DateTime.Now.Ticks.ToString();
                DockPanel panelContainer = new DevExpress.XtraBars.Docking.DockPanel();

                dockManager.RootPanels.AddRange(new DevExpress.XtraBars.Docking.DockPanel[] { panelContainer });
                panelContainer.Dock         = dockStyle;
                panelContainer.ID           = System.Guid.NewGuid();
                panelContainer.Location     = new System.Drawing.Point(0, 0);
                panelContainer.Name         = "panelContainer" + strName;
                panelContainer.OriginalSize = new System.Drawing.Size(200, 200);
                panelContainer.Size         = new System.Drawing.Size(200, 200);
                panelContainer.Text         = "panelContainer" + strName;
                bool             bHaveActive = false;
                List <DockPanel> list        = new List <DockPanel>();
                for (int i = 0; i < pads.Count; i++)
                {
                    XtraUserControl uc = (XtraUserControl)pads[i];

                    DockPanel        dockPanel           = new DevExpress.XtraBars.Docking.DockPanel();
                    ControlContainer dockPanel_Container = new ControlContainer();

                    dockPanel.Controls.Add(dockPanel_Container);
                    dockPanel.DockedAsTabbedDocument            = false;
                    dockPanel.Options.AllowDockAsTabbedDocument = false;
                    dockPanel.Dock          = DevExpress.XtraBars.Docking.DockingStyle.Fill;
                    dockPanel.FloatVertical = true;
                    dockPanel.ID            = System.Guid.NewGuid();
                    dockPanel.Location      = new System.Drawing.Point(0, 0);
                    strName                = DateTime.Now.Ticks.ToString();
                    dockPanel.Name         = "dockPanel" + strName;
                    dockPanel.OriginalSize = new System.Drawing.Size(200, 200);
                    dockPanel.Size         = new System.Drawing.Size(200, 200);
                    dockPanel.Text         = pads[i].Title;
                    if (pads[i].ShowCloseButton)
                    {
                        dockPanel.Options.ShowCloseButton = true;
                    }
                    else
                    {
                        dockPanel.Options.ShowCloseButton = false;
                    }
                    dockPanel.Options.ShowMaximizeButton = true;
                    dockPanel.Height = pads[i].PHeight;

                    dockPanel_Container.Controls.Add(uc);
                    dockPanel_Container.Location = new System.Drawing.Point(0, 0);
                    dockPanel_Container.Name     = "dockPanel_Container" + strName;
                    dockPanel_Container.Size     = new System.Drawing.Size(200, 200);
                    dockPanel_Container.TabIndex = 0;
                    dockPanel_Container.Height   = pads[i].PHeight;

                    uc.Dock     = System.Windows.Forms.DockStyle.Fill;
                    uc.Location = new System.Drawing.Point(0, 0);
                    uc.Name     = "uc" + strName;
                    uc.Size     = new System.Drawing.Size(200, 200);
                    uc.TabIndex = 0;
                    uc.Height   = pads[i].PHeight;

                    list.Add(dockPanel);

                    if (pads[i].IsActive)
                    {
                        panelContainer.FloatVertical = true;
                        panelContainer.ActiveChild   = dockPanel;
                        bHaveActive = true;
                    }
                    ContentCollection.Add(pads[i]);
                }
                panelContainer.Controls.AddRange(list.ToArray());

                if (bHaveActive)
                {
                    panelContainer.Tabbed = true;
                }
                form.Controls.Add(panelContainer);
            }
        }
			public ControlTypeDescriptorContext (ICollection collection) {
				cc = new ControlContainer(collection);
			}
示例#35
0
 protected void btnSave_Click(object sender, EventArgs e)
 {
     control = this.LoadControl(SavedControlVirtualPath);
     IScreenDefault screen = (IScreenDefault)ControlContainer.FindControl(control.GetType().Name);
     bool           result = screen.Submit();
 }
        private void GenerateLayoutBodyDock(FanLayoutDock body)
        {
            Container.GetDockManager().BeginInit();
            DockPanel[] list = new DockPanel[body.Panels.Count];

            int index = 0;

            foreach (FanLayoutPanel panel in body.Panels)
            {
                DockPanel dockPanel = new DockPanel();
                dockPanel.Options.ShowCloseButton    = true;
                dockPanel.Options.ShowAutoHideButton = true;
                dockPanel.Options.ShowMaximizeButton = true;
                dockPanel.ClosingPanel += dockPanel_ClosingPanel;
                if (panel.TabView) //是否属于TabView面板
                {
                    //生成DockPanel对象
                    dockPanel.DockedAsTabbedDocument = true;
                    dockPanel.ID       = new System.Guid(panel.Guid);
                    dockPanel.Location = new System.Drawing.Point(0, 200);
                    dockPanel.Name     = panel.Name;
                    dockPanel.Width    = panel.Width;
                    dockPanel.Height   = panel.Height;
                    dockPanel.Text     = panel.Title;

                    ControlContainer container = new ControlContainer();
                    container.Location = new System.Drawing.Point(0, 0);
                    container.Dock     = DockStyle.Fill;
                    container.Name     = panel.Name + "_Container";
                    container.Size     = new System.Drawing.Size(493, 242);
                    container.TabIndex = 0;

                    dockPanel.Controls.Add(container);

                    //加载UiView界面
                    LoadAssemblyToPanel(dockPanel, container, panel.Assembly, panel.AssemblyType);


                    //将Panel加载到TabbedView中
                    DevExpress.XtraBars.Docking2010.Views.Tabbed.Document document = new DevExpress.XtraBars.Docking2010.Views.Tabbed.Document(Container.GetComponents());
                    document.Caption               = panel.Title;
                    document.ControlName           = panel.Name;
                    document.FloatLocation         = new System.Drawing.Point(0, 0);
                    document.FloatSize             = new System.Drawing.Size(200, 200);
                    document.Properties.AllowClose = DevExpress.Utils.DefaultBoolean.True;
                    document.Properties.AllowFloat = DevExpress.Utils.DefaultBoolean.True;
                    document.Properties.AllowFloatOnDoubleClick = DevExpress.Utils.DefaultBoolean.True;
                    //Container.GetTabbedView().AddDocument(dockPanel);
                    //Container.GetTabbedView().ActivateDocument(dockPanel);

                    Container.GetTabbedView().Documents.Add(document);
                }
                else
                {
                    //生成DockPanel对象
                    dockPanel.Dock         = FanLayoutDockPositionEnumHelper.toDockingStyle(panel.DockPosistion);
                    dockPanel.ID           = new System.Guid(panel.Guid);
                    dockPanel.Location     = new System.Drawing.Point(0, 200);
                    dockPanel.Name         = panel.Name;
                    dockPanel.OriginalSize = new System.Drawing.Size(panel.Width, panel.Height);
                    dockPanel.Width        = panel.Width;
                    dockPanel.Height       = panel.Height;
                    dockPanel.Text         = panel.Title;

                    if (panel.ChildPanelItems.Count == 0) //没有子面板
                    {
                        ControlContainer container = new ControlContainer();
                        container.Location     = new System.Drawing.Point(0, 0);
                        container.Dock         = DockStyle.Fill;
                        container.Name         = panel.Name + "_Container";
                        dockPanel.OriginalSize = new System.Drawing.Size(dockPanel.Width, dockPanel.Height);
                        dockPanel.Width        = dockPanel.Width;
                        dockPanel.Height       = dockPanel.Height;
                        container.TabIndex     = 0;

                        dockPanel.Controls.Add(container);

                        //将Assembly加载到面板中,构建面板内容
                        LoadAssemblyToPanel(dockPanel, container, panel.Assembly, panel.AssemblyType);
                    }
                    else  //有子面板
                    {
                        //生成子Panel
                        GenerateLayoutChildPanels(panel.ChildPanelItems, dockPanel);
                    }
                }
                list[index++] = dockPanel;

                //将面板句柄注册到寻址服务中
                this.GetAddressService().Register(dockPanel.Name, dockPanel, ControlTypeEnum.Panel);
            }
            Container.GetDockManager().RootPanels.AddRange(list);
            Container.Controls.AddRange(list);

            Container.GetDockManager().EndInit();

            //GenerateLayoutDocumentContainer(body);
        }
示例#37
0
 void RegisterPeekPanel(DockManager dockManager, ModuleType type) {
     var panel = new DockPanel();
     panel.ID = viewModel.GetModuleID(type);
     panels.Add(panel.ID, type);
     panel.Name = "peekPanel" + viewModel.GetModuleName(type);
     panel.Options.AllowDockBottom = false;
     panel.Options.AllowDockLeft = false;
     panel.Options.AllowDockTop = false;
     panel.Options.AllowFloating = false;
     panel.Text = viewModel.GetModuleCaption(type);
     panel.Visibility = DockVisibility.Hidden;
     panel.SavedDock = DockingStyle.Right;
     panel.OriginalSize = new System.Drawing.Size(200, 200);
     if(dockManager.HiddenPanels.Count > 0) {
         panel.SavedParent = dockManager.HiddenPanels[0];
         panel.Dock = DockingStyle.Fill;
         panel.SavedDock = DockingStyle.Fill;
         panel.SavedIndex = dockManager.HiddenPanels.Count - 1;
     }
     var container = new ControlContainer();
     container.Name = panel.Name + "_ControlContainer";
     panel.Controls.Add(container);
     panel.Register(dockManager);
     dockManager.HiddenPanels.AddRange(new DockPanel[] { panel });
 }
 private void InitializeComponent()
 {
     this.components = new Container();
     this.mainBarManager = new XafBarManager(this.components);
     this._mainMenuBar = new XafBar();
     this.barSubItemFile = new MainMenuItem();
     this.cObjectsCreation = new ActionContainerBarItem();
     this.cFile = new ActionContainerBarItem();
     this.cSave = new ActionContainerBarItem();
     this.cPrint = new ActionContainerBarItem();
     this.cExport = new ActionContainerBarItem();
     this.cExit = new ActionContainerBarItem();
     this.barSubItemEdit = new MainMenuItem();
     this.cUndoRedo = new ActionContainerBarItem();
     this.cEdit = new ActionContainerBarItem();
     this.cRecordEdit = new ActionContainerBarItem();
     this.cOpenObject = new ActionContainerBarItem();
     this.barSubItemView = new MainMenuItem();
     this.cPanels = new ActionContainerMenuBarItem();
     this.cViewsHistoryNavigation = new ActionContainerBarItem();
     this.cMenus = new ActionContainerMenuBarItem();
     this.cRecordsNavigation = new ActionContainerBarItem();
     this.cView = new ActionContainerBarItem();
     this.cReports = new ActionContainerBarItem();
     this.cDefault = new ActionContainerBarItem();
     this.cSearch = new ActionContainerBarItem();
     this.cFilters = new ActionContainerBarItem();
     this.cFullTextSearch = new ActionContainerBarItem();
     this.cAppearance = new ActionContainerMenuBarItem();
     this.barSubItemTools = new MainMenuItem();
     this.cTools = new ActionContainerMenuBarItem();
     this.cOptions = new ActionContainerMenuBarItem();
     this.cDiagnostic = new ActionContainerMenuBarItem();
     this.barSubItemWindow = new MainMenuItem();
     this.cWindows = new XafBarLinkContainerItem();
     this.barMdiChildrenListItem = new BarMdiChildrenListItem();
     this.Window = new ActionContainerBarItem();
     this.barSubItemHelp = new MainMenuItem();
     this.cHelp = new ActionContainerMenuBarItem();
     this.cAbout = new ActionContainerMenuBarItem();
     this.standardToolBar = new XafBar();
     this._statusBar = new XafBar();
     this.mainBarAndDockingController = new BarAndDockingController(this.components);
     this.barDockControlTop = new BarDockControl();
     this.barDockControlBottom = new BarDockControl();
     this.barDockControlLeft = new BarDockControl();
     this.barDockControlRight = new BarDockControl();
     this.mainDockManager = new DockManager(this.components);
     this.imageList1 = new ImageList(this.components);
     this.dockPanelMenus = new DockPanel();
     this.dockPanel1_Container = new ControlContainer();
     this.rootMenuItemsActionContainer1 = new MenuItemsActionContainer();
     this.cMenu = new ActionContainerBarItem();
     this.barSubItemPanels = new BarSubItem();
     this.viewSitePanel = new PanelControl();
     this.formStateModelSynchronizerComponent = new FormStateModelSynchronizer(this.components);
     ((ISupportInitialize)this.documentManager).BeginInit();
     ((ISupportInitialize)this.mainBarManager).BeginInit();
     ((ISupportInitialize)this.mainBarAndDockingController).BeginInit();
     ((ISupportInitialize)this.mainDockManager).BeginInit();
     this.dockPanelMenus.SuspendLayout();
     this.dockPanel1_Container.SuspendLayout();
     ((ISupportInitialize)this.viewSitePanel).BeginInit();
     base.SuspendLayout();
     this.actionsContainersManager.ActionContainerComponents.Add(this.cObjectsCreation);
     this.actionsContainersManager.ActionContainerComponents.Add(this.cFile);
     this.actionsContainersManager.ActionContainerComponents.Add(this.cSave);
     this.actionsContainersManager.ActionContainerComponents.Add(this.cPrint);
     this.actionsContainersManager.ActionContainerComponents.Add(this.cExport);
     this.actionsContainersManager.ActionContainerComponents.Add(this.cExit);
     this.actionsContainersManager.ActionContainerComponents.Add(this.cUndoRedo);
     this.actionsContainersManager.ActionContainerComponents.Add(this.cEdit);
     this.actionsContainersManager.ActionContainerComponents.Add(this.cRecordEdit);
     this.actionsContainersManager.ActionContainerComponents.Add(this.cOpenObject);
     this.actionsContainersManager.ActionContainerComponents.Add(this.cPanels);
     this.actionsContainersManager.ActionContainerComponents.Add(this.cViewsHistoryNavigation);
     this.actionsContainersManager.ActionContainerComponents.Add(this.cMenus);
     this.actionsContainersManager.ActionContainerComponents.Add(this.cRecordsNavigation);
     this.actionsContainersManager.ActionContainerComponents.Add(this.cView);
     this.actionsContainersManager.ActionContainerComponents.Add(this.cReports);
     this.actionsContainersManager.ActionContainerComponents.Add(this.cDefault);
     this.actionsContainersManager.ActionContainerComponents.Add(this.cSearch);
     this.actionsContainersManager.ActionContainerComponents.Add(this.cFilters);
     this.actionsContainersManager.ActionContainerComponents.Add(this.cFullTextSearch);
     this.actionsContainersManager.ActionContainerComponents.Add(this.cAppearance);
     this.actionsContainersManager.ActionContainerComponents.Add(this.cTools);
     this.actionsContainersManager.ActionContainerComponents.Add(this.cOptions);
     this.actionsContainersManager.ActionContainerComponents.Add(this.cDiagnostic);
     this.actionsContainersManager.ActionContainerComponents.Add(this.cAbout);
     this.actionsContainersManager.ActionContainerComponents.Add(this.cMenu);
     this.actionsContainersManager.ActionContainerComponents.Add(this.Window);
     this.actionsContainersManager.ActionContainerComponents.Add(this.cHelp);
     this.actionsContainersManager.ActionContainerComponents.Add(this.rootMenuItemsActionContainer1);
     this.actionsContainersManager.ContextMenuContainers.Add(this.cObjectsCreation);
     this.actionsContainersManager.ContextMenuContainers.Add(this.cSave);
     this.actionsContainersManager.ContextMenuContainers.Add(this.cEdit);
     this.actionsContainersManager.ContextMenuContainers.Add(this.cRecordEdit);
     this.actionsContainersManager.ContextMenuContainers.Add(this.cOpenObject);
     this.actionsContainersManager.ContextMenuContainers.Add(this.cUndoRedo);
     this.actionsContainersManager.ContextMenuContainers.Add(this.cPrint);
     this.actionsContainersManager.ContextMenuContainers.Add(this.cView);
     this.actionsContainersManager.ContextMenuContainers.Add(this.cReports);
     this.actionsContainersManager.ContextMenuContainers.Add(this.cExport);
     this.actionsContainersManager.ContextMenuContainers.Add(this.cMenu);
     this.actionsContainersManager.DefaultContainer = this.cDefault;
     this.modelSynchronizationManager.ModelSynchronizableComponents.Add(this.formStateModelSynchronizerComponent);
     this.modelSynchronizationManager.ModelSynchronizableComponents.Add(this.mainBarManager);
     this.viewSiteManager.ViewSiteControl = this.viewSitePanel;
     this.mainBarManager.Bars.AddRange(new Bar[]
     {
         this._mainMenuBar,
         this.standardToolBar,
         this._statusBar
     });
     this.mainBarManager.Controller = this.mainBarAndDockingController;
     this.mainBarManager.DockControls.Add(this.barDockControlTop);
     this.mainBarManager.DockControls.Add(this.barDockControlBottom);
     this.mainBarManager.DockControls.Add(this.barDockControlLeft);
     this.mainBarManager.DockControls.Add(this.barDockControlRight);
     this.mainBarManager.DockManager = this.mainDockManager;
     this.mainBarManager.Form = this;
     this.mainBarManager.Items.AddRange(new BarItem[]
     {
         this.barSubItemFile,
         this.barSubItemEdit,
         this.barSubItemView,
         this.barSubItemTools,
         this.barSubItemHelp,
         this.cFile,
         this.cObjectsCreation,
         this.cPrint,
         this.cExport,
         this.cSave,
         this.cEdit,
         this.cOpenObject,
         this.cUndoRedo,
         this.cAppearance,
         this.cReports,
         this.cExit,
         this.cRecordEdit,
         this.cRecordsNavigation,
         this.cViewsHistoryNavigation,
         this.cSearch,
         this.cFullTextSearch,
         this.cFilters,
         this.cView,
         this.cDefault,
         this.cTools,
         this.cMenus,
         this.cDiagnostic,
         this.cOptions,
         this.cAbout,
         this.cWindows,
         this.cPanels,
         this.cMenu,
         this.barSubItemWindow,
         this.barMdiChildrenListItem,
         this.Window,
         this.barSubItemPanels,
         this.cHelp
     });
     this.mainBarManager.MainMenu = this._mainMenuBar;
     this.mainBarManager.MaxItemId = 37;
     this.mainBarManager.StatusBar = this._statusBar;
     this.mainBarManager.Disposed += new EventHandler(this.mainBarManager_Disposed);
     this._mainMenuBar.BarName = "Main Menu";
     this._mainMenuBar.DockCol = 0;
     this._mainMenuBar.DockRow = 0;
     this._mainMenuBar.DockStyle = BarDockStyle.Top;
     this._mainMenuBar.LinksPersistInfo.AddRange(new LinkPersistInfo[]
     {
         new LinkPersistInfo(this.barSubItemFile),
         new LinkPersistInfo(this.barSubItemEdit),
         new LinkPersistInfo(this.barSubItemView),
         new LinkPersistInfo(this.barSubItemTools),
         new LinkPersistInfo(this.barSubItemWindow),
         new LinkPersistInfo(this.barSubItemHelp)
     });
     this._mainMenuBar.OptionsBar.MultiLine = true;
     this._mainMenuBar.OptionsBar.UseWholeRow = true;
     this._mainMenuBar.TargetPageCategoryColor = Color.Empty;
     this._mainMenuBar.Text = "Main menu";
     this.barSubItemFile.Caption = "Файл";
     this.barSubItemFile.Id = 0;
     this.barSubItemFile.LinksPersistInfo.AddRange(new LinkPersistInfo[]
     {
         new LinkPersistInfo(this.cObjectsCreation, true),
         new LinkPersistInfo(this.cFile, true),
         new LinkPersistInfo(this.cSave, true),
         new LinkPersistInfo(this.cPrint, true),
         new LinkPersistInfo(this.cExport, true),
         new LinkPersistInfo(this.cExit, true)
     });
     this.barSubItemFile.MergeType = BarMenuMerge.MergeItems;
     this.barSubItemFile.Name = "barSubItemFile";
     this.barSubItemFile.VisibleInRibbon = false;
     this.cObjectsCreation.ApplicationMenuIndex = 1;
     this.cObjectsCreation.ApplicationMenuItem = true;
     this.cObjectsCreation.TargetPageGroupCaption = null;
     this.cObjectsCreation.Caption = "Создание объектов";
     this.cObjectsCreation.ContainerId = "ObjectsCreation";
     this.cObjectsCreation.Id = 18;
     this.cObjectsCreation.MergeType = BarMenuMerge.MergeItems;
     this.cObjectsCreation.Name = "cObjectsCreation";
     this.cObjectsCreation.TargetPageCategoryColor = Color.Empty;
     this.cFile.ApplicationMenuIndex = 2;
     this.cFile.ApplicationMenuItem = true;
     this.cFile.TargetPageGroupCaption = null;
     this.cFile.Caption = "Файл";
     this.cFile.ContainerId = "File";
     this.cFile.Id = 5;
     this.cFile.MergeOrder = 2;
     this.cFile.MergeType = BarMenuMerge.MergeItems;
     this.cFile.Name = "cFile";
     this.cFile.TargetPageCategoryColor = Color.Empty;
     this.cSave.ApplicationMenuIndex = 7;
     this.cSave.ApplicationMenuItem = true;
     this.cSave.TargetPageGroupCaption = null;
     this.cSave.Caption = "Сохранить";
     this.cSave.ContainerId = "Save";
     this.cSave.Id = 8;
     this.cSave.MergeType = BarMenuMerge.MergeItems;
     this.cSave.Name = "cSave";
     this.cSave.TargetPageCategoryColor = Color.Empty;
     this.cPrint.ApplicationMenuIndex = 11;
     this.cPrint.ApplicationMenuItem = true;
     this.cPrint.TargetPageGroupCaption = null;
     this.cPrint.Caption = "Печать";
     this.cPrint.ContainerId = "Print";
     this.cPrint.Id = 6;
     this.cPrint.MergeType = BarMenuMerge.MergeItems;
     this.cPrint.Name = "cPrint";
     this.cPrint.TargetPageCategoryColor = Color.Empty;
     this.cExport.ApplicationMenuIndex = 10;
     this.cExport.ApplicationMenuItem = true;
     this.cExport.TargetPageGroupCaption = null;
     this.cExport.Caption = "Экспорт";
     this.cExport.ContainerId = "Export";
     this.cExport.Id = 7;
     this.cExport.MergeType = BarMenuMerge.MergeItems;
     this.cExport.Name = "cExport";
     this.cExport.TargetPageCategoryColor = Color.Empty;
     this.cExit.ApplicationMenuIndex = 900;
     this.cExit.ApplicationMenuItem = true;
     this.cExit.TargetPageGroupCaption = null;
     this.cExit.Caption = "Выход";
     this.cExit.ContainerId = "Exit";
     this.cExit.Id = 8;
     this.cExit.MergeOrder = 900;
     this.cExit.Name = "cExit";
     this.cExit.TargetPageCategoryColor = Color.Empty;
     this.barSubItemEdit.Caption = "Правка";
     this.barSubItemEdit.Id = 1;
     this.barSubItemEdit.LinksPersistInfo.AddRange(new LinkPersistInfo[]
     {
         new LinkPersistInfo(this.cUndoRedo, true),
         new LinkPersistInfo(this.cEdit, true),
         new LinkPersistInfo(this.cRecordEdit, true),
         new LinkPersistInfo(this.cOpenObject, true)
     });
     this.barSubItemEdit.MergeType = BarMenuMerge.MergeItems;
     this.barSubItemEdit.Name = "barSubItemEdit";
     this.barSubItemEdit.VisibleInRibbon = false;
     this.cUndoRedo.Caption = "Отменить/Повторить";
     this.cUndoRedo.TargetPageGroupCaption = "Edit";
     this.cUndoRedo.ContainerId = "UndoRedo";
     this.cUndoRedo.Id = 10;
     this.cUndoRedo.MergeType = BarMenuMerge.MergeItems;
     this.cUndoRedo.Name = "cUndoRedo";
     this.cUndoRedo.TargetPageCategoryColor = Color.Empty;
     this.cEdit.TargetPageGroupCaption = null;
     this.cEdit.Caption = "Правка";
     this.cEdit.ContainerId = "Edit";
     this.cEdit.Id = 9;
     this.cEdit.MergeType = BarMenuMerge.MergeItems;
     this.cEdit.Name = "cEdit";
     this.cEdit.TargetPageCategoryColor = Color.Empty;
     this.cRecordEdit.TargetPageGroupCaption = null;
     this.cRecordEdit.Caption = "Изменить запись";
     this.cRecordEdit.ContainerId = "RecordEdit";
     this.cRecordEdit.Id = 9;
     this.cRecordEdit.MergeType = BarMenuMerge.MergeItems;
     this.cRecordEdit.Name = "cRecordEdit";
     this.cRecordEdit.TargetPageCategoryColor = Color.Empty;
     this.cOpenObject.TargetPageGroupCaption = null;
     this.cOpenObject.Caption = "Открыть объект";
     this.cOpenObject.ContainerId = "OpenObject";
     this.cOpenObject.Id = 9;
     this.cOpenObject.MergeType = BarMenuMerge.MergeItems;
     this.cOpenObject.Name = "cOpenObject";
     this.cOpenObject.TargetPageCategoryColor = Color.Empty;
     this.barSubItemView.Caption = "Вид";
     this.barSubItemView.Id = 2;
     this.barSubItemView.LinksPersistInfo.AddRange(new LinkPersistInfo[]
     {
         new LinkPersistInfo(this.cPanels, true),
         new LinkPersistInfo(this.cViewsHistoryNavigation, true),
         new LinkPersistInfo(this.cMenus, true),
         new LinkPersistInfo(this.cRecordsNavigation, true),
         new LinkPersistInfo(this.cView, true),
         new LinkPersistInfo(this.cReports, true),
         new LinkPersistInfo(this.cDefault, true),
         new LinkPersistInfo(this.cSearch, true),
         new LinkPersistInfo(BarLinkUserDefines.None, false, this.cFilters, true),
         new LinkPersistInfo(BarLinkUserDefines.None, false, this.cFullTextSearch, true),
         new LinkPersistInfo(this.cAppearance, true)
     });
     this.barSubItemView.MergeType = BarMenuMerge.MergeItems;
     this.barSubItemView.Name = "barSubItemView";
     this.cPanels.Caption = "Панели";
     this.cPanels.TargetPageGroupCaption = null;
     this.cPanels.TargetPageCaption = "View";
     this.cPanels.ContainerId = "Panels";
     this.cPanels.Id = 16;
     this.cPanels.MergeType = BarMenuMerge.MergeItems;
     this.cPanels.Name = "cPanels";
     this.cPanels.TargetPageCategoryColor = Color.Empty;
     this.cViewsHistoryNavigation.TargetPageGroupCaption = null;
     this.cViewsHistoryNavigation.Caption = "Просмотр истории навигации";
     this.cViewsHistoryNavigation.ContainerId = "ViewsHistoryNavigation";
     this.cViewsHistoryNavigation.Id = 35;
     this.cViewsHistoryNavigation.MergeType = BarMenuMerge.MergeItems;
     this.cViewsHistoryNavigation.Name = "cViewsHistoryNavigation";
     this.cViewsHistoryNavigation.TargetPageCategoryColor = Color.Empty;
     this.cMenus.TargetPageGroupCaption = null;
     this.cMenus.Caption = "Меню";
     this.cMenus.ContainerId = "Menus";
     this.cMenus.Id = 14;
     this.cMenus.MergeType = BarMenuMerge.MergeItems;
     this.cMenus.Name = "cMenus";
     this.cMenus.TargetPageCategoryColor = Color.Empty;
     this.cRecordsNavigation.TargetPageGroupCaption = null;
     this.cRecordsNavigation.Caption = "Записи навигации";
     this.cRecordsNavigation.ContainerId = "RecordsNavigation";
     this.cRecordsNavigation.Id = 10;
     this.cRecordsNavigation.MergeType = BarMenuMerge.MergeItems;
     this.cRecordsNavigation.Name = "cRecordsNavigation";
     this.cRecordsNavigation.TargetPageCategoryColor = Color.Empty;
     this.cView.TargetPageGroupCaption = null;
     this.cView.Caption = "Вид";
     this.cView.ContainerId = "View";
     this.cView.Id = 12;
     this.cView.MergeType = BarMenuMerge.MergeItems;
     this.cView.Name = "cView";
     this.cView.TargetPageCategoryColor = Color.Empty;
     this.cReports.ApplicationMenuIndex = 12;
     this.cReports.ApplicationMenuItem = true;
     this.cReports.TargetPageGroupCaption = "View";
     this.cReports.Caption = "Отчеты";
     this.cReports.ContainerId = "Reports";
     this.cReports.Id = 11;
     this.cReports.MergeType = BarMenuMerge.MergeItems;
     this.cReports.Name = "cReports";
     this.cReports.TargetPageCategoryColor = Color.Empty;
     this.cDefault.TargetPageGroupCaption = null;
     this.cDefault.Caption = "По умолчанию";
     this.cDefault.ContainerId = "Default";
     this.cDefault.Id = 50;
     this.cDefault.MergeType = BarMenuMerge.MergeItems;
     this.cDefault.Name = "cDefault";
     this.cDefault.TargetPageCategoryColor = Color.Empty;
     this.cSearch.TargetPageGroupCaption = null;
     this.cSearch.Caption = "Поиск";
     this.cSearch.ContainerId = "Search";
     this.cSearch.Id = 11;
     this.cSearch.MergeType = BarMenuMerge.MergeItems;
     this.cSearch.Name = "cSearch";
     this.cSearch.TargetPageCategoryColor = Color.Empty;
     this.cFilters.TargetPageGroupCaption = null;
     this.cFilters.Caption = "Фильтры";
     this.cFilters.ContainerId = "Filters";
     this.cFilters.Id = 26;
     this.cFilters.MergeType = BarMenuMerge.MergeItems;
     this.cFilters.Name = "cFilters";
     this.cFilters.TargetPageCategoryColor = Color.Empty;
     this.cFullTextSearch.Alignment = BarItemLinkAlignment.Right;
     this.cFullTextSearch.TargetPageGroupCaption = null;
     this.cFullTextSearch.Caption = "Полнотекстовый поиск";
     this.cFullTextSearch.ContainerId = "FullTextSearch";
     this.cFullTextSearch.Id = 12;
     this.cFullTextSearch.MergeType = BarMenuMerge.MergeItems;
     this.cFullTextSearch.Name = "cFullTextSearch";
     this.cFullTextSearch.TargetPageCategoryColor = Color.Empty;
     this.cAppearance.TargetPageGroupCaption = null;
     this.cAppearance.Caption = "Внешний вид";
     this.cAppearance.ContainerId = "Appearance";
     this.cAppearance.Id = 9;
     this.cAppearance.MergeType = BarMenuMerge.MergeItems;
     this.cAppearance.Name = "cAppearance";
     this.cAppearance.TargetPageCategoryColor = Color.Empty;
     this.barSubItemTools.Caption = "Инструменты";
     this.barSubItemTools.Id = 3;
     this.barSubItemTools.LinksPersistInfo.AddRange(new LinkPersistInfo[]
     {
         new LinkPersistInfo(this.cTools, true),
         new LinkPersistInfo(this.cOptions, true),
         new LinkPersistInfo(this.cDiagnostic, true)
     });
     this.barSubItemTools.MergeType = BarMenuMerge.MergeItems;
     this.barSubItemTools.Name = "barSubItemTools";
     this.cTools.TargetPageGroupCaption = null;
     this.cTools.Caption = "Инструменты";
     this.cTools.ContainerId = "Tools";
     this.cTools.Id = 13;
     this.cTools.MergeType = BarMenuMerge.MergeItems;
     this.cTools.Name = "cTools";
     this.cTools.TargetPageCategoryColor = Color.Empty;
     this.cOptions.TargetPageGroupCaption = null;
     this.cOptions.Caption = "Настройки";
     this.cOptions.ContainerId = "Options";
     this.cOptions.Id = 14;
     this.cOptions.MergeType = BarMenuMerge.MergeItems;
     this.cOptions.Name = "cOptions";
     this.cOptions.TargetPageCategoryColor = Color.Empty;
     this.cDiagnostic.TargetPageGroupCaption = null;
     this.cDiagnostic.Caption = "Диагностика";
     this.cDiagnostic.ContainerId = "Diagnostic";
     this.cDiagnostic.Id = 16;
     this.cDiagnostic.MergeType = BarMenuMerge.MergeItems;
     this.cDiagnostic.Name = "cDiagnostic";
     this.cDiagnostic.TargetPageCategoryColor = Color.Empty;
     this.barSubItemWindow.Caption = "Окно";
     this.barSubItemWindow.Id = 32;
     this.barSubItemWindow.LinksPersistInfo.AddRange(new LinkPersistInfo[]
     {
         new LinkPersistInfo(this.cWindows),
         new LinkPersistInfo(this.Window, true)
     });
     this.barSubItemWindow.MergeType = BarMenuMerge.MergeItems;
     this.barSubItemWindow.Name = "barSubItemWindow";
     this.cWindows.TargetPageCaption = "View";
     this.cWindows.TargetPageCategoryCaption = null;
     this.cWindows.Caption = "Окна";
     this.cWindows.TargetPageGroupCaption = null;
     this.cWindows.Id = 16;
     this.cWindows.LinksPersistInfo.AddRange(new LinkPersistInfo[]
     {
         new LinkPersistInfo(this.barMdiChildrenListItem)
     });
     this.cWindows.MergeType = BarMenuMerge.MergeItems;
     this.cWindows.Name = "cWindows";
     this.cWindows.TargetPageCategoryColor = Color.Empty;
     this.barMdiChildrenListItem.Caption = "Список окон";
     this.barMdiChildrenListItem.Id = 37;
     this.barMdiChildrenListItem.Name = "barMdiChildrenListItem";
     this.Window.TargetPageCaption = "View";
     this.Window.TargetPageGroupCaption = "Windows";
     this.Window.Caption = "Окно";
     this.Window.ContainerId = "Windows";
     this.Window.Id = 34;
     this.Window.MergeType = BarMenuMerge.MergeItems;
     this.Window.Name = "Window";
     this.Window.TargetPageCategoryColor = Color.Empty;
     this.barSubItemHelp.Caption = "Помощь";
     this.barSubItemHelp.Id = 4;
     this.barSubItemHelp.LinksPersistInfo.AddRange(new LinkPersistInfo[]
     {
         new LinkPersistInfo(this.cHelp, true),
         new LinkPersistInfo(this.cAbout, true)
     });
     this.barSubItemHelp.MergeType = BarMenuMerge.MergeItems;
     this.barSubItemHelp.Name = "barSubItemHelp";
     this.barSubItemHelp.VisibleInRibbon = false;
     this.cHelp.Caption = "Помощь";
     this.cHelp.TargetPageGroupCaption = null;
     this.cHelp.ContainerId = "Help";
     this.cHelp.Id = 36;
     this.cHelp.MergeType = BarMenuMerge.MergeItems;
     this.cHelp.Name = "cHelp";
     this.cHelp.TargetPageCategoryColor = Color.Empty;
     this.cAbout.ApplicationMenuIndex = 15;
     this.cAbout.ApplicationMenuItem = true;
     this.cAbout.Caption = "О программе";
     this.cAbout.TargetPageGroupCaption = null;
     this.cAbout.ContainerId = "About";
     this.cAbout.Id = 15;
     this.cAbout.MergeType = BarMenuMerge.MergeItems;
     this.cAbout.Name = "cAbout";
     this.cAbout.TargetPageCategoryColor = Color.Empty;
     this.standardToolBar.BarName = "Main Toolbar";
     this.standardToolBar.DockCol = 0;
     this.standardToolBar.DockRow = 1;
     this.standardToolBar.DockStyle = BarDockStyle.Top;
     this.standardToolBar.LinksPersistInfo.AddRange(new LinkPersistInfo[]
     {
         new LinkPersistInfo(this.cViewsHistoryNavigation, true),
         new LinkPersistInfo(this.cObjectsCreation, true),
         new LinkPersistInfo(this.cSave, true),
         new LinkPersistInfo(this.cEdit, true),
         new LinkPersistInfo(this.cUndoRedo, true),
         new LinkPersistInfo(this.cRecordEdit, true),
         new LinkPersistInfo(this.cOpenObject),
         new LinkPersistInfo(this.cView, true),
         new LinkPersistInfo(this.cReports),
         new LinkPersistInfo(this.cDefault, true),
         new LinkPersistInfo(this.cRecordsNavigation, true),
         new LinkPersistInfo(this.cFilters, true),
         new LinkPersistInfo(this.cSearch, true),
         new LinkPersistInfo(this.cFullTextSearch)
     });
     this.standardToolBar.OptionsBar.UseWholeRow = true;
     this.standardToolBar.TargetPageCategoryColor = Color.Empty;
     this.standardToolBar.Text = "Main Toolbar";
     this._statusBar.BarName = "StatusBar";
     this._statusBar.CanDockStyle = BarCanDockStyle.Bottom;
     this._statusBar.DockCol = 0;
     this._statusBar.DockRow = 0;
     this._statusBar.DockStyle = BarDockStyle.Bottom;
     this._statusBar.OptionsBar.AllowQuickCustomization = false;
     this._statusBar.OptionsBar.DisableClose = true;
     this._statusBar.OptionsBar.DisableCustomization = true;
     this._statusBar.OptionsBar.DrawDragBorder = false;
     this._statusBar.OptionsBar.DrawSizeGrip = true;
     this._statusBar.OptionsBar.UseWholeRow = true;
     this._statusBar.TargetPageCategoryColor = Color.Empty;
     this._statusBar.Text = "Status Bar";
     this.mainBarAndDockingController.PropertiesBar.AllowLinkLighting = false;
     this.barDockControlTop.CausesValidation = false;
     this.barDockControlTop.Parent = this;
     this.barDockControlTop.Size = new Size(792, 51);
     this.barDockControlTop.Dock = DockStyle.Top;
     this.barDockControlTop.Location = new Point(0, 0);
     // this.barDockControlTop.ZOrder = 6;
     this.barDockControlBottom.CausesValidation = false;
     this.barDockControlBottom.Parent = this;
     this.barDockControlBottom.Size = new Size(792, 23);
     this.barDockControlBottom.Dock = DockStyle.Bottom;
     this.barDockControlBottom.Location = new Point(0, 543);
     // this.barDockControlBottom.ZOrder = 5;
     this.barDockControlLeft.CausesValidation = false;
     this.barDockControlLeft.Parent = this;
     // this.barDockControlLeft.ZOrder = 3;
     this.barDockControlLeft.Location = new Point(0, 51);
     this.barDockControlLeft.Dock = DockStyle.Left;
     this.barDockControlLeft.Size = new Size(0, 492);
     this.barDockControlRight.CausesValidation = false;
     this.barDockControlRight.Parent = this;
     // this.barDockControlRight.ZOrder = 4;
     this.barDockControlRight.Location = new Point(792, 51);
     this.barDockControlRight.Dock = DockStyle.Right;
     this.barDockControlRight.Size = new Size(0, 492);
     this.mainDockManager.Controller = this.mainBarAndDockingController;
     this.mainDockManager.Form = this;
     this.mainDockManager.Images = this.imageList1;
     this.mainDockManager.MenuManager = this.mainBarManager;
     this.mainDockManager.RootPanels.AddRange(new DockPanel[]
     {
         this.dockPanelMenus
     });
     this.mainDockManager.TopZIndexControls.AddRange(new string[]
     {
         "DevExpress.XtraBars.BarDockControl",
         "System.Windows.Forms.StatusBar",
         "DevExpress.ExpressApp.Win.Templates.Controls.XafRibbonControl",
         "DevExpress.XtraBars.Ribbon.RibbonStatusBar"
     });
     this.imageList1.ColorDepth = ColorDepth.Depth32Bit;
     this.imageList1.ImageSize = new Size(16, 16);
     this.imageList1.TransparentColor = Color.Transparent;
     this.dockPanelMenus.Controls.Add(this.dockPanel1_Container);
     this.dockPanelMenus.Dock = DockingStyle.Left;
     this.dockPanelMenus.ID = new Guid("17f71733-1ca6-4a29-aa2c-56cbcc2b43dd");
     this.dockPanelMenus.Size = new Size(200, 492);
     this.dockPanelMenus.Text = "Навигация";
     this.dockPanelMenus.Parent = this;
     this.dockPanelMenus.Location = new Point(0, 51);
     this.dockPanelMenus.Name = "dockPanelMenus";
     this.dockPanelMenus.Options.AllowDockBottom = false;
     this.dockPanelMenus.Options.AllowDockTop = false;
     this.dockPanelMenus.OriginalSize = new Size(200, 200);
     this.dockPanelMenus.TabStop = false;
     this.dockPanelMenus.Tag = "Menus";
     this.dockPanel1_Container.Controls.Add(this.rootMenuItemsActionContainer1);
     this.dockPanel1_Container.Parent = dockPanelMenus;
     this.dockPanel1_Container.Location = new Point(4, 23);
     this.dockPanel1_Container.Size = new Size(192, 465);
     this.dockPanel1_Container.TabIndex = 0;
     this.dockPanel1_Container.Name = "dockPanel1_Container";
     this.rootMenuItemsActionContainer1.Parent = dockPanel1_Container;
     this.rootMenuItemsActionContainer1.TabIndex = 0;
     this.rootMenuItemsActionContainer1.Size = new Size(192, 465);
     this.rootMenuItemsActionContainer1.Dock = DockStyle.Fill;
     this.rootMenuItemsActionContainer1.Location = new Point(0, 0);
     this.rootMenuItemsActionContainer1.Name = "rootMenuItemsActionContainer1";
     this.cMenu.Caption = "Меню";
     this.cMenu.TargetPageGroupCaption = null;
     this.cMenu.ContainerId = "Menu";
     this.cMenu.Id = 7;
     this.cMenu.Name = "cMenu";
     this.cMenu.TargetPageCategoryColor = Color.Empty;
     this.barSubItemPanels.Caption = "Панели";
     this.barSubItemPanels.Id = 35;
     this.barSubItemPanels.Name = "barSubItemPanels";
     this.viewSitePanel.BorderStyle = BorderStyles.NoBorder;
     this.viewSitePanel.Parent = this;
     this.viewSitePanel.Location = new Point(200, 51);
     this.viewSitePanel.Size = new Size(592, 492);
     this.viewSitePanel.Dock = DockStyle.Fill;
     this.viewSitePanel.TabIndex = 4;
     this.viewSitePanel.Name = "viewSitePanel";
     this.formStateModelSynchronizerComponent.Form = this;
     this.formStateModelSynchronizerComponent.Model = null;
     this.Text = "MainForm";
     this.ClientSize = new Size(792, 566);
     // this.Margin = new Padding(3, 5, 3, 5);
     this.AutoScaleDimensions = new SizeF(6, 13);
     base.AutoScaleMode = AutoScaleMode.Font;
     base.BarManager = this.mainBarManager;
     base.Controls.Add(this.viewSitePanel);
     base.Controls.Add(this.dockPanelMenus);
     base.Controls.Add(this.barDockControlLeft);
     base.Controls.Add(this.barDockControlRight);
     base.Controls.Add(this.barDockControlBottom);
     base.Controls.Add(this.barDockControlTop);
     base.IsMdiContainer = true;
     base.Name = "MenusMainForm";
     ((ISupportInitialize)this.documentManager).EndInit();
     ((ISupportInitialize)this.mainBarManager).EndInit();
     ((ISupportInitialize)this.mainBarAndDockingController).EndInit();
     ((ISupportInitialize)this.mainDockManager).EndInit();
     this.dockPanelMenus.ResumeLayout(false);
     this.dockPanel1_Container.ResumeLayout(false);
     ((ISupportInitialize)this.viewSitePanel).EndInit();
     base.ResumeLayout(false);
 }