Ejemplo n.º 1
0
        internal static void Add(WorkItem workItem)
        {
            RibbonPage ribbonPage = new RibbonPage(ExtensionSiteNames.RibbonLookAndFeel);

            workItem.UIExtensionSites[ExtensionSiteNames.Ribbon].Add <RibbonPage>(ribbonPage);
            workItem.UIExtensionSites.RegisterSite(ExtensionSiteNames.RibbonLookAndFeel, ribbonPage);

            RibbonPageGroup ribbonGroup = new RibbonPageGroup(ExtensionSiteNames.RibbonSkins);

            workItem.UIExtensionSites[ExtensionSiteNames.RibbonLookAndFeel].Add <RibbonPageGroup>(ribbonGroup);
            workItem.UIExtensionSites.RegisterSite(ExtensionSiteNames.RibbonSkins, ribbonGroup);

            // Next create the Gallery within the Ribbon Group
            RibbonGalleryBarItem ribbonGallery = new RibbonGalleryBarItem();

            ribbonGallery.Caption = ExtensionSiteNames.RibbonSkinGallery;
            ribbonGallery.Gallery.AllowHoverImages = true;
            ribbonGallery.Gallery.ColumnCount      = 3;
            //ribbonGallery.Gallery.DistanceBetweenItems = 1;
            ribbonGallery.Gallery.ImageSize      = new Size(imageWidth, imageHeight);
            ribbonGallery.Gallery.HoverImageSize = new Size(hoverWidth, hoverHeight);
            workItem.UIExtensionSites[ExtensionSiteNames.RibbonSkins].Add <BarItem>(ribbonGallery);
            // Pass the WorkItem which added the command into the RibbonGalleryUIAdapter. This allows the command to be fired.
            workItem.UIExtensionSites.RegisterSite(ExtensionSiteNames.RibbonSkinGallery,
                                                   new RibbonGalleryDynamicUIAdapter(ribbonGallery, workItem));

            // Then create the group within the gallery
            GalleryItemGroup galleryGroup = new GalleryItemGroup();

            galleryGroup.Caption = ExtensionSiteNames.RibbonSkinGalleryGroup;
            workItem.UIExtensionSites[ExtensionSiteNames.RibbonSkinGallery].Add <GalleryItemGroup>(galleryGroup);
            workItem.UIExtensionSites.RegisterSite(ExtensionSiteNames.RibbonSkinGalleryGroup, new RibbonGalleryGroupDynamicUIAdapter(galleryGroup));

            AddAllMenuItems(workItem);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Init skin gallery
        /// </summary>
        /// <param name="rp">RibbonPage</param>
        public void InitSkinGallery(RibbonPage rp, string skin = "DevExpress Style")
        {
            var rgbiSkins = new RibbonGalleryBarItem { Caption = "Skins" };
            rgbiSkins.Gallery.AllowHoverImages = true;
            rgbiSkins.Gallery.Appearance.ItemCaptionAppearance.Normal.Options.UseFont = true;
            rgbiSkins.Gallery.Appearance.ItemCaptionAppearance.Normal.Options.UseTextOptions = true;
            rgbiSkins.Gallery.Appearance.ItemCaptionAppearance.Normal.TextOptions.HAlignment = HorzAlignment.Center;
            rgbiSkins.Gallery.ColumnCount = 4;
            rgbiSkins.Gallery.FixedHoverImageSize = false;
            rgbiSkins.Gallery.ImageSize = new System.Drawing.Size(32, 17);
            rgbiSkins.Gallery.ItemImageLocation = Locations.Top;
            rgbiSkins.Gallery.RowCount = 4;
            rgbiSkins.Id = 60;
            rgbiSkins.Name = "rgbiSkins";

            var skinsRibbonPageGroup = new RibbonPageGroup();
            skinsRibbonPageGroup.ItemLinks.Add(rgbiSkins);
            skinsRibbonPageGroup.Name = "skinsRibbonPageGroup";
            skinsRibbonPageGroup.ShowCaptionButton = false;
            skinsRibbonPageGroup.Text = "GIAO DIỆN";

            ribbon.Items.Add(rgbiSkins);
            rp.Groups.Add(skinsRibbonPageGroup);

            SkinHelper.InitSkinGallery(rgbiSkins, true);
            UserLookAndFeel.Default.SetSkinStyle(skin);
        }
Ejemplo n.º 3
0
        protected void AddRibbonViewPage()
        {
            var skinPage = RootWorkItem.UIExtensionSites[ExtensionSiteNames.Ribbon].Add(new RibbonPage(GetLocalizedCaption("ViewPageCaption")));

            RootWorkItem.UIExtensionSites.RegisterSite("SkinPage", skinPage);

            RibbonPageGroup skinsPageGroup = RootWorkItem.UIExtensionSites["SkinPage"].Add(new RibbonPageGroup(GetLocalizedCaption("Skins")));
            string          skinPageGroup  = "SkinPageGroup";

            RootWorkItem.UIExtensionSites.RegisterSite(skinPageGroup, skinsPageGroup);

            RibbonGalleryBarItem skinGalleryBarItem = new RibbonGalleryBarItem();

            skinGalleryBarItem.Gallery.AllowHoverImages    = true;
            skinGalleryBarItem.Gallery.FixedHoverImageSize = false;
            skinGalleryBarItem.Gallery.ItemCheckMode       = DevExpress.XtraBars.Ribbon.Gallery.ItemCheckMode.SingleRadio;
            skinGalleryBarItem.Id   = 1;
            skinGalleryBarItem.Name = "skinGalleryBarItem";
            RootWorkItem.UIExtensionSites[skinPageGroup].Add(skinGalleryBarItem);
            skinPage.Groups.AddRange(new DevExpress.XtraBars.Ribbon.RibbonPageGroup[] {
                skinsPageGroup
            });

            SkinHelper.InitSkinGallery(skinGalleryBarItem, true);
        }
Ejemplo n.º 4
0
        /// <summary>
        /// Initializes a new instance of the
        /// <see cref="RibbonApplicationMenuUIAdapter"/> class.
        /// </summary>
        /// <param name="ribbonGallery">The application menu.</param>
        /// <param name="workItem">The work item which added the command.
        /// We need to access the Commands property of the work item to
        /// fire the Command associated with the GalleryItem.</param>
        public RibbonGalleryUIAdapter(RibbonGalleryBarItem ribbonGallery, WorkItem workItem)
        {
            Guard.ArgumentNotNull(ribbonGallery, "RibbonGalleryBarItem");
            Guard.ArgumentNotNull(workItem, "workItem");

            this.ribbonGallery = ribbonGallery;
            this.workItem      = workItem;

            // Developer Express does not support click events for
            // GalleryItems so we need to handle the ItemClick event here.

            this.ribbonGallery.Gallery.ItemClick += ItemClick;
        }
Ejemplo n.º 5
0
        public override object Build(ICSharpCode.Core.Codon codon, object caller, IEnumerable <ICSharpCode.Core.ICondition> conditions)
        {
            RibbonGalleryBarItem skinGalleryBarItem = new RibbonGalleryBarItem();

            skinGalleryBarItem.Gallery.AllowHoverImages    = true;
            skinGalleryBarItem.Gallery.FixedHoverImageSize = false;
            skinGalleryBarItem.Gallery.ItemCheckMode       = DevExpress.XtraBars.Ribbon.Gallery.ItemCheckMode.SingleRadio;
            skinGalleryBarItem.Id   = 1;
            skinGalleryBarItem.Name = "skinGalleryBarItem";
            var label = codon.Properties["label"] ?? codon.Id;

            skinGalleryBarItem.Caption = label;
            return(skinGalleryBarItem);
        }
Ejemplo n.º 6
0
        private void addSkinToGallery(RibbonGalleryBarItem rgbiSkins, IMenuBarButton menuBarItem)
        {
            SimpleButton imageButton = new SimpleButton();

            imageButton.LookAndFeel.SetSkinStyle(menuBarItem.Caption);
            GalleryItem gItem = new GalleryItem();

            gItem.Tag     = menuBarItem;
            gItem.Caption = menuBarItem.Caption;
            rgbiSkins.Gallery.Groups[0].Items.Add(gItem);

            gItem.Image      = getSkinImage(imageButton, 32, 17, 2);
            gItem.HoverImage = getSkinImage(imageButton, 70, 36, 5);
            gItem.Caption    = menuBarItem.Caption;
            gItem.Hint       = menuBarItem.Caption;
        }
Ejemplo n.º 7
0
 private void rgbiSkins_Gallery_InitDropDownGallery(RibbonGalleryBarItem rgbiSkins, InplaceGalleryEventArgs e)
 {
     e.PopupGallery.CreateFrom(rgbiSkins.Gallery);
     e.PopupGallery.AllowFilter      = false;
     e.PopupGallery.ShowItemText     = true;
     e.PopupGallery.ShowGroupCaption = true;
     e.PopupGallery.AllowHoverImages = false;
     foreach (GalleryItemGroup galleryGroup in e.PopupGallery.Groups)
     {
         foreach (GalleryItem item in galleryGroup.Items)
         {
             item.Image = item.HoverImage;
         }
     }
     e.PopupGallery.ColumnCount = 2;
     e.PopupGallery.ImageSize   = new Size(70, 36);
 }
Ejemplo n.º 8
0
 public static void Apply(RibbonGalleryBarItem galleryItem)
 {
     galleryItem.Gallery.Appearance.ItemCaptionAppearance.Normal.Font                     = AppearanceObject.DefaultFont;
     galleryItem.Gallery.Appearance.ItemCaptionAppearance.Normal.Options.UseFont          = true;
     galleryItem.Gallery.Appearance.ItemCaptionAppearance.Normal.TextOptions.HAlignment   = HorzAlignment.Near;
     galleryItem.Gallery.Appearance.ItemCaptionAppearance.Normal.Options.UseTextOptions   = true;
     galleryItem.Gallery.Appearance.ItemCaptionAppearance.Hovered.Font                    = AppearanceObject.DefaultFont;
     galleryItem.Gallery.Appearance.ItemCaptionAppearance.Hovered.Options.UseFont         = true;
     galleryItem.Gallery.Appearance.ItemCaptionAppearance.Hovered.TextOptions.HAlignment  = HorzAlignment.Near;
     galleryItem.Gallery.Appearance.ItemCaptionAppearance.Hovered.Options.UseTextOptions  = true;
     galleryItem.Gallery.Appearance.ItemCaptionAppearance.Pressed.Font                    = AppearanceObject.DefaultFont;
     galleryItem.Gallery.Appearance.ItemCaptionAppearance.Pressed.Options.UseFont         = true;
     galleryItem.Gallery.Appearance.ItemCaptionAppearance.Pressed.TextOptions.HAlignment  = HorzAlignment.Near;
     galleryItem.Gallery.Appearance.ItemCaptionAppearance.Pressed.Options.UseTextOptions  = true;
     galleryItem.Gallery.Appearance.ItemCaptionAppearance.Disabled.Font                   = AppearanceObject.DefaultFont;
     galleryItem.Gallery.Appearance.ItemCaptionAppearance.Disabled.Options.UseFont        = true;
     galleryItem.Gallery.Appearance.ItemCaptionAppearance.Disabled.TextOptions.HAlignment = HorzAlignment.Near;
     galleryItem.Gallery.Appearance.ItemCaptionAppearance.Disabled.Options.UseTextOptions = true;
 }
Ejemplo n.º 9
0
        private RibbonGalleryBarItem createSkinGallery(RibbonBarManager barManager)
        {
            var rgbiSkins = new RibbonGalleryBarItem(barManager);

            rgbiSkins.Caption = "Skins";
            rgbiSkins.Gallery.AllowHoverImages = true;
            rgbiSkins.Gallery.Appearance.ItemCaptionAppearance.Normal.Options.UseFont        = true;
            rgbiSkins.Gallery.Appearance.ItemCaptionAppearance.Normal.Options.UseTextOptions = true;
            rgbiSkins.Gallery.Appearance.ItemCaptionAppearance.Normal.TextOptions.HAlignment = HorzAlignment.Center;
            rgbiSkins.Gallery.ColumnCount         = 4;
            rgbiSkins.Gallery.FixedHoverImageSize = false;
            rgbiSkins.Gallery.Groups.AddRange(new[] { new GalleryItemGroup {
                                                          Caption = "Skins"
                                                      } });
            rgbiSkins.Gallery.ImageSize            = new Size(32, 17);
            rgbiSkins.Gallery.ItemImageLocation    = Locations.Top;
            rgbiSkins.Gallery.RowCount             = 4;
            rgbiSkins.Gallery.InitDropDownGallery += (o, e) => rgbiSkins_Gallery_InitDropDownGallery(rgbiSkins, e);
            rgbiSkins.Gallery.ItemClick           += (o, e) => e.Item.Tag.DowncastTo <IMenuBarButton>().Click();
            return(rgbiSkins);
        }
Ejemplo n.º 10
0
        public static void CreateGallery(RibbonGalleryBarItem ribbonGalleryBarItemThemes)
        {
            if (_ribbonGalleryBarItemThemes == null) _ribbonGalleryBarItemThemes = ribbonGalleryBarItemThemes;
            var imageButton = new SimpleButton();
            foreach (SkinContainer cnt in SkinManager.Default.Skins)
            {
                imageButton.LookAndFeel.SetSkinStyle(cnt.SkinName);
                var gItem = new GalleryItem();
                int groupIndex = 0;
                ribbonGalleryBarItemThemes.Gallery.Groups[groupIndex].Items.Add(gItem);
                gItem.Caption = cnt.SkinName;

                gItem.Image = GetSkinImage(imageButton, 17, 17, 2);
                gItem.HoverImage = GetSkinImage(imageButton, 41, 41, 5);
                gItem.Caption = cnt.SkinName;
                gItem.Hint = cnt.SkinName;
            }
            ribbonGalleryBarItemThemes.Gallery.InitDropDownGallery += Gallery_InitDropDownGallery;

            ribbonGalleryBarItemThemes.Gallery.ItemClick += Gallery_ItemClick;
        }
Ejemplo n.º 11
0
        private void InitializeComponent()
        {
            this.components = new Container();
            ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(FormMain));

            this.panelControl1              = new PanelControl();
            this.panelControl5              = new PanelControl();
            this.labelControl2              = new LabelControl();
            this.labelControl1              = new LabelControl();
            this.panelControl3              = new PanelControl();
            this.labelControl6              = new LabelControl();
            this.labelControl5              = new LabelControl();
            this.ribbonControl1             = new RibbonControl();
            this.ribbonGalleryBarItem1      = new RibbonGalleryBarItem();
            this.barButtonItem1             = new BarButtonItem();
            this.barButtonItem2             = new BarButtonItem();
            this.ribbonPage1                = new RibbonPage();
            this.ribbonPageGroup1           = new RibbonPageGroup();
            this.ribbonPageGroup2           = new RibbonPageGroup();
            this.repositoryItemPictureEdit1 = new RepositoryItemPictureEdit();
            this.repositoryItemPictureEdit2 = new RepositoryItemPictureEdit();
            this.repositoryItemPictureEdit3 = new RepositoryItemPictureEdit();
            this.repositoryItemPictureEdit4 = new RepositoryItemPictureEdit();
            this.panelControl6              = new PanelControl();
            this.panelControl2              = new PanelControl();
            this.pictureEdit9               = new PictureEdit();
            this.panelControl4              = new PanelControl();
            this.simpleButton5              = new SimpleButton();
            this.simpleButton2              = new SimpleButton();
            this.textEdit1             = new TextEdit();
            this.simpleButton1         = new SimpleButton();
            this.simpleButton4         = new SimpleButton();
            this.simpleButton3         = new SimpleButton();
            this.imageCollection1      = new ImageCollection(this.components);
            this.timer1                = new System.Windows.Forms.Timer(this.components);
            this.navBarControl1        = new NavBarControl();
            this.navBarGroup1          = new NavBarGroup();
            this.navBarItem8           = new NavBarItem();
            this.navBarItem1           = new NavBarItem();
            this.navBarItem2           = new NavBarItem();
            this.navBarItem3           = new NavBarItem();
            this.navBarItem4           = new NavBarItem();
            this.navBarItem5           = new NavBarItem();
            this.navBarItem6           = new NavBarItem();
            this.navBarItem7           = new NavBarItem();
            this.xtraTabbedMdiManager1 = new XtraTabbedMdiManager(this.components);
            this.barManager1           = new BarManager(this.components);
            this.bar3                 = new Bar();
            this.barStaticItem1       = new BarStaticItem();
            this.barStaticItem2       = new BarStaticItem();
            this.barDockControlTop    = new BarDockControl();
            this.barDockControlBottom = new BarDockControl();
            this.barDockControlLeft   = new BarDockControl();
            this.barDockControlRight  = new BarDockControl();
            this.timer2               = new System.Windows.Forms.Timer(this.components);
            ((ISupportInitialize)this.panelControl1).BeginInit();
            this.panelControl1.SuspendLayout();
            ((ISupportInitialize)this.panelControl5).BeginInit();
            this.panelControl5.SuspendLayout();
            ((ISupportInitialize)this.panelControl3).BeginInit();
            this.panelControl3.SuspendLayout();
            ((ISupportInitialize)this.ribbonControl1).BeginInit();
            ((ISupportInitialize)this.repositoryItemPictureEdit1).BeginInit();
            ((ISupportInitialize)this.repositoryItemPictureEdit2).BeginInit();
            ((ISupportInitialize)this.repositoryItemPictureEdit3).BeginInit();
            ((ISupportInitialize)this.repositoryItemPictureEdit4).BeginInit();
            ((ISupportInitialize)this.panelControl6).BeginInit();
            this.panelControl6.SuspendLayout();
            ((ISupportInitialize)this.panelControl2).BeginInit();
            this.panelControl2.SuspendLayout();
            ((ISupportInitialize)this.pictureEdit9.Properties).BeginInit();
            ((ISupportInitialize)this.panelControl4).BeginInit();
            this.panelControl4.SuspendLayout();
            ((ISupportInitialize)this.textEdit1.Properties).BeginInit();
            ((ISupportInitialize)this.imageCollection1).BeginInit();
            ((ISupportInitialize)this.navBarControl1).BeginInit();
            ((ISupportInitialize)this.xtraTabbedMdiManager1).BeginInit();
            ((ISupportInitialize)this.barManager1).BeginInit();
            base.SuspendLayout();
            this.panelControl1.Controls.Add(this.panelControl5);
            this.panelControl1.Controls.Add(this.panelControl3);
            this.panelControl1.Controls.Add(this.ribbonControl1);
            this.panelControl1.Dock     = DockStyle.Top;
            this.panelControl1.Location = new Point(0, 0);
            this.panelControl1.Name     = "panelControl1";
            this.panelControl1.Size     = new Size(826, 99);
            this.panelControl1.TabIndex = 3;
            this.panelControl5.Anchor   = (AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Right);
            this.panelControl5.Controls.Add(this.labelControl2);
            this.panelControl5.Controls.Add(this.labelControl1);
            this.panelControl5.Location = new Point(635, 6);
            this.panelControl5.Name     = "panelControl5";
            this.panelControl5.Size     = new Size(167, 88);
            this.panelControl5.TabIndex = 8;
            this.labelControl2.Anchor   = (AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right);
            this.labelControl2.Appearance.TextOptions.HAlignment = HorzAlignment.Near;
            this.labelControl2.Location = new Point(24, 55);
            this.labelControl2.Name     = "labelControl2";
            this.labelControl2.Size     = new Size(84, 14);
            this.labelControl2.TabIndex = 1;
            this.labelControl2.Text     = "发动机转速:无";
            this.labelControl1.Anchor   = (AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right);
            this.labelControl1.Location = new Point(22, 17);
            this.labelControl1.Name     = "labelControl1";
            this.labelControl1.Size     = new Size(120, 14);
            this.labelControl1.TabIndex = 0;
            this.labelControl1.Text     = "发动机冷却液温度:无";
            this.panelControl3.Anchor   = (AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right);
            this.panelControl3.Controls.Add(this.labelControl6);
            this.panelControl3.Controls.Add(this.labelControl5);
            this.panelControl3.Location             = new Point(319, 5);
            this.panelControl3.Name                 = "panelControl3";
            this.panelControl3.Size                 = new Size(225, 88);
            this.panelControl3.TabIndex             = 2;
            this.panelControl3.Resize              += new EventHandler(this.panelControl3_Resize);
            this.labelControl6.Appearance.Font      = new Font("Tahoma", 10.5f, FontStyle.Regular, GraphicsUnit.Point, 0);
            this.labelControl6.Location             = new Point(83, 34);
            this.labelControl6.Name                 = "labelControl6";
            this.labelControl6.Size                 = new Size(79, 17);
            this.labelControl6.TabIndex             = 1;
            this.labelControl6.Text                 = "labelControl6";
            this.labelControl5.Anchor               = (AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right);
            this.labelControl5.Appearance.Font      = new Font("Tahoma", 15f, FontStyle.Bold, GraphicsUnit.Point, 0);
            this.labelControl5.Appearance.ForeColor = Color.Orange;
            this.labelControl5.Appearance.TextOptions.HAlignment = HorzAlignment.Center;
            this.labelControl5.Appearance.TextOptions.VAlignment = VertAlignment.Center;
            this.labelControl5.Location                          = new Point(60, 5);
            this.labelControl5.Name                              = "labelControl5";
            this.labelControl5.Size                              = new Size(135, 24);
            this.labelControl5.TabIndex                          = 0;
            this.labelControl5.Text                              = "labelControl5";
            this.ribbonControl1.AllowKeyTips                     = false;
            this.ribbonControl1.AllowMdiChildButtons             = false;
            this.ribbonControl1.AllowMinimizeRibbon              = false;
            this.ribbonControl1.AllowTrimPageText                = false;
            this.ribbonControl1.ApplicationButtonDropDownControl = this.barDockControlRight;
            this.ribbonControl1.ExpandCollapseItem.Id            = 0;
            this.ribbonControl1.Items.AddRange(new BarItem[]
            {
                this.ribbonControl1.ExpandCollapseItem,
                this.ribbonGalleryBarItem1,
                this.barButtonItem1,
                this.barButtonItem2
            });
            this.ribbonControl1.Location  = new Point(2, 2);
            this.ribbonControl1.MaxItemId = 1;
            this.ribbonControl1.Name      = "ribbonControl1";
            this.ribbonControl1.Pages.AddRange(new RibbonPage[]
            {
                this.ribbonPage1
            });
            this.ribbonControl1.RepositoryItems.AddRange(new RepositoryItem[]
            {
                this.repositoryItemPictureEdit1,
                this.repositoryItemPictureEdit2,
                this.repositoryItemPictureEdit3,
                this.repositoryItemPictureEdit4
            });
            this.ribbonControl1.RightToLeft              = RightToLeft.Yes;
            this.ribbonControl1.ShowCategoryInCaption    = false;
            this.ribbonControl1.ShowExpandCollapseButton = DefaultBoolean.False;
            this.ribbonControl1.ShowFullScreenButton     = DefaultBoolean.False;
            this.ribbonControl1.ShowPageHeadersMode      = ShowPageHeadersMode.Hide;
            this.ribbonControl1.ShowToolbarCustomizeItem = false;
            this.ribbonControl1.Size = new Size(822, 98);
            this.ribbonControl1.Toolbar.ShowCustomizeItem = false;
            this.ribbonControl1.ToolbarLocation           = RibbonQuickAccessToolbarLocation.Hidden;
            this.ribbonGalleryBarItem1.Caption            = "ribbonGalleryBarItem1";
            this.ribbonGalleryBarItem1.CategoryGuid       = new Guid("6ffddb2b-9015-4d97-a4c1-91613e0ef537");
            this.ribbonGalleryBarItem1.Gallery.ItemClick += new GalleryItemClickEventHandler(this.ribbonGalleryBarItem1_GalleryItemClick);
            this.ribbonGalleryBarItem1.Id                = 1;
            this.ribbonGalleryBarItem1.Name              = "ribbonGalleryBarItem1";
            this.ribbonGalleryBarItem1.GalleryItemClick += new GalleryItemClickEventHandler(this.ribbonGalleryBarItem1_GalleryItemClick);
            this.barButtonItem1.Caption      = "最小化";
            this.barButtonItem1.CategoryGuid = new Guid("6ffddb2b-9015-4d97-a4c1-91613e0ef537");
            this.barButtonItem1.Glyph        = (Image)componentResourceManager.GetObject("barButtonItem1.Glyph");
            this.barButtonItem1.Id           = 12;
            this.barButtonItem1.LargeGlyph   = (Image)componentResourceManager.GetObject("barButtonItem1.LargeGlyph");
            this.barButtonItem1.Name         = "barButtonItem1";
            this.barButtonItem1.ItemClick   += new ItemClickEventHandler(this.barButtonItem1_ItemClick);
            this.barButtonItem2.Caption      = "关闭";
            this.barButtonItem2.CategoryGuid = new Guid("6ffddb2b-9015-4d97-a4c1-91613e0ef537");
            this.barButtonItem2.Glyph        = (Image)componentResourceManager.GetObject("barButtonItem2.Glyph");
            this.barButtonItem2.Id           = 13;
            this.barButtonItem2.LargeGlyph   = (Image)componentResourceManager.GetObject("barButtonItem2.LargeGlyph");
            this.barButtonItem2.Name         = "barButtonItem2";
            this.barButtonItem2.ItemClick   += new ItemClickEventHandler(this.barButtonItem2_ItemClick);
            this.ribbonPage1.Groups.AddRange(new RibbonPageGroup[]
            {
                this.ribbonPageGroup1,
                this.ribbonPageGroup2
            });
            this.ribbonPage1.Name = "ribbonPage1";
            this.ribbonPage1.Text = "ribbonPage1";
            this.ribbonPageGroup1.AllowTextClipping = false;
            this.ribbonPageGroup1.ItemLinks.Add(this.ribbonGalleryBarItem1);
            this.ribbonPageGroup1.Name = "ribbonPageGroup1";
            this.ribbonPageGroup1.ShowCaptionButton = false;
            this.ribbonPageGroup1.Text              = "换肤";
            this.ribbonPageGroup2.AllowMinimize     = false;
            this.ribbonPageGroup2.AllowTextClipping = false;
            this.ribbonPageGroup2.ItemLinks.Add(this.barButtonItem1);
            this.ribbonPageGroup2.ItemLinks.Add(this.barButtonItem2);
            this.ribbonPageGroup2.Name = "ribbonPageGroup2";
            this.ribbonPageGroup2.ShowCaptionButton          = false;
            this.repositoryItemPictureEdit1.Name             = "repositoryItemPictureEdit1";
            this.repositoryItemPictureEdit2.Name             = "repositoryItemPictureEdit2";
            this.repositoryItemPictureEdit3.Name             = "repositoryItemPictureEdit3";
            this.repositoryItemPictureEdit3.PictureAlignment = ContentAlignment.MiddleLeft;
            this.repositoryItemPictureEdit4.Name             = "repositoryItemPictureEdit4";
            this.panelControl6.Controls.Add(this.panelControl2);
            this.panelControl6.Controls.Add(this.panelControl4);
            this.panelControl6.Dock     = DockStyle.Bottom;
            this.panelControl6.Location = new Point(167, 189);
            this.panelControl6.Name     = "panelControl6";
            this.panelControl6.Size     = new Size(659, 391);
            this.panelControl6.TabIndex = 2;
            this.panelControl6.Visible  = false;
            this.panelControl2.Controls.Add(this.pictureEdit9);
            this.panelControl2.Dock               = DockStyle.Fill;
            this.panelControl2.Location           = new Point(2, 2);
            this.panelControl2.Name               = "panelControl2";
            this.panelControl2.Size               = new Size(655, 348);
            this.panelControl2.TabIndex           = 2;
            this.pictureEdit9.BackgroundImage     = (Image)componentResourceManager.GetObject("pictureEdit9.BackgroundImage");
            this.pictureEdit9.Dock                = DockStyle.Fill;
            this.pictureEdit9.Location            = new Point(2, 2);
            this.pictureEdit9.Name                = "pictureEdit9";
            this.pictureEdit9.Properties.ShowMenu = false;
            this.pictureEdit9.Properties.SizeMode = PictureSizeMode.Stretch;
            this.pictureEdit9.Size                = new Size(651, 344);
            this.pictureEdit9.TabIndex            = 0;
            this.panelControl4.Controls.Add(this.simpleButton5);
            this.panelControl4.Controls.Add(this.simpleButton2);
            this.panelControl4.Controls.Add(this.textEdit1);
            this.panelControl4.Controls.Add(this.simpleButton1);
            this.panelControl4.Controls.Add(this.simpleButton4);
            this.panelControl4.Controls.Add(this.simpleButton3);
            this.panelControl4.Dock           = DockStyle.Bottom;
            this.panelControl4.Location       = new Point(2, 350);
            this.panelControl4.Name           = "panelControl4";
            this.panelControl4.Size           = new Size(655, 39);
            this.panelControl4.TabIndex       = 1;
            this.simpleButton5.Anchor         = (AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left);
            this.simpleButton5.Enabled        = false;
            this.simpleButton5.Location       = new Point(81, 2);
            this.simpleButton5.Name           = "simpleButton5";
            this.simpleButton5.Size           = new Size(78, 35);
            this.simpleButton5.TabIndex       = 16;
            this.simpleButton5.Text           = "关闭仪表显示";
            this.simpleButton5.Visible        = false;
            this.simpleButton5.Click         += new EventHandler(this.simpleButton5_Click);
            this.simpleButton2.Dock           = DockStyle.Left;
            this.simpleButton2.Location       = new Point(2, 2);
            this.simpleButton2.Name           = "simpleButton2";
            this.simpleButton2.Size           = new Size(78, 35);
            this.simpleButton2.TabIndex       = 15;
            this.simpleButton2.Text           = "打开仪表显示";
            this.simpleButton2.Visible        = false;
            this.simpleButton2.Click         += new EventHandler(this.simpleButton2_Click);
            this.textEdit1.Location           = new Point(224, 1);
            this.textEdit1.MenuManager        = this.ribbonControl1;
            this.textEdit1.Name               = "textEdit1";
            this.textEdit1.Size               = new Size(90, 20);
            this.textEdit1.TabIndex           = 14;
            this.textEdit1.Visible            = false;
            this.simpleButton1.Location       = new Point(320, 0);
            this.simpleButton1.Name           = "simpleButton1";
            this.simpleButton1.Size           = new Size(86, 23);
            this.simpleButton1.TabIndex       = 13;
            this.simpleButton1.Text           = "定位(测试)";
            this.simpleButton1.Visible        = false;
            this.simpleButton1.Click         += new EventHandler(this.simpleButton1_Click);
            this.simpleButton4.Dock           = DockStyle.Right;
            this.simpleButton4.Enabled        = false;
            this.simpleButton4.Location       = new Point(570, 2);
            this.simpleButton4.Name           = "simpleButton4";
            this.simpleButton4.Size           = new Size(83, 35);
            this.simpleButton4.TabIndex       = 12;
            this.simpleButton4.Text           = "关闭检测显示";
            this.simpleButton4.Click         += new EventHandler(this.simpleButton4_Click);
            this.simpleButton3.Anchor         = (AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Right);
            this.simpleButton3.Location       = new Point(491, 2);
            this.simpleButton3.Name           = "simpleButton3";
            this.simpleButton3.Size           = new Size(78, 35);
            this.simpleButton3.TabIndex       = 11;
            this.simpleButton3.Text           = "打开检测显示";
            this.simpleButton3.Click         += new EventHandler(this.simpleButton3_Click);
            this.imageCollection1.ImageStream = (ImageCollectionStreamer)componentResourceManager.GetObject("imageCollection1.ImageStream");
            this.imageCollection1.Images.SetKeyName(0, "close.png");
            this.imageCollection1.Images.SetKeyName(1, "close-01.png");
            this.imageCollection1.Images.SetKeyName(2, "small.png");
            this.imageCollection1.Images.SetKeyName(3, "small-01.png");
            this.imageCollection1.Images.SetKeyName(4, "NoSchematic.png");
            this.timer1.Interval            = 1000;
            this.timer1.Tick               += new EventHandler(this.timer1_Tick);
            this.navBarControl1.ActiveGroup = this.navBarGroup1;
            this.navBarControl1.Dock        = DockStyle.Left;
            this.navBarControl1.Groups.AddRange(new NavBarGroup[]
            {
                this.navBarGroup1
            });
            this.navBarControl1.Items.AddRange(new NavBarItem[]
            {
                this.navBarItem1,
                this.navBarItem2,
                this.navBarItem3,
                this.navBarItem4,
                this.navBarItem5,
                this.navBarItem6,
                this.navBarItem7,
                this.navBarItem8
            });
            this.navBarControl1.Location = new Point(0, 99);
            this.navBarControl1.Name     = "navBarControl1";
            this.navBarControl1.OptionsNavPane.ExpandedWidth          = 167;
            this.navBarControl1.OptionsNavPane.ShowGroupImageInHeader = true;
            this.navBarControl1.OptionsNavPane.ShowOverflowButton     = false;
            this.navBarControl1.PaintStyleKind = NavBarViewKind.NavigationPane;
            this.navBarControl1.Size           = new Size(167, 481);
            this.navBarControl1.TabIndex       = 7;
            this.navBarControl1.Text           = " ";
            this.navBarGroup1.Caption          = "功能导航";
            this.navBarGroup1.Expanded         = true;
            this.navBarGroup1.GroupStyle       = NavBarGroupStyle.LargeIconsText;
            this.navBarGroup1.ItemLinks.AddRange(new NavBarItemLink[]
            {
                new NavBarItemLink(this.navBarItem8),
                new NavBarItemLink(this.navBarItem1),
                new NavBarItemLink(this.navBarItem2),
                new NavBarItemLink(this.navBarItem3),
                new NavBarItemLink(this.navBarItem4),
                new NavBarItemLink(this.navBarItem5),
                new NavBarItemLink(this.navBarItem6),
                new NavBarItemLink(this.navBarItem7)
            });
            this.navBarGroup1.LargeImage          = (Image)componentResourceManager.GetObject("navBarGroup1.LargeImage");
            this.navBarGroup1.Name                = "navBarGroup1";
            this.navBarGroup1.TopVisibleLinkIndex = 1;
            this.navBarItem8.Caption              = "模块信息";
            this.navBarItem8.LargeImage           = (Image)componentResourceManager.GetObject("navBarItem8.LargeImage");
            this.navBarItem8.Name                            = "navBarItem8";
            this.navBarItem8.LinkClicked                    += new NavBarLinkEventHandler(this.navBarItem8_LinkClicked);
            this.navBarItem1.Appearance.Image                = (Image)componentResourceManager.GetObject("navBarItem1.Appearance.Image");
            this.navBarItem1.Appearance.Options.UseImage     = true;
            this.navBarItem1.Caption                         = "历史数据";
            this.navBarItem1.LargeImage                      = (Image)componentResourceManager.GetObject("navBarItem1.LargeImage");
            this.navBarItem1.Name                            = "navBarItem1";
            this.navBarItem1.LinkClicked                    += new NavBarLinkEventHandler(this.navBarItem1_LinkClicked);
            this.navBarItem2.Caption                         = "实训考核";
            this.navBarItem2.LargeImage                      = (Image)componentResourceManager.GetObject("navBarItem2.LargeImage");
            this.navBarItem2.Name                            = "navBarItem2";
            this.navBarItem2.LinkClicked                    += new NavBarLinkEventHandler(this.navBarItem2_LinkClicked);
            this.navBarItem3.Caption                         = "波形监控";
            this.navBarItem3.LargeImage                      = (Image)componentResourceManager.GetObject("navBarItem3.LargeImage");
            this.navBarItem3.Name                            = "navBarItem3";
            this.navBarItem3.Visible                         = false;
            this.navBarItem3.LinkClicked                    += new NavBarLinkEventHandler(this.navBarItem3_LinkClicked);
            this.navBarItem4.Caption                         = "历史波形";
            this.navBarItem4.LargeImage                      = (Image)componentResourceManager.GetObject("navBarItem4.LargeImage");
            this.navBarItem4.Name                            = "navBarItem4";
            this.navBarItem4.Visible                         = false;
            this.navBarItem4.LinkClicked                    += new NavBarLinkEventHandler(this.navBarItem4_LinkClicked);
            this.navBarItem5.Caption                         = "资料共享";
            this.navBarItem5.LargeImage                      = (Image)componentResourceManager.GetObject("navBarItem5.LargeImage");
            this.navBarItem5.Name                            = "navBarItem5";
            this.navBarItem5.Visible                         = false;
            this.navBarItem5.LinkClicked                    += new NavBarLinkEventHandler(this.navBarItem5_LinkClicked);
            this.navBarItem6.Caption                         = "参数设置";
            this.navBarItem6.LargeImage                      = (Image)componentResourceManager.GetObject("navBarItem6.LargeImage");
            this.navBarItem6.Name                            = "navBarItem6";
            this.navBarItem6.LinkClicked                    += new NavBarLinkEventHandler(this.navBarItem6_LinkClicked);
            this.navBarItem7.Caption                         = "查看电路图";
            this.navBarItem7.LargeImage                      = (Image)componentResourceManager.GetObject("navBarItem7.LargeImage");
            this.navBarItem7.Name                            = "navBarItem7";
            this.navBarItem7.LinkClicked                    += new NavBarLinkEventHandler(this.navBarItem7_LinkClicked);
            this.xtraTabbedMdiManager1.HeaderButtons         = TabButtons.None;
            this.xtraTabbedMdiManager1.HeaderButtonsShowMode = TabButtonShowMode.Never;
            this.xtraTabbedMdiManager1.MdiParent             = this;
            this.barManager1.Bars.AddRange(new Bar[]
            {
                this.bar3
            });
            this.barManager1.DockControls.Add(this.barDockControlTop);
            this.barManager1.DockControls.Add(this.barDockControlBottom);
            this.barManager1.DockControls.Add(this.barDockControlLeft);
            this.barManager1.DockControls.Add(this.barDockControlRight);
            this.barManager1.Form = this;
            this.barManager1.Items.AddRange(new BarItem[]
            {
                this.barStaticItem1,
                this.barStaticItem2
            });
            this.barManager1.MaxItemId = 2;
            this.barManager1.StatusBar = this.bar3;
            this.bar3.BarName          = "Status bar";
            this.bar3.CanDockStyle     = BarCanDockStyle.Bottom;
            this.bar3.DockCol          = 0;
            this.bar3.DockRow          = 0;
            this.bar3.DockStyle        = BarDockStyle.Bottom;
            this.bar3.LinksPersistInfo.AddRange(new LinkPersistInfo[]
            {
                new LinkPersistInfo(this.barStaticItem1),
                new LinkPersistInfo(this.barStaticItem2)
            });
            this.bar3.OptionsBar.AllowQuickCustomization = false;
            this.bar3.OptionsBar.DrawDragBorder          = false;
            this.bar3.OptionsBar.UseWholeRow             = true;
            this.bar3.Text = "Status bar";
            this.barStaticItem1.Caption                = "当前登录用户:";
            this.barStaticItem1.Id                     = 0;
            this.barStaticItem1.Name                   = "barStaticItem1";
            this.barStaticItem1.TextAlignment          = StringAlignment.Near;
            this.barStaticItem2.Alignment              = BarItemLinkAlignment.Right;
            this.barStaticItem2.Caption                = "系统时间:";
            this.barStaticItem2.Id                     = 1;
            this.barStaticItem2.Name                   = "barStaticItem2";
            this.barStaticItem2.TextAlignment          = StringAlignment.Near;
            this.barDockControlTop.CausesValidation    = false;
            this.barDockControlTop.Dock                = DockStyle.Top;
            this.barDockControlTop.Location            = new Point(0, 0);
            this.barDockControlTop.Size                = new Size(826, 0);
            this.barDockControlBottom.CausesValidation = false;
            this.barDockControlBottom.Dock             = DockStyle.Bottom;
            this.barDockControlBottom.Location         = new Point(0, 580);
            this.barDockControlBottom.Size             = new Size(826, 27);
            this.barDockControlLeft.CausesValidation   = false;
            this.barDockControlLeft.Dock               = DockStyle.Left;
            this.barDockControlLeft.Location           = new Point(0, 0);
            this.barDockControlLeft.Size               = new Size(0, 580);
            this.barDockControlRight.CausesValidation  = false;
            this.barDockControlRight.Dock              = DockStyle.Right;
            this.barDockControlRight.Location          = new Point(826, 0);
            this.barDockControlRight.Size              = new Size(0, 580);
            this.timer2.Interval     = 500;
            this.timer2.Tick        += new EventHandler(this.timer2_Tick);
            base.AutoScaleDimensions = new SizeF(7f, 14f);
            base.AutoScaleMode       = AutoScaleMode.Font;
            base.ClientSize          = new Size(826, 607);
            base.Controls.Add(this.panelControl6);
            base.Controls.Add(this.navBarControl1);
            base.Controls.Add(this.panelControl1);
            base.Controls.Add(this.barDockControlLeft);
            base.Controls.Add(this.barDockControlRight);
            base.Controls.Add(this.barDockControlBottom);
            base.Controls.Add(this.barDockControlTop);
            base.FormBorderStyle = FormBorderStyle.None;
            base.Icon            = (Icon)componentResourceManager.GetObject("$this.Icon");
            base.IsMdiContainer  = true;
            base.Name            = "FormMain";
            this.Text            = "整车设故考核系统";
            base.WindowState     = FormWindowState.Maximized;
            base.Load           += new EventHandler(this.FrmMain_Load);
            ((ISupportInitialize)this.panelControl1).EndInit();
            this.panelControl1.ResumeLayout(false);
            ((ISupportInitialize)this.panelControl5).EndInit();
            this.panelControl5.ResumeLayout(false);
            this.panelControl5.PerformLayout();
            ((ISupportInitialize)this.panelControl3).EndInit();
            this.panelControl3.ResumeLayout(false);
            this.panelControl3.PerformLayout();
            ((ISupportInitialize)this.ribbonControl1).EndInit();
            ((ISupportInitialize)this.repositoryItemPictureEdit1).EndInit();
            ((ISupportInitialize)this.repositoryItemPictureEdit2).EndInit();
            ((ISupportInitialize)this.repositoryItemPictureEdit3).EndInit();
            ((ISupportInitialize)this.repositoryItemPictureEdit4).EndInit();
            ((ISupportInitialize)this.panelControl6).EndInit();
            this.panelControl6.ResumeLayout(false);
            ((ISupportInitialize)this.panelControl2).EndInit();
            this.panelControl2.ResumeLayout(false);
            ((ISupportInitialize)this.pictureEdit9.Properties).EndInit();
            ((ISupportInitialize)this.panelControl4).EndInit();
            this.panelControl4.ResumeLayout(false);
            ((ISupportInitialize)this.textEdit1.Properties).EndInit();
            ((ISupportInitialize)this.imageCollection1).EndInit();
            ((ISupportInitialize)this.navBarControl1).EndInit();
            ((ISupportInitialize)this.xtraTabbedMdiManager1).EndInit();
            ((ISupportInitialize)this.barManager1).EndInit();
            base.ResumeLayout(false);
        }
Ejemplo n.º 12
0
 public void SynchronizeGalleryItems(RibbonGalleryBarItem gallery)
 {
     this.gallery = gallery;
     SetItemCheck(gallery.Gallery.GetAllItems());
     gallery.GalleryItemCheckedChanged += new GalleryItemEventHandler(gallery_GalleryItemCheckedChanged);
 }
Ejemplo n.º 13
0
        /// <summary>
        /// Initializes a new instance of the
        /// <see cref="RibbonApplicationMenuUIAdapter"/> class.
        /// </summary>
        /// <param name="ribbonGallery">The application menu.</param>
        /// <param name="workItem">The work item which added the command.
        /// We need to access the Commands property of the work item to
        /// fire the Command associated with the GalleryItem.</param>
        public RibbonGalleryUIAdapter(RibbonGalleryBarItem ribbonGallery)
        {
            Guard.ArgumentNotNull(ribbonGallery, "RibbonGalleryBarItem");

            this.ribbonGallery = ribbonGallery;
        }
        private void ProgramInMenu()
        {
            _mainRibbon = new RibbonControl();
            SkinOptions = new RibbonGalleryBarItem()
            {
                Caption = "Skin", Id = 67, Name = "SkinOptions"
            };
            _mainRibbon.Dock = DockStyle.Top;
            _mainRibbon.ExpandCollapseItem.Id   = 1;
            _mainRibbon.ExpandCollapseItem.Name = string.Empty;
            _mainRibbon.Items.AddRange(new BarItem[] { _mainRibbon.ExpandCollapseItem, SkinOptions });
            _mainRibbon.Location              = new Point(0, 0);
            _mainRibbon.MaxItemId             = 110;
            _mainRibbon.Name                  = "MainRibbon";
            _mainRibbon.RibbonStyle           = RibbonControlStyle.MacOffice;
            _mainRibbon.Size                  = new Size(1100, 142);
            _mainRibbon.ShowCategoryInCaption = false;
            Controls.Add(_mainRibbon);


            skinsRibbonPageGroup = new RibbonPageGroup();
            skinsRibbonPageGroup.ItemLinks.Add(SkinOptions);
            skinsRibbonPageGroup.Name = "skinsRibbonPageGroup";
            skinsRibbonPageGroup.ShowCaptionButton = false;
            skinsRibbonPageGroup.Text = "Skins";

            SkinHelper.InitSkinGallery(SkinOptions, true);

            try
            {
                var str = string.Format("[sp_LoadUserAllocatedWork2] '" + GlobalVariables.CurrentUser + "'");
                using (var ds = ProjectFunctions.GetDataSet(str))
                {
                    if (ds.Tables[0].Rows.Count > 0)
                    {
                        var MyTempTable = ds.Tables[0];

                        var ProgInMenu = (from DataRow dRow in MyTempTable.Rows
                                          select dRow["ProginMenu"]).Distinct();

                        foreach (var NameItemPage in ProgInMenu)
                        {
                            var ItemPage = new RibbonPage()
                            {
                                Text = NameItemPage.ToString()
                            };
                            _mainRibbon.Pages.Add(ItemPage);
                            if (ItemPage.Text.ToUpper() == "UTILITY")
                            {
                                ItemPage.Groups.Add(skinsRibbonPageGroup);
                                var group = new RibbonPageGroup("Goto")
                                {
                                    ShowCaptionButton = false, Text = string.Empty
                                };
                                ItemPage.Groups.Add(group);
                                var GoToBtn = new BarButtonItem()
                                {
                                    Caption = "GoTo"
                                };
                                group.ItemLinks.Add(GoToBtn);
                                _mainRibbon.Toolbar.ItemLinks.Add(GoToBtn);
                            }
                            var ProginMenuGroup = (from DataRow dRow in MyTempTable.Select("ProginMenu='" + ItemPage.Text + "'")
                                                   select dRow["ProginMenuGroup"].ToString().ToUpper()).Distinct();
                            foreach (var NameSubItem in ProginMenuGroup)
                            {
                                var group = new RibbonPageGroup(NameSubItem.ToUpper())
                                {
                                    ShowCaptionButton = false, Text = string.Empty
                                };
                                ItemPage.Groups.Add(group);
                                var container = new BarLinkContainerItem
                                {
                                    Caption = NameSubItem
                                };
                                group.ItemLinks.Add(container);
                                var Drs = MyTempTable.Select(string.Format("ProginMenu='{0}' and ProginMenuGroup='{1}'", ItemPage.Text, NameSubItem));
                                foreach (DataRow R in Drs)
                                {
                                    var           Kc = new KeysConverter();
                                    BarButtonItem button;
                                    button = new BarButtonItem()
                                    {
                                        Caption = R["ProgDesc"].ToString(), Name = R["ProgCode"].ToString()
                                    };
                                    container.AddItem(button);
                                    button.ItemClick += new ItemClickEventHandler(Button_ItemClick);
                                }
                            }
                        }
                        MyTempTable.Dispose();
                    }
                    Refresh();
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
            _mainRibbon.Minimized = true;
            _mainRibbon.ShowExpandCollapseButton = DevExpress.Utils.DefaultBoolean.False;
        }
Ejemplo n.º 15
0
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormMain));
     this.panelControl2                       = new DevExpress.XtraEditors.PanelControl();
     this.simpleButton1                       = new DevExpress.XtraEditors.SimpleButton();
     this.ribbonControl1                      = new DevExpress.XtraBars.Ribbon.RibbonControl();
     this.ribbonGalleryBarItem1               = new DevExpress.XtraBars.RibbonGalleryBarItem();
     this.barStaticItem5                      = new DevExpress.XtraBars.BarStaticItem();
     this.barStaticItem6                      = new DevExpress.XtraBars.BarStaticItem();
     this.ribbonPage1                         = new DevExpress.XtraBars.Ribbon.RibbonPage();
     this.ribbonPageGroup1                    = new DevExpress.XtraBars.Ribbon.RibbonPageGroup();
     this.ribbonPageGroup2                    = new DevExpress.XtraBars.Ribbon.RibbonPageGroup();
     this.ribbonPageGroup3                    = new DevExpress.XtraBars.Ribbon.RibbonPageGroup();
     this.repositoryItemGridLookUpEdit1       = new DevExpress.XtraEditors.Repository.RepositoryItemGridLookUpEdit();
     this.repositoryItemGridLookUpEdit1View   = new DevExpress.XtraGrid.Views.Grid.GridView();
     this.repositoryItemSearchLookUpEdit1     = new DevExpress.XtraEditors.Repository.RepositoryItemSearchLookUpEdit();
     this.repositoryItemSearchLookUpEdit1View = new DevExpress.XtraGrid.Views.Grid.GridView();
     this.navBarControl1                      = new DevExpress.XtraNavBar.NavBarControl();
     this.navBarGroup3                        = new DevExpress.XtraNavBar.NavBarGroup();
     this.navBarItem9                         = new DevExpress.XtraNavBar.NavBarItem();
     this.navBarItem11                        = new DevExpress.XtraNavBar.NavBarItem();
     this.navBarItem8                         = new DevExpress.XtraNavBar.NavBarItem();
     this.navBarItem10                        = new DevExpress.XtraNavBar.NavBarItem();
     this.navBarGroup1                        = new DevExpress.XtraNavBar.NavBarGroup();
     this.navBarItem1                         = new DevExpress.XtraNavBar.NavBarItem();
     this.navBarItem2                         = new DevExpress.XtraNavBar.NavBarItem();
     this.navBarGroup2                        = new DevExpress.XtraNavBar.NavBarGroup();
     this.navBarItem3                         = new DevExpress.XtraNavBar.NavBarItem();
     this.navBarItem5                         = new DevExpress.XtraNavBar.NavBarItem();
     this.navBarItem6                         = new DevExpress.XtraNavBar.NavBarItem();
     this.navBarGroup5                        = new DevExpress.XtraNavBar.NavBarGroup();
     this.navBarItem12                        = new DevExpress.XtraNavBar.NavBarItem();
     this.navBarGroup4                        = new DevExpress.XtraNavBar.NavBarGroup();
     this.navBarItem14                        = new DevExpress.XtraNavBar.NavBarItem();
     this.navBarItem4                         = new DevExpress.XtraNavBar.NavBarItem();
     this.navBarItem7                         = new DevExpress.XtraNavBar.NavBarItem();
     this.panelControl1                       = new DevExpress.XtraEditors.PanelControl();
     this.button1               = new System.Windows.Forms.Button();
     this.labelControl2         = new DevExpress.XtraEditors.LabelControl();
     this.toggleSwitch1         = new DevExpress.XtraEditors.ToggleSwitch();
     this.labelControl1         = new DevExpress.XtraEditors.LabelControl();
     this.xtraTabbedMdiManager1 = new DevExpress.XtraTabbedMdi.XtraTabbedMdiManager(this.components);
     this.barManager2           = new DevExpress.XtraBars.BarManager(this.components);
     this.bar3                 = new DevExpress.XtraBars.Bar();
     this.barStaticItem1       = new DevExpress.XtraBars.BarStaticItem();
     this.barStaticItem2       = new DevExpress.XtraBars.BarStaticItem();
     this.bar1                 = new DevExpress.XtraBars.Bar();
     this.barLargeButtonItem2  = new DevExpress.XtraBars.BarLargeButtonItem();
     this.barLargeButtonItem3  = new DevExpress.XtraBars.BarLargeButtonItem();
     this.barStaticItem4       = new DevExpress.XtraBars.BarStaticItem();
     this.barStaticItem3       = new DevExpress.XtraBars.BarStaticItem();
     this.barLargeButtonItem4  = new DevExpress.XtraBars.BarLargeButtonItem();
     this.barLargeButtonItem5  = new DevExpress.XtraBars.BarLargeButtonItem();
     this.barDockControlTop    = new DevExpress.XtraBars.BarDockControl();
     this.barDockControlBottom = new DevExpress.XtraBars.BarDockControl();
     this.barDockControlLeft   = new DevExpress.XtraBars.BarDockControl();
     this.barDockControlRight  = new DevExpress.XtraBars.BarDockControl();
     this.barLargeButtonItem1  = new DevExpress.XtraBars.BarLargeButtonItem();
     this.PCschematic          = new DevExpress.XtraEditors.PanelControl();
     this.panelControl5        = new DevExpress.XtraEditors.PanelControl();
     this.PEschematic          = new DevExpress.XtraEditors.PictureEdit();
     this.imageCollection1     = new DevExpress.Utils.ImageCollection(this.components);
     this.timer1               = new System.Windows.Forms.Timer(this.components);
     ((System.ComponentModel.ISupportInitialize)(this.panelControl2)).BeginInit();
     this.panelControl2.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.ribbonControl1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.repositoryItemGridLookUpEdit1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.repositoryItemGridLookUpEdit1View)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.repositoryItemSearchLookUpEdit1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.repositoryItemSearchLookUpEdit1View)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.navBarControl1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.panelControl1)).BeginInit();
     this.panelControl1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.toggleSwitch1.Properties)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.xtraTabbedMdiManager1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.barManager2)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.PCschematic)).BeginInit();
     this.PCschematic.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.panelControl5)).BeginInit();
     this.panelControl5.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.PEschematic.Properties)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.imageCollection1)).BeginInit();
     this.SuspendLayout();
     //
     // panelControl2
     //
     this.panelControl2.Controls.Add(this.simpleButton1);
     this.panelControl2.Controls.Add(this.ribbonControl1);
     this.panelControl2.Dock     = System.Windows.Forms.DockStyle.Top;
     this.panelControl2.Location = new System.Drawing.Point(0, 30);
     this.panelControl2.Name     = "panelControl2";
     this.panelControl2.Size     = new System.Drawing.Size(807, 98);
     this.panelControl2.TabIndex = 7;
     //
     // simpleButton1
     //
     this.simpleButton1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                       | System.Windows.Forms.AnchorStyles.Right)));
     this.simpleButton1.Appearance.BackColor              = System.Drawing.Color.Lime;
     this.simpleButton1.Appearance.Options.UseBackColor   = true;
     this.simpleButton1.Appearance.Options.UseTextOptions = true;
     this.simpleButton1.Appearance.TextOptions.WordWrap   = DevExpress.Utils.WordWrap.Wrap;
     this.simpleButton1.ButtonStyle = DevExpress.XtraEditors.Controls.BorderStyles.Style3D;
     this.simpleButton1.Location    = new System.Drawing.Point(764, 5);
     this.simpleButton1.Name        = "simpleButton1";
     this.simpleButton1.Size        = new System.Drawing.Size(41, 87);
     this.simpleButton1.TabIndex    = 3;
     this.simpleButton1.Tag         = "关闭状态";
     this.simpleButton1.Text        = "打开实时数据通道";
     this.simpleButton1.Visible     = false;
     this.simpleButton1.Click      += new System.EventHandler(this.simpleButton1_Click);
     //
     // ribbonControl1
     //
     this.ribbonControl1.AllowKeyTips          = false;
     this.ribbonControl1.AllowMdiChildButtons  = false;
     this.ribbonControl1.AllowMinimizeRibbon   = false;
     this.ribbonControl1.AllowTrimPageText     = false;
     this.ribbonControl1.ExpandCollapseItem.Id = 0;
     this.ribbonControl1.Items.AddRange(new DevExpress.XtraBars.BarItem[] {
         this.ribbonControl1.ExpandCollapseItem,
         this.ribbonGalleryBarItem1,
         this.barStaticItem5,
         this.barStaticItem6
     });
     this.ribbonControl1.Location  = new System.Drawing.Point(2, 2);
     this.ribbonControl1.MaxItemId = 92;
     this.ribbonControl1.Name      = "ribbonControl1";
     this.ribbonControl1.Pages.AddRange(new DevExpress.XtraBars.Ribbon.RibbonPage[] {
         this.ribbonPage1
     });
     this.ribbonControl1.RepositoryItems.AddRange(new DevExpress.XtraEditors.Repository.RepositoryItem[] {
         this.repositoryItemGridLookUpEdit1,
         this.repositoryItemSearchLookUpEdit1
     });
     this.ribbonControl1.ShowCategoryInCaption        = false;
     this.ribbonControl1.ShowDisplayOptionsMenuButton = DevExpress.Utils.DefaultBoolean.False;
     this.ribbonControl1.ShowExpandCollapseButton     = DevExpress.Utils.DefaultBoolean.False;
     this.ribbonControl1.ShowPageHeadersMode          = DevExpress.XtraBars.Ribbon.ShowPageHeadersMode.Hide;
     this.ribbonControl1.ShowToolbarCustomizeItem     = false;
     this.ribbonControl1.Size = new System.Drawing.Size(803, 120);
     this.ribbonControl1.Toolbar.ShowCustomizeItem = false;
     this.ribbonControl1.ToolbarLocation           = DevExpress.XtraBars.Ribbon.RibbonQuickAccessToolbarLocation.Hidden;
     //
     // ribbonGalleryBarItem1
     //
     this.ribbonGalleryBarItem1.Caption      = "ribbonGalleryBarItem1";
     this.ribbonGalleryBarItem1.CategoryGuid = new System.Guid("6ffddb2b-9015-4d97-a4c1-91613e0ef537");
     //
     //
     //
     this.ribbonGalleryBarItem1.Gallery.ItemClick += new DevExpress.XtraBars.Ribbon.GalleryItemClickEventHandler(this.ribbonGalleryBarItem1_GalleryItemClick);
     this.ribbonGalleryBarItem1.Id   = 73;
     this.ribbonGalleryBarItem1.Name = "ribbonGalleryBarItem1";
     //
     // barStaticItem5
     //
     this.barStaticItem5.Caption      = "无数据";
     this.barStaticItem5.CategoryGuid = new System.Guid("6ffddb2b-9015-4d97-a4c1-91613e0ef537");
     this.barStaticItem5.Id           = 90;
     this.barStaticItem5.ItemAppearance.Normal.Font            = new System.Drawing.Font("Tahoma", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.barStaticItem5.ItemAppearance.Normal.Options.UseFont = true;
     this.barStaticItem5.Name        = "barStaticItem5";
     this.barStaticItem5.RibbonStyle = DevExpress.XtraBars.Ribbon.RibbonItemStyles.Large;
     //
     // barStaticItem6
     //
     this.barStaticItem6.Caption      = "无数据";
     this.barStaticItem6.CategoryGuid = new System.Guid("6ffddb2b-9015-4d97-a4c1-91613e0ef537");
     this.barStaticItem6.Id           = 91;
     this.barStaticItem6.ItemAppearance.Normal.Font            = new System.Drawing.Font("Tahoma", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.barStaticItem6.ItemAppearance.Normal.Options.UseFont = true;
     this.barStaticItem6.Name        = "barStaticItem6";
     this.barStaticItem6.RibbonStyle = DevExpress.XtraBars.Ribbon.RibbonItemStyles.Large;
     //
     // ribbonPage1
     //
     this.ribbonPage1.Groups.AddRange(new DevExpress.XtraBars.Ribbon.RibbonPageGroup[] {
         this.ribbonPageGroup1,
         this.ribbonPageGroup2,
         this.ribbonPageGroup3
     });
     this.ribbonPage1.Name = "ribbonPage1";
     this.ribbonPage1.Text = "ribbonPage1";
     //
     // ribbonPageGroup1
     //
     this.ribbonPageGroup1.ItemLinks.Add(this.ribbonGalleryBarItem1);
     this.ribbonPageGroup1.Name = "ribbonPageGroup1";
     this.ribbonPageGroup1.ShowCaptionButton = false;
     this.ribbonPageGroup1.Text = "换肤";
     //
     // ribbonPageGroup2
     //
     this.ribbonPageGroup2.ItemLinks.Add(this.barStaticItem5);
     this.ribbonPageGroup2.Name = "ribbonPageGroup2";
     this.ribbonPageGroup2.ShowCaptionButton = false;
     this.ribbonPageGroup2.Text = "发动机冷却液温度";
     //
     // ribbonPageGroup3
     //
     this.ribbonPageGroup3.ItemLinks.Add(this.barStaticItem6);
     this.ribbonPageGroup3.Name = "ribbonPageGroup3";
     this.ribbonPageGroup3.ShowCaptionButton = false;
     this.ribbonPageGroup3.Text = "发动机转速";
     //
     // repositoryItemGridLookUpEdit1
     //
     this.repositoryItemGridLookUpEdit1.AutoHeight = false;
     this.repositoryItemGridLookUpEdit1.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
         new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)
     });
     this.repositoryItemGridLookUpEdit1.Name      = "repositoryItemGridLookUpEdit1";
     this.repositoryItemGridLookUpEdit1.PopupView = this.repositoryItemGridLookUpEdit1View;
     //
     // repositoryItemGridLookUpEdit1View
     //
     this.repositoryItemGridLookUpEdit1View.FocusRectStyle = DevExpress.XtraGrid.Views.Grid.DrawFocusRectStyle.RowFocus;
     this.repositoryItemGridLookUpEdit1View.Name           = "repositoryItemGridLookUpEdit1View";
     this.repositoryItemGridLookUpEdit1View.OptionsSelection.EnableAppearanceFocusedCell = false;
     this.repositoryItemGridLookUpEdit1View.OptionsView.ShowGroupPanel = false;
     //
     // repositoryItemSearchLookUpEdit1
     //
     this.repositoryItemSearchLookUpEdit1.AutoHeight = false;
     this.repositoryItemSearchLookUpEdit1.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
         new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)
     });
     this.repositoryItemSearchLookUpEdit1.Name      = "repositoryItemSearchLookUpEdit1";
     this.repositoryItemSearchLookUpEdit1.PopupView = this.repositoryItemSearchLookUpEdit1View;
     //
     // repositoryItemSearchLookUpEdit1View
     //
     this.repositoryItemSearchLookUpEdit1View.FocusRectStyle = DevExpress.XtraGrid.Views.Grid.DrawFocusRectStyle.RowFocus;
     this.repositoryItemSearchLookUpEdit1View.Name           = "repositoryItemSearchLookUpEdit1View";
     this.repositoryItemSearchLookUpEdit1View.OptionsSelection.EnableAppearanceFocusedCell = false;
     this.repositoryItemSearchLookUpEdit1View.OptionsView.ShowGroupPanel = false;
     //
     // navBarControl1
     //
     this.navBarControl1.ActiveGroup = this.navBarGroup3;
     this.navBarControl1.AllowDrop   = false;
     this.navBarControl1.Dock        = System.Windows.Forms.DockStyle.Left;
     this.navBarControl1.Groups.AddRange(new DevExpress.XtraNavBar.NavBarGroup[] {
         this.navBarGroup1,
         this.navBarGroup2,
         this.navBarGroup5,
         this.navBarGroup3,
         this.navBarGroup4
     });
     this.navBarControl1.Items.AddRange(new DevExpress.XtraNavBar.NavBarItem[] {
         this.navBarItem1,
         this.navBarItem2,
         this.navBarItem3,
         this.navBarItem5,
         this.navBarItem6,
         this.navBarItem8,
         this.navBarItem10,
         this.navBarItem14,
         this.navBarItem4,
         this.navBarItem7,
         this.navBarItem11,
         this.navBarItem9,
         this.navBarItem12
     });
     this.navBarControl1.Location = new System.Drawing.Point(0, 128);
     this.navBarControl1.Name     = "navBarControl1";
     this.navBarControl1.OptionsNavPane.ExpandedWidth          = 172;
     this.navBarControl1.OptionsNavPane.ShowGroupImageInHeader = true;
     this.navBarControl1.OptionsNavPane.ShowOverflowButton     = false;
     this.navBarControl1.PaintStyleKind             = DevExpress.XtraNavBar.NavBarViewKind.NavigationPane;
     this.navBarControl1.Size                       = new System.Drawing.Size(172, 438);
     this.navBarControl1.StoreDefaultPaintStyleName = true;
     this.navBarControl1.TabIndex                   = 3;
     this.navBarControl1.Text                       = "功能列表";
     this.navBarControl1.LinkClicked               += new DevExpress.XtraNavBar.NavBarLinkEventHandler(this.navBarControl1_LinkClicked);
     //
     // navBarGroup3
     //
     this.navBarGroup3.Caption    = "设故考核";
     this.navBarGroup3.Expanded   = true;
     this.navBarGroup3.GroupStyle = DevExpress.XtraNavBar.NavBarGroupStyle.LargeIconsText;
     this.navBarGroup3.ItemLinks.AddRange(new DevExpress.XtraNavBar.NavBarItemLink[] {
         new DevExpress.XtraNavBar.NavBarItemLink(this.navBarItem9),
         new DevExpress.XtraNavBar.NavBarItemLink(this.navBarItem11),
         new DevExpress.XtraNavBar.NavBarItemLink(this.navBarItem8),
         new DevExpress.XtraNavBar.NavBarItemLink(this.navBarItem10)
     });
     this.navBarGroup3.Name = "navBarGroup3";
     //
     // navBarItem9
     //
     this.navBarItem9.Caption      = "故障点";
     this.navBarItem9.Name         = "navBarItem9";
     this.navBarItem9.LinkClicked += new DevExpress.XtraNavBar.NavBarLinkEventHandler(this.navBarItem9_LinkClicked);
     //
     // navBarItem11
     //
     this.navBarItem11.Caption      = "系统模块";
     this.navBarItem11.Name         = "navBarItem11";
     this.navBarItem11.LinkClicked += new DevExpress.XtraNavBar.NavBarLinkEventHandler(this.navBarItem11_LinkClicked);
     //
     // navBarItem8
     //
     this.navBarItem8.Caption      = "设故考核";
     this.navBarItem8.Name         = "navBarItem8";
     this.navBarItem8.LinkClicked += new DevExpress.XtraNavBar.NavBarLinkEventHandler(this.navBarItem8_LinkClicked);
     //
     // navBarItem10
     //
     this.navBarItem10.Caption      = "考核成绩查询";
     this.navBarItem10.Name         = "navBarItem10";
     this.navBarItem10.LinkClicked += new DevExpress.XtraNavBar.NavBarLinkEventHandler(this.navBarItem10_LinkClicked);
     //
     // navBarGroup1
     //
     this.navBarGroup1.Caption    = "用户管理";
     this.navBarGroup1.GroupStyle = DevExpress.XtraNavBar.NavBarGroupStyle.LargeIconsText;
     this.navBarGroup1.ItemLinks.AddRange(new DevExpress.XtraNavBar.NavBarItemLink[] {
         new DevExpress.XtraNavBar.NavBarItemLink(this.navBarItem1),
         new DevExpress.XtraNavBar.NavBarItemLink(this.navBarItem2)
     });
     this.navBarGroup1.Name = "navBarGroup1";
     //
     // navBarItem1
     //
     this.navBarItem1.Caption      = "特权用户";
     this.navBarItem1.Name         = "navBarItem1";
     this.navBarItem1.LinkClicked += new DevExpress.XtraNavBar.NavBarLinkEventHandler(this.navBarItem1_LinkClicked);
     //
     // navBarItem2
     //
     this.navBarItem2.Caption      = "普通用户";
     this.navBarItem2.Name         = "navBarItem2";
     this.navBarItem2.LinkClicked += new DevExpress.XtraNavBar.NavBarLinkEventHandler(this.navBarItem2_LinkClicked);
     //
     // navBarGroup2
     //
     this.navBarGroup2.Caption    = "数据显示";
     this.navBarGroup2.GroupStyle = DevExpress.XtraNavBar.NavBarGroupStyle.LargeIconsText;
     this.navBarGroup2.ItemLinks.AddRange(new DevExpress.XtraNavBar.NavBarItemLink[] {
         new DevExpress.XtraNavBar.NavBarItemLink(this.navBarItem3),
         new DevExpress.XtraNavBar.NavBarItemLink(this.navBarItem5),
         new DevExpress.XtraNavBar.NavBarItemLink(this.navBarItem6)
     });
     this.navBarGroup2.Name = "navBarGroup2";
     this.navBarGroup2.TopVisibleLinkIndex = 1;
     this.navBarGroup2.Visible             = false;
     //
     // navBarItem3
     //
     this.navBarItem3.Caption      = "历史数据";
     this.navBarItem3.Name         = "navBarItem3";
     this.navBarItem3.LinkClicked += new DevExpress.XtraNavBar.NavBarLinkEventHandler(this.navBarItem3_LinkClicked);
     //
     // navBarItem5
     //
     this.navBarItem5.Caption      = "历史波形";
     this.navBarItem5.Name         = "navBarItem5";
     this.navBarItem5.LinkClicked += new DevExpress.XtraNavBar.NavBarLinkEventHandler(this.navBarItem5_LinkClicked);
     //
     // navBarItem6
     //
     this.navBarItem6.Caption      = "波形监控";
     this.navBarItem6.Name         = "navBarItem6";
     this.navBarItem6.LinkClicked += new DevExpress.XtraNavBar.NavBarLinkEventHandler(this.navBarItem6_LinkClicked);
     //
     // navBarGroup5
     //
     this.navBarGroup5.Caption    = "实时数据";
     this.navBarGroup5.GroupStyle = DevExpress.XtraNavBar.NavBarGroupStyle.LargeIconsText;
     this.navBarGroup5.ItemLinks.AddRange(new DevExpress.XtraNavBar.NavBarItemLink[] {
         new DevExpress.XtraNavBar.NavBarItemLink(this.navBarItem12)
     });
     this.navBarGroup5.Name = "navBarGroup5";
     //
     // navBarItem12
     //
     this.navBarItem12.Caption      = "实时数据";
     this.navBarItem12.Name         = "navBarItem12";
     this.navBarItem12.LinkClicked += new DevExpress.XtraNavBar.NavBarLinkEventHandler(this.navBarItem12_LinkClicked);
     //
     // navBarGroup4
     //
     this.navBarGroup4.Caption    = "系统功能";
     this.navBarGroup4.GroupStyle = DevExpress.XtraNavBar.NavBarGroupStyle.LargeIconsText;
     this.navBarGroup4.ItemLinks.AddRange(new DevExpress.XtraNavBar.NavBarItemLink[] {
         new DevExpress.XtraNavBar.NavBarItemLink(this.navBarItem14),
         new DevExpress.XtraNavBar.NavBarItemLink(this.navBarItem4),
         new DevExpress.XtraNavBar.NavBarItemLink(this.navBarItem7)
     });
     this.navBarGroup4.Name = "navBarGroup4";
     //
     // navBarItem14
     //
     this.navBarItem14.Caption      = "参数设置";
     this.navBarItem14.Name         = "navBarItem14";
     this.navBarItem14.LinkClicked += new DevExpress.XtraNavBar.NavBarLinkEventHandler(this.navBarItem14_LinkClicked);
     //
     // navBarItem4
     //
     this.navBarItem4.Caption      = "共享资料";
     this.navBarItem4.Name         = "navBarItem4";
     this.navBarItem4.Visible      = false;
     this.navBarItem4.LinkClicked += new DevExpress.XtraNavBar.NavBarLinkEventHandler(this.navBarItem4_LinkClicked);
     //
     // navBarItem7
     //
     this.navBarItem7.Caption      = "操作日志";
     this.navBarItem7.Name         = "navBarItem7";
     this.navBarItem7.LinkClicked += new DevExpress.XtraNavBar.NavBarLinkEventHandler(this.navBarItem7_LinkClicked);
     //
     // panelControl1
     //
     this.panelControl1.Controls.Add(this.button1);
     this.panelControl1.Controls.Add(this.labelControl2);
     this.panelControl1.Controls.Add(this.toggleSwitch1);
     this.panelControl1.Controls.Add(this.labelControl1);
     this.panelControl1.Dock     = System.Windows.Forms.DockStyle.Top;
     this.panelControl1.Location = new System.Drawing.Point(172, 128);
     this.panelControl1.Name     = "panelControl1";
     this.panelControl1.Size     = new System.Drawing.Size(635, 40);
     this.panelControl1.TabIndex = 7;
     //
     // button1
     //
     this.button1.BackColor = System.Drawing.Color.Transparent;
     this.button1.ForeColor = System.Drawing.Color.Transparent;
     this.button1.Location  = new System.Drawing.Point(-1584, 13);
     this.button1.Margin    = new System.Windows.Forms.Padding(3, 2, 3, 2);
     this.button1.Name      = "button1";
     this.button1.Size      = new System.Drawing.Size(66, 18);
     this.button1.TabIndex  = 3;
     this.button1.Text      = "button1";
     this.button1.UseVisualStyleBackColor = false;
     this.button1.Click += new System.EventHandler(this.button1_Click);
     //
     // labelControl2
     //
     this.labelControl2.Appearance.BackColor            = System.Drawing.Color.White;
     this.labelControl2.Appearance.Font                 = new System.Drawing.Font("Tahoma", 9F, System.Drawing.FontStyle.Bold);
     this.labelControl2.Appearance.ForeColor            = System.Drawing.Color.Red;
     this.labelControl2.Appearance.Options.UseBackColor = true;
     this.labelControl2.Appearance.Options.UseFont      = true;
     this.labelControl2.Appearance.Options.UseForeColor = true;
     this.labelControl2.Location = new System.Drawing.Point(3, 21);
     this.labelControl2.Name     = "labelControl2";
     this.labelControl2.Size     = new System.Drawing.Size(65, 14);
     this.labelControl2.TabIndex = 2;
     this.labelControl2.Text     = "连接模块:";
     //
     // toggleSwitch1
     //
     this.toggleSwitch1.Dock                      = System.Windows.Forms.DockStyle.Right;
     this.toggleSwitch1.EditValue                 = true;
     this.toggleSwitch1.Location                  = new System.Drawing.Point(546, 2);
     this.toggleSwitch1.Name                      = "toggleSwitch1";
     this.toggleSwitch1.Properties.AutoHeight     = false;
     this.toggleSwitch1.Properties.BorderStyle    = DevExpress.XtraEditors.Controls.BorderStyles.Default;
     this.toggleSwitch1.Properties.GlyphAlignment = DevExpress.Utils.HorzAlignment.Default;
     this.toggleSwitch1.Properties.OffText        = "关";
     this.toggleSwitch1.Properties.OnText         = "开";
     this.toggleSwitch1.Size                      = new System.Drawing.Size(87, 36);
     this.toggleSwitch1.TabIndex                  = 1;
     this.toggleSwitch1.Toggled                  += new System.EventHandler(this.toggleSwitch1_Toggled);
     //
     // labelControl1
     //
     this.labelControl1.Appearance.BackColor            = System.Drawing.Color.White;
     this.labelControl1.Appearance.Font                 = new System.Drawing.Font("Tahoma", 9F, System.Drawing.FontStyle.Bold);
     this.labelControl1.Appearance.ForeColor            = System.Drawing.Color.Blue;
     this.labelControl1.Appearance.Options.UseBackColor = true;
     this.labelControl1.Appearance.Options.UseFont      = true;
     this.labelControl1.Appearance.Options.UseForeColor = true;
     this.labelControl1.Dock     = System.Windows.Forms.DockStyle.Left;
     this.labelControl1.Location = new System.Drawing.Point(2, 2);
     this.labelControl1.Name     = "labelControl1";
     this.labelControl1.Size     = new System.Drawing.Size(65, 14);
     this.labelControl1.TabIndex = 0;
     this.labelControl1.Text     = "当前模块:";
     //
     // xtraTabbedMdiManager1
     //
     this.xtraTabbedMdiManager1.HeaderButtons         = DevExpress.XtraTab.TabButtons.None;
     this.xtraTabbedMdiManager1.HeaderButtonsShowMode = DevExpress.XtraTab.TabButtonShowMode.Never;
     this.xtraTabbedMdiManager1.MdiParent             = this;
     //
     // barManager2
     //
     this.barManager2.AllowMoveBarOnToolbar   = false;
     this.barManager2.AllowQuickCustomization = false;
     this.barManager2.AllowShowToolbarsPopup  = false;
     this.barManager2.Bars.AddRange(new DevExpress.XtraBars.Bar[] {
         this.bar3,
         this.bar1
     });
     this.barManager2.DockControls.Add(this.barDockControlTop);
     this.barManager2.DockControls.Add(this.barDockControlBottom);
     this.barManager2.DockControls.Add(this.barDockControlLeft);
     this.barManager2.DockControls.Add(this.barDockControlRight);
     this.barManager2.Form = this;
     this.barManager2.HideBarsWhenMerging = false;
     this.barManager2.Items.AddRange(new DevExpress.XtraBars.BarItem[] {
         this.barStaticItem1,
         this.barStaticItem2,
         this.barStaticItem3,
         this.barLargeButtonItem1,
         this.barLargeButtonItem2,
         this.barLargeButtonItem3,
         this.barLargeButtonItem4,
         this.barLargeButtonItem5,
         this.barStaticItem4
     });
     this.barManager2.MainMenu          = this.bar1;
     this.barManager2.MaxItemId         = 20;
     this.barManager2.MdiMenuMergeStyle = DevExpress.XtraBars.BarMdiMenuMergeStyle.Never;
     this.barManager2.StatusBar         = this.bar3;
     //
     // bar3
     //
     this.bar3.BarName      = "Status bar";
     this.bar3.CanDockStyle = DevExpress.XtraBars.BarCanDockStyle.Bottom;
     this.bar3.DockCol      = 0;
     this.bar3.DockRow      = 0;
     this.bar3.DockStyle    = DevExpress.XtraBars.BarDockStyle.Bottom;
     this.bar3.LinksPersistInfo.AddRange(new DevExpress.XtraBars.LinkPersistInfo[] {
         new DevExpress.XtraBars.LinkPersistInfo(this.barStaticItem1),
         new DevExpress.XtraBars.LinkPersistInfo(this.barStaticItem2)
     });
     this.bar3.OptionsBar.AllowQuickCustomization = false;
     this.bar3.OptionsBar.DrawDragBorder          = false;
     this.bar3.OptionsBar.UseWholeRow             = true;
     this.bar3.Text = "Status bar";
     //
     // barStaticItem1
     //
     this.barStaticItem1.Caption = "当前登录用户:";
     this.barStaticItem1.Id      = 0;
     this.barStaticItem1.Name    = "barStaticItem1";
     //
     // barStaticItem2
     //
     this.barStaticItem2.Alignment = DevExpress.XtraBars.BarItemLinkAlignment.Right;
     this.barStaticItem2.Caption   = "系统时间:";
     this.barStaticItem2.Id        = 1;
     this.barStaticItem2.Name      = "barStaticItem2";
     //
     // bar1
     //
     this.bar1.BarName   = "Custom 3";
     this.bar1.DockCol   = 0;
     this.bar1.DockRow   = 0;
     this.bar1.DockStyle = DevExpress.XtraBars.BarDockStyle.Top;
     this.bar1.LinksPersistInfo.AddRange(new DevExpress.XtraBars.LinkPersistInfo[] {
         new DevExpress.XtraBars.LinkPersistInfo(DevExpress.XtraBars.BarLinkUserDefines.PaintStyle, this.barLargeButtonItem2, DevExpress.XtraBars.BarItemPaintStyle.CaptionGlyph),
         new DevExpress.XtraBars.LinkPersistInfo(DevExpress.XtraBars.BarLinkUserDefines.PaintStyle, this.barLargeButtonItem3, "", true, true, true, 0, null, DevExpress.XtraBars.BarItemPaintStyle.CaptionGlyph),
         new DevExpress.XtraBars.LinkPersistInfo(((DevExpress.XtraBars.BarLinkUserDefines)((DevExpress.XtraBars.BarLinkUserDefines.Caption | DevExpress.XtraBars.BarLinkUserDefines.PaintStyle))), this.barStaticItem4, "整车考核设故系统", true, true, true, 0, null, DevExpress.XtraBars.BarItemPaintStyle.Standard),
         new DevExpress.XtraBars.LinkPersistInfo(this.barStaticItem3),
         new DevExpress.XtraBars.LinkPersistInfo(this.barLargeButtonItem4, true),
         new DevExpress.XtraBars.LinkPersistInfo(this.barLargeButtonItem5, true)
     });
     this.bar1.OptionsBar.DrawDragBorder = false;
     this.bar1.OptionsBar.MultiLine      = true;
     this.bar1.OptionsBar.UseWholeRow    = true;
     this.bar1.Text = "Custom 3";
     //
     // barLargeButtonItem2
     //
     this.barLargeButtonItem2.Caption    = "返回";
     this.barLargeButtonItem2.Id         = 6;
     this.barLargeButtonItem2.Name       = "barLargeButtonItem2";
     this.barLargeButtonItem2.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.barLargeButtonItem2_ItemClick);
     //
     // barLargeButtonItem3
     //
     this.barLargeButtonItem3.Caption    = "模块连接";
     this.barLargeButtonItem3.Id         = 7;
     this.barLargeButtonItem3.Name       = "barLargeButtonItem3";
     this.barLargeButtonItem3.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.barLargeButtonItem3_ItemClick);
     //
     // barStaticItem4
     //
     this.barStaticItem4.Caption = "整车考核设故系统";
     this.barStaticItem4.Id      = 19;
     this.barStaticItem4.ItemAppearance.Normal.BackColor              = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(128)))));
     this.barStaticItem4.ItemAppearance.Normal.Font                   = new System.Drawing.Font("Tahoma", 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.barStaticItem4.ItemAppearance.Normal.ForeColor              = System.Drawing.Color.Orange;
     this.barStaticItem4.ItemAppearance.Normal.Options.UseBackColor   = true;
     this.barStaticItem4.ItemAppearance.Normal.Options.UseBorderColor = true;
     this.barStaticItem4.ItemAppearance.Normal.Options.UseFont        = true;
     this.barStaticItem4.ItemAppearance.Normal.Options.UseForeColor   = true;
     this.barStaticItem4.Name = "barStaticItem4";
     //
     // barStaticItem3
     //
     this.barStaticItem3.Alignment = DevExpress.XtraBars.BarItemLinkAlignment.Right;
     this.barStaticItem3.Caption   = "当前模式:";
     this.barStaticItem3.Id        = 4;
     this.barStaticItem3.Name      = "barStaticItem3";
     //
     // barLargeButtonItem4
     //
     this.barLargeButtonItem4.Caption    = "最小化";
     this.barLargeButtonItem4.Id         = 10;
     this.barLargeButtonItem4.Name       = "barLargeButtonItem4";
     this.barLargeButtonItem4.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.barLargeButtonItem4_ItemClick);
     //
     // barLargeButtonItem5
     //
     this.barLargeButtonItem5.Caption    = "关闭";
     this.barLargeButtonItem5.Id         = 11;
     this.barLargeButtonItem5.Name       = "barLargeButtonItem5";
     this.barLargeButtonItem5.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.barLargeButtonItem5_ItemClick);
     //
     // barDockControlTop
     //
     this.barDockControlTop.CausesValidation = false;
     this.barDockControlTop.Dock             = System.Windows.Forms.DockStyle.Top;
     this.barDockControlTop.Location         = new System.Drawing.Point(0, 0);
     this.barDockControlTop.Manager          = this.barManager2;
     this.barDockControlTop.Size             = new System.Drawing.Size(807, 30);
     //
     // barDockControlBottom
     //
     this.barDockControlBottom.CausesValidation = false;
     this.barDockControlBottom.Dock             = System.Windows.Forms.DockStyle.Bottom;
     this.barDockControlBottom.Location         = new System.Drawing.Point(0, 566);
     this.barDockControlBottom.Manager          = this.barManager2;
     this.barDockControlBottom.Size             = new System.Drawing.Size(807, 27);
     //
     // barDockControlLeft
     //
     this.barDockControlLeft.CausesValidation = false;
     this.barDockControlLeft.Dock             = System.Windows.Forms.DockStyle.Left;
     this.barDockControlLeft.Location         = new System.Drawing.Point(0, 30);
     this.barDockControlLeft.Manager          = this.barManager2;
     this.barDockControlLeft.Size             = new System.Drawing.Size(0, 536);
     //
     // barDockControlRight
     //
     this.barDockControlRight.CausesValidation = false;
     this.barDockControlRight.Dock             = System.Windows.Forms.DockStyle.Right;
     this.barDockControlRight.Location         = new System.Drawing.Point(807, 30);
     this.barDockControlRight.Manager          = this.barManager2;
     this.barDockControlRight.Size             = new System.Drawing.Size(0, 536);
     //
     // barLargeButtonItem1
     //
     this.barLargeButtonItem1.Caption = "返回";
     this.barLargeButtonItem1.Id      = 5;
     this.barLargeButtonItem1.Name    = "barLargeButtonItem1";
     //
     // PCschematic
     //
     this.PCschematic.Controls.Add(this.panelControl5);
     this.PCschematic.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.PCschematic.Location = new System.Drawing.Point(172, 168);
     this.PCschematic.Name     = "PCschematic";
     this.PCschematic.Size     = new System.Drawing.Size(635, 398);
     this.PCschematic.TabIndex = 12;
     //
     // panelControl5
     //
     this.panelControl5.Controls.Add(this.PEschematic);
     this.panelControl5.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.panelControl5.Location = new System.Drawing.Point(2, 2);
     this.panelControl5.Name     = "panelControl5";
     this.panelControl5.Size     = new System.Drawing.Size(631, 394);
     this.panelControl5.TabIndex = 2;
     //
     // PEschematic
     //
     this.PEschematic.Dock        = System.Windows.Forms.DockStyle.Fill;
     this.PEschematic.Location    = new System.Drawing.Point(2, 2);
     this.PEschematic.MenuManager = this.barManager2;
     this.PEschematic.Name        = "PEschematic";
     this.PEschematic.Properties.Appearance.BackColor            = System.Drawing.Color.White;
     this.PEschematic.Properties.Appearance.Options.UseBackColor = true;
     this.PEschematic.Properties.ShowMenu = false;
     this.PEschematic.Properties.SizeMode = DevExpress.XtraEditors.Controls.PictureSizeMode.Stretch;
     this.PEschematic.Size     = new System.Drawing.Size(627, 390);
     this.PEschematic.TabIndex = 0;
     //
     // imageCollection1
     //
     this.imageCollection1.ImageStream = ((DevExpress.Utils.ImageCollectionStreamer)(resources.GetObject("imageCollection1.ImageStream")));
     //
     // timer1
     //
     this.timer1.Interval = 1000;
     this.timer1.Tick    += new System.EventHandler(this.timer1_Tick);
     //
     // FormMain
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize          = new System.Drawing.Size(807, 593);
     this.Controls.Add(this.PCschematic);
     this.Controls.Add(this.panelControl1);
     this.Controls.Add(this.navBarControl1);
     this.Controls.Add(this.panelControl2);
     this.Controls.Add(this.barDockControlLeft);
     this.Controls.Add(this.barDockControlRight);
     this.Controls.Add(this.barDockControlBottom);
     this.Controls.Add(this.barDockControlTop);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
     this.IsMdiContainer  = true;
     this.Name            = "FormMain";
     this.Text            = "整车考核设故系统";
     this.WindowState     = System.Windows.Forms.FormWindowState.Maximized;
     this.Load           += new System.EventHandler(this.FormMain_Load);
     ((System.ComponentModel.ISupportInitialize)(this.panelControl2)).EndInit();
     this.panelControl2.ResumeLayout(false);
     this.panelControl2.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.ribbonControl1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.repositoryItemGridLookUpEdit1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.repositoryItemGridLookUpEdit1View)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.repositoryItemSearchLookUpEdit1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.repositoryItemSearchLookUpEdit1View)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.navBarControl1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.panelControl1)).EndInit();
     this.panelControl1.ResumeLayout(false);
     this.panelControl1.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.toggleSwitch1.Properties)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.xtraTabbedMdiManager1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.barManager2)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.PCschematic)).EndInit();
     this.PCschematic.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.panelControl5)).EndInit();
     this.panelControl5.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.PEschematic.Properties)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.imageCollection1)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Ejemplo n.º 16
0
        private void AddPages()
        {
            // 约定菜单共有3级,第一级为大的类别,第二级为小模块分组,第三级为具体的菜单
            //List<MenuNodeInfo> menuList = BLLFactory<Menus>.Instance.GetTree(Portal.gc.SYSTEMTYPEID);
            string firguid    = "7b5ea040-563b-40aa-a560-170ac9374f56";
            string secguid    = "4314381b-fbff-43cf-b727-f72d53e21264";
            string thirdguid1 = "402d58c4-d536-4213-8d35-cbf5164ed8eb";
            string thirdguid2 = "8ff8c148-3675-409d-b80d-22043edcc151";

            List <MenuNodeInfo> menuList          = new List <MenuNodeInfo>();
            MenuNodeInfo        firstmenuNodeInfo = new MenuNodeInfo();

            firstmenuNodeInfo.Pgid           = "-1";
            firstmenuNodeInfo.Gid            = firguid;
            firstmenuNodeInfo.CreatorId      = 1;
            firstmenuNodeInfo.CreatorTime    = DateTime.Now;
            firstmenuNodeInfo.Icon           = @"images\MenuIcon\020.ico";
            firstmenuNodeInfo.IsDelete       = 0;
            firstmenuNodeInfo.IsVisable      = 1;
            firstmenuNodeInfo.LastUpdateTime = DateTime.Now;
            firstmenuNodeInfo.Name           = "主菜单";
            firstmenuNodeInfo.Seq            = "1";
            firstmenuNodeInfo.WinformClass   = "#";
            menuList.Add(firstmenuNodeInfo);

            List <MenuNodeInfo> secondmenuList     = new List <MenuNodeInfo>();
            MenuNodeInfo        secondmenuNodeInfo = new MenuNodeInfo();

            secondmenuNodeInfo.Pgid           = firguid;
            secondmenuNodeInfo.Gid            = firguid;
            secondmenuNodeInfo.CreatorId      = 1;
            secondmenuNodeInfo.CreatorTime    = DateTime.Now;
            secondmenuNodeInfo.Icon           = @"images\MenuIcon\020.ico";
            secondmenuNodeInfo.IsDelete       = 0;
            secondmenuNodeInfo.IsVisable      = 1;
            secondmenuNodeInfo.LastUpdateTime = DateTime.Now;
            secondmenuNodeInfo.Name           = "代销数据工具";
            secondmenuNodeInfo.Seq            = "1";
            secondmenuNodeInfo.WinformClass   = "";
            secondmenuList.Add(secondmenuNodeInfo);
            firstmenuNodeInfo.Children = secondmenuList;

            List <MenuNodeInfo> thirdmenuList      = new List <MenuNodeInfo>();
            MenuNodeInfo        third1menuNodeInfo = new MenuNodeInfo();

            third1menuNodeInfo.Pgid           = firguid;
            third1menuNodeInfo.Gid            = firguid;
            third1menuNodeInfo.CreatorId      = 1;
            third1menuNodeInfo.CreatorTime    = DateTime.Now;
            third1menuNodeInfo.Icon           = @"images\MenuIcon\009.ico";
            third1menuNodeInfo.IsDelete       = 0;
            third1menuNodeInfo.IsVisable      = 1;
            third1menuNodeInfo.LastUpdateTime = DateTime.Now;
            third1menuNodeInfo.Name           = "配置代销数据";
            third1menuNodeInfo.Seq            = "1";
            third1menuNodeInfo.WinformClass   = "JCodes.Framework.TestWinForm.FrmConsignment;JCodes.Framework.TestWinForm.exe";
            thirdmenuList.Add(third1menuNodeInfo);

            MenuNodeInfo third2menuNodeInfo = new MenuNodeInfo();

            third2menuNodeInfo.Pgid           = firguid;
            third2menuNodeInfo.Gid            = firguid;
            third2menuNodeInfo.CreatorId      = 1;
            third2menuNodeInfo.CreatorTime    = DateTime.Now;
            third2menuNodeInfo.Icon           = @"images\MenuIcon\028.ico";
            third2menuNodeInfo.IsDelete       = 0;
            third2menuNodeInfo.IsVisable      = 1;
            third2menuNodeInfo.LastUpdateTime = DateTime.Now;
            third2menuNodeInfo.Name           = "代销处理";
            third2menuNodeInfo.Seq            = "2";
            third2menuNodeInfo.WinformClass   = "JCodes.Framework.TestWinForm.ZsDaixiao.FrmDealConsignment;JCodes.Framework.TestWinForm.exe";
            thirdmenuList.Add(third2menuNodeInfo);
            secondmenuNodeInfo.Children = thirdmenuList;

            /*List<MenuNodeInfo> secondmenuList = new List<MenuNodeInfo>();
             * MenuNodeInfo secondmenuNodeInfo = new MenuNodeInfo();
             * secondmenuNodeInfo.Pgid = firguid;
             * secondmenuNodeInfo.Gid = firguid;
             * secondmenuNodeInfo.CreatorId = 1;
             * secondmenuNodeInfo.CreatorTime = DateTime.Now;
             * secondmenuNodeInfo.Icon = @"images\MenuIcon\020.ico";
             * secondmenuNodeInfo.IsDelete = 0;
             * secondmenuNodeInfo.IsVisable = 1;
             * secondmenuNodeInfo.LastUpdateTime = DateTime.Now;
             * secondmenuNodeInfo.Name = "浩天网络";
             * secondmenuNodeInfo.Seq = "1";
             * secondmenuNodeInfo.WinformClass = "";
             * secondmenuList.Add(secondmenuNodeInfo);
             * firstmenuNodeInfo.Children = secondmenuList;
             *
             * List<MenuNodeInfo> thirdmenuList = new List<MenuNodeInfo>();
             * MenuNodeInfo third1menuNodeInfo = new MenuNodeInfo();
             * third1menuNodeInfo.Pgid = firguid;
             * third1menuNodeInfo.Gid = firguid;
             * third1menuNodeInfo.CreatorId = 1;
             * third1menuNodeInfo.CreatorTime = DateTime.Now;
             * third1menuNodeInfo.Icon = @"images\MenuIcon\009.ico";
             * third1menuNodeInfo.IsDelete = 0;
             * third1menuNodeInfo.IsVisable = 1;
             * third1menuNodeInfo.LastUpdateTime = DateTime.Now;
             * third1menuNodeInfo.Name = "XLS数据处理";
             * third1menuNodeInfo.Seq = "1";
             * third1menuNodeInfo.WinformClass = "JCodes.Framework.TestWinForm.Haotian.FrmHackVote;JCodes.Framework.TestWinForm.exe";
             * thirdmenuList.Add(third1menuNodeInfo);
             * secondmenuNodeInfo.Children = thirdmenuList;*/

            if (menuList.Count == 0)
            {
                return;
            }

            int i = 0;

            foreach (MenuNodeInfo firstInfo in menuList)
            {
                //添加页面(一级菜单)
                RibbonPage page = new RibbonPage();
                page.Text = firstInfo.Name;
                page.Name = firstInfo.Gid;
                this.ribbonControl.Pages.Insert(i++, page);

                if (firstInfo.Children.Count == 0)
                {
                    continue;
                }
                foreach (MenuNodeInfo secondInfo in firstInfo.Children)
                {
                    //添加RibbonPageGroup(二级菜单)
                    RibbonPageGroup group = new RibbonPageGroup();
                    group.Text       = secondInfo.Name;
                    group.Name       = secondInfo.Gid;
                    group.Glyph      = LoadIcon(secondInfo.Icon);
                    group.ImageIndex = 0;
                    page.Groups.Add(group);

                    if (secondInfo.Children.Count == 0)
                    {
                        continue;
                    }
                    foreach (MenuNodeInfo thirdInfo in secondInfo.Children)
                    {
                        // 判断 WinformType 如果是 RgbiSkins 则表示皮肤
                        if (thirdInfo.WinformClass == Const.RgbiSkins)
                        {
                            RibbonGalleryBarItem rgbi = new RibbonGalleryBarItem();
                            var galleryItemGroup1     = new GalleryItemGroup();
                            rgbi.Name    = thirdInfo.Gid;
                            rgbi.Caption = thirdInfo.Name;
                            rgbi.Gallery.Groups.AddRange(new DevExpress.XtraBars.Ribbon.GalleryItemGroup[] { galleryItemGroup1 });
                            group.ItemLinks.Add(rgbi);
                            DevExpress.XtraBars.Helpers.SkinHelper.InitSkinGallery(rgbi, true);
                        }
                        else
                        {
                            //添加功能按钮(三级菜单)
                            BarButtonItem button = new BarButtonItem();
                            button.PaintStyle = BarItemPaintStyle.CaptionGlyph;
                            button.LargeGlyph = LoadIcon(thirdInfo.Icon);
                            button.Glyph      = LoadIcon(thirdInfo.Icon);

                            button.Name       = thirdInfo.Gid;
                            button.Caption    = thirdInfo.Name;
                            button.Tag        = thirdInfo.WinformClass;
                            button.ItemClick += (sender, e) =>
                            {
                                if (button.Tag != null && !string.IsNullOrEmpty(button.Tag.ToString()))
                                {
                                    Portal.gc._waitBeforeLogin = new WaitDialogForm("正则加载 " + button.Caption + " 窗体中...", "加载窗体");
                                    LoadPlugInForm(button.Tag.ToString());
                                    if (Portal.gc._waitBeforeLogin != null)
                                    {
                                        Portal.gc._waitBeforeLogin.Invoke((EventHandler) delegate
                                        {
                                            if (Portal.gc._waitBeforeLogin != null)
                                            {
                                                Portal.gc._waitBeforeLogin.Close(); Portal.gc._waitBeforeLogin = null;
                                            }
                                        });
                                    }
                                }
                                else
                                {
                                    MessageDxUtil.ShowTips(button.Caption);
                                }
                            };
                            if (thirdInfo.WinformClass.Contains(Const.BeginGroup))
                            {
                                group.ItemLinks.Add(button, true);
                            }
                            else
                            {
                                group.ItemLinks.Add(button);
                            }
                        }
                    }
                }
            }
        }
Ejemplo n.º 17
0
        public void AddPages()
        {
            // 约定菜单共有3级,第一级为大的类别,第二级为小模块分组,第三级为具体的菜单
            // Portal.gc.SystemType = WareMis
            List <MenuNodeInfo> menuList = BLLFactory <Menus> .Instance.GetTree(Portal.gc.SystemType);

            if (menuList.Count == 0)
            {
                return;
            }

            int i = 0;

            foreach (MenuNodeInfo firstInfo in menuList)
            {
                //如果没有菜单的权限,则跳过
                if (!Portal.gc.HasFunction(firstInfo.FunctionId))
                {
                    continue;
                }

                //添加页面(一级菜单)
                RibbonPage page = new RibbonPage();
                page.Text = firstInfo.Name;
                page.Name = firstInfo.ID;
                this.control.Pages.Insert(i++, page);

                if (firstInfo.Children.Count == 0)
                {
                    continue;
                }
                foreach (MenuNodeInfo secondInfo in firstInfo.Children)
                {
                    //如果没有菜单的权限,则跳过
                    if (!Portal.gc.HasFunction(secondInfo.FunctionId))
                    {
                        continue;
                    }

                    //添加RibbonPageGroup(二级菜单)
                    RibbonPageGroup group = new RibbonPageGroup();
                    group.Text = secondInfo.Name;
                    group.Name = secondInfo.ID;
                    //group.Glyph = LoadIcon(secondInfo.Icon);
                    //group.ImageIndex = 5;
                    page.Groups.Add(group);

                    if (secondInfo.Children.Count == 0)
                    {
                        continue;
                    }
                    foreach (MenuNodeInfo thirdInfo in secondInfo.Children)
                    {
                        //如果没有菜单的权限,则跳过
                        if (!Portal.gc.HasFunction(thirdInfo.FunctionId))
                        {
                            continue;
                        }

                        // 判断 WinformType 如果是 RgbiSkins 则表示皮肤
                        if (thirdInfo.WinformType == Const.RgbiSkins)
                        {
                            RibbonGalleryBarItem rgbi = new RibbonGalleryBarItem();
                            var galleryItemGroup1     = new GalleryItemGroup();
                            rgbi.Name    = thirdInfo.ID;
                            rgbi.Caption = thirdInfo.Name;
                            rgbi.Gallery.Groups.AddRange(new DevExpress.XtraBars.Ribbon.GalleryItemGroup[] {
                                galleryItemGroup1
                            });
                            group.ItemLinks.Add(rgbi);
                            DevExpress.XtraBars.Helpers.SkinHelper.InitSkinGallery(rgbi, true);
                        }
                        else
                        {
                            //添加功能按钮(三级菜单)
                            BarButtonItem button = new BarButtonItem();
                            button.PaintStyle = BarItemPaintStyle.CaptionGlyph;
                            button.LargeGlyph = LoadIcon(thirdInfo.Icon);
                            button.Glyph      = LoadIcon(thirdInfo.Icon);

                            button.Name       = thirdInfo.ID;
                            button.Caption    = thirdInfo.Name;
                            button.Tag        = thirdInfo.WinformType;
                            button.ItemClick += (sender, e) =>
                            {
                                if (button.Tag != null && !string.IsNullOrEmpty(button.Tag.ToString()))
                                {
                                    Portal.gc._waitBeforeLogin = new WaitDialogForm("正则加载 " + button.Caption + " 窗体中...", "加载窗体");
                                    LoadPlugInForm(button.Tag.ToString());
                                    if (Portal.gc._waitBeforeLogin != null)
                                    {
                                        Portal.gc._waitBeforeLogin.Invoke((EventHandler) delegate
                                        {
                                            if (Portal.gc._waitBeforeLogin != null)
                                            {
                                                Portal.gc._waitBeforeLogin.Close(); Portal.gc._waitBeforeLogin = null;
                                            }
                                        });
                                    }
                                }
                                else
                                {
                                    MessageDxUtil.ShowTips(button.Caption);
                                }
                            };
                            if (thirdInfo.WinformType.Contains(Const.BeginGroup))
                            {
                                group.ItemLinks.Add(button, true);
                            }
                            else
                            {
                                group.ItemLinks.Add(button);
                            }
                        }
                    }
                }
            }
        }
Ejemplo n.º 18
0
 public static void InitThemeGallery(RibbonGalleryBarItem galleryBarItem)
 {
     InitThemeGallery(galleryBarItem, true);
 }
Ejemplo n.º 19
0
 public static void InitThemeGallery(RibbonGalleryBarItem galleryBarItem, bool _UseLargeIcon = true)
 {
     InitThemeGallery(galleryBarItem.Gallery, _UseLargeIcon);
 }
Ejemplo n.º 20
0
 public void SynchronizeGalleryItems(RibbonGalleryBarItem gallery)
 {
     this.gallery = gallery;
     SetItemCheck(gallery.Gallery.GetAllItems());
     gallery.GalleryItemCheckedChanged += new GalleryItemEventHandler(gallery_GalleryItemCheckedChanged);
 }
Ejemplo n.º 21
0
        public void Initialize(object element)
        {
            RibbonGalleryBarItem skinGalleryBarItem = (RibbonGalleryBarItem)element;

            SkinHelper.InitSkinGallery(skinGalleryBarItem, true);
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="RibbonGalleryDynamicUIAdapter"/> class.
 /// </summary>
 /// <param name="ribbonGallery">The ribbon gallery.</param>
 /// <param name="rootWorkItem">The root work item.</param>
 public RibbonGalleryDynamicUIAdapter(RibbonGalleryBarItem ribbonGallery, WorkItem workItem)
     : base(ribbonGallery, workItem)
 {
 }
Ejemplo n.º 23
0
 public static void InitStyle(RibbonGalleryBarItem btns)
 {
     SkinHelper.InitSkinGallery(btns);
     DevExpress.LookAndFeel.UserLookAndFeel.Default.StyleChanged += new EventHandler(Default_StyleChanged);
 }
Ejemplo n.º 24
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RibbonGalleryDynamicUIAdapter"/> class.
 /// </summary>
 /// <param name="ribbonGallery">The ribbon gallery.</param>
 /// <param name="rootWorkItem">The root work item.</param>
 public RibbonGalleryDynamicUIAdapter(RibbonGalleryBarItem ribbonGallery, WorkItem workItem)
     : base(ribbonGallery, workItem)
 {
 }
Ejemplo n.º 25
0
		private void InitializeComponent()
		{
            DevExpress.XtraBars.Ribbon.GalleryItemGroup galleryItemGroup1 = new DevExpress.XtraBars.Ribbon.GalleryItemGroup();
            DevExpress.XtraBars.Ribbon.GalleryItemGroup galleryItemGroup2 = new DevExpress.XtraBars.Ribbon.GalleryItemGroup();
            DevExpress.XtraBars.Ribbon.GalleryItemGroup galleryItemGroup3 = new DevExpress.XtraBars.Ribbon.GalleryItemGroup();
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm));
            this.ribbonControl1 = new DevExpress.XtraBars.Ribbon.RibbonControl();
            this.btnNewTerminal = new DevExpress.XtraBars.BarButtonItem();
            this.btnNewTerminal2 = new DevExpress.XtraBars.BarButtonItem();
            this.btnNewTerminal3 = new DevExpress.XtraBars.BarButtonItem();
            this.btnStart = new DevExpress.XtraBars.BarButtonItem();
            this.btnStop = new DevExpress.XtraBars.BarButtonItem();
            this.btnClear = new DevExpress.XtraBars.BarButtonItem();
            this.txtUsername = new DevExpress.XtraBars.BarEditItem();
            this.repositoryItemTextEdit1 = new DevExpress.XtraEditors.Repository.RepositoryItemTextEdit();
            this.txtPassword = new DevExpress.XtraBars.BarEditItem();
            this.repositoryItemTextEdit2 = new DevExpress.XtraEditors.Repository.RepositoryItemTextEdit();
            this.btnLogin = new DevExpress.XtraBars.BarButtonItem();
            this.btnChangePassword = new DevExpress.XtraBars.BarButtonItem();
            this.btnLogout = new DevExpress.XtraBars.BarButtonItem();
            this.lblSystemTime = new DevExpress.XtraBars.BarStaticItem();
            this.lblTotalTransaction = new DevExpress.XtraBars.BarStaticItem();
            this.lblTotalTerminal = new DevExpress.XtraBars.BarStaticItem();
            this.barEditItem1 = new DevExpress.XtraBars.BarEditItem();
            this.repositoryItemPopupContainerEdit1 = new DevExpress.XtraEditors.Repository.RepositoryItemPopupContainerEdit();
            this.ribbonGalleryBarItem1 = new DevExpress.XtraBars.RibbonGalleryBarItem();
            this.barButtonGroup1 = new DevExpress.XtraBars.BarButtonGroup();
            this.barButtonGroup2 = new DevExpress.XtraBars.BarButtonGroup();
            this.skinGalleryBarItem = new DevExpress.XtraBars.RibbonGalleryBarItem();
            this.ribbonPage1 = new DevExpress.XtraBars.Ribbon.RibbonPage();
            this.ribbonPageGroup3 = new DevExpress.XtraBars.Ribbon.RibbonPageGroup();
            this.ribbonPageGroup1 = new DevExpress.XtraBars.Ribbon.RibbonPageGroup();
            this.ribbonPageGroup2 = new DevExpress.XtraBars.Ribbon.RibbonPageGroup();
            this.ribbonPageGroup5 = new DevExpress.XtraBars.Ribbon.RibbonPageGroup();
            this.ribbonStatusBar1 = new DevExpress.XtraBars.Ribbon.RibbonStatusBar();
            this.splitContainerControl1 = new DevExpress.XtraEditors.SplitContainerControl();
            this.xtraTabControl1 = new DevExpress.XtraTab.XtraTabControl();
            this.xtraTabPage1 = new DevExpress.XtraTab.XtraTabPage();
            this.grdTransaction = new DevExpress.XtraGrid.GridControl();
            this.gridView2 = new DevExpress.XtraGrid.Views.Grid.GridView();
            this.gridColumn1 = new DevExpress.XtraGrid.Columns.GridColumn();
            this.gridColumn8 = new DevExpress.XtraGrid.Columns.GridColumn();
            this.gridColumn2 = new DevExpress.XtraGrid.Columns.GridColumn();
            this.gridColumn3 = new DevExpress.XtraGrid.Columns.GridColumn();
            this.gridColumn6 = new DevExpress.XtraGrid.Columns.GridColumn();
            this.gridColumn4 = new DevExpress.XtraGrid.Columns.GridColumn();
            this.gridColumn5 = new DevExpress.XtraGrid.Columns.GridColumn();
            this.gridColumn7 = new DevExpress.XtraGrid.Columns.GridColumn();
            this.gridColumn10 = new DevExpress.XtraGrid.Columns.GridColumn();
            this.gridColumn11 = new DevExpress.XtraGrid.Columns.GridColumn();
            this.gridColumn12 = new DevExpress.XtraGrid.Columns.GridColumn();
            this.gridColumn9 = new DevExpress.XtraGrid.Columns.GridColumn();
            this.gridColumn14 = new DevExpress.XtraGrid.Columns.GridColumn();
            this.gridColumn15 = new DevExpress.XtraGrid.Columns.GridColumn();
            this.gridColumn13 = new DevExpress.XtraGrid.Columns.GridColumn();
            this.panelControl3 = new DevExpress.XtraEditors.PanelControl();
            this.panelControl4 = new DevExpress.XtraEditors.PanelControl();
            this.xtraTabPage3 = new DevExpress.XtraTab.XtraTabPage();
            this.btnStatement = new DevExpress.XtraEditors.SimpleButton();
            this.btnBetList = new DevExpress.XtraEditors.SimpleButton();
            this.cbeSignatureTemplate = new DevExpress.XtraEditors.ComboBoxEdit();
            this.panelControl1 = new DevExpress.XtraEditors.PanelControl();
            this.webBrowser2 = new System.Windows.Forms.WebBrowser();
            this.splitter1 = new System.Windows.Forms.Splitter();
            this.webBrowser1 = new System.Windows.Forms.WebBrowser();
            this.xtraTabPage5 = new DevExpress.XtraTab.XtraTabPage();
            this.panelControl2 = new DevExpress.XtraEditors.PanelControl();
            this.textEdit4 = new DevExpress.XtraEditors.MemoEdit();
            this.chkSCloud = new DevExpress.XtraEditors.CheckEdit();
            this.simpleButton2 = new DevExpress.XtraEditors.SimpleButton();
            this.textEdit3 = new DevExpress.XtraEditors.TextEdit();
            this.textEdit2 = new DevExpress.XtraEditors.TextEdit();
            this.textEdit1 = new DevExpress.XtraEditors.TextEdit();
            this.simpleButton1 = new DevExpress.XtraEditors.SimpleButton();
            this.label4 = new System.Windows.Forms.Label();
            this.label3 = new System.Windows.Forms.Label();
            this.label2 = new System.Windows.Forms.Label();
            this.label1 = new System.Windows.Forms.Label();
            this.chkRCloud = new DevExpress.XtraEditors.CheckEdit();
            this.btnSignMeIn = new DevExpress.XtraEditors.SimpleButton();
            this.txtServerIP = new DevExpress.XtraEditors.TextEdit();
            this.txtServerUserName = new DevExpress.XtraEditors.TextEdit();
            this.txtServerPassword = new DevExpress.XtraEditors.TextEdit();
            this.pictureEdit1 = new DevExpress.XtraEditors.PictureEdit();
            this.xtraTabControl2 = new DevExpress.XtraTab.XtraTabControl();
            this.xtraTabPage2 = new DevExpress.XtraTab.XtraTabPage();
            this.xtraTabPage4 = new DevExpress.XtraTab.XtraTabPage();
            this.ribbonPageGroup4 = new DevExpress.XtraBars.Ribbon.RibbonPageGroup();
            ((System.ComponentModel.ISupportInitialize)(this.ribbonControl1)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.repositoryItemTextEdit1)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.repositoryItemTextEdit2)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.repositoryItemPopupContainerEdit1)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.splitContainerControl1)).BeginInit();
            this.splitContainerControl1.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.xtraTabControl1)).BeginInit();
            this.xtraTabControl1.SuspendLayout();
            this.xtraTabPage1.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.grdTransaction)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.gridView2)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.panelControl3)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.panelControl4)).BeginInit();
            this.xtraTabPage3.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.cbeSignatureTemplate.Properties)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.panelControl1)).BeginInit();
            this.panelControl1.SuspendLayout();
            this.xtraTabPage5.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.panelControl2)).BeginInit();
            this.panelControl2.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.textEdit4.Properties)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.chkSCloud.Properties)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.textEdit3.Properties)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.textEdit2.Properties)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.textEdit1.Properties)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.chkRCloud.Properties)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.txtServerIP.Properties)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.txtServerUserName.Properties)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.txtServerPassword.Properties)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.pictureEdit1.Properties)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.xtraTabControl2)).BeginInit();
            this.xtraTabControl2.SuspendLayout();
            this.SuspendLayout();
            // 
            // ribbonControl1
            // 
            this.ribbonControl1.ApplicationButtonText = null;
            // 
            // 
            // 
            this.ribbonControl1.ExpandCollapseItem.Id = 0;
            this.ribbonControl1.ExpandCollapseItem.Name = "";
            this.ribbonControl1.Items.AddRange(new DevExpress.XtraBars.BarItem[] {
            this.ribbonControl1.ExpandCollapseItem,
            this.btnNewTerminal,
            this.btnNewTerminal2,
            this.btnNewTerminal3,
            this.btnStart,
            this.btnStop,
            this.btnClear,
            this.txtUsername,
            this.txtPassword,
            this.btnLogin,
            this.btnChangePassword,
            this.btnLogout,
            this.lblSystemTime,
            this.lblTotalTransaction,
            this.lblTotalTerminal,
            this.barEditItem1,
            this.ribbonGalleryBarItem1,
            this.barButtonGroup1,
            this.barButtonGroup2,
            this.skinGalleryBarItem});
            this.ribbonControl1.Location = new System.Drawing.Point(0, 0);
            this.ribbonControl1.MaxItemId = 22;
            this.ribbonControl1.Name = "ribbonControl1";
            this.ribbonControl1.Pages.AddRange(new DevExpress.XtraBars.Ribbon.RibbonPage[] {
            this.ribbonPage1});
            this.ribbonControl1.RepositoryItems.AddRange(new DevExpress.XtraEditors.Repository.RepositoryItem[] {
            this.repositoryItemTextEdit1,
            this.repositoryItemTextEdit2,
            this.repositoryItemPopupContainerEdit1});
            this.ribbonControl1.RibbonStyle = DevExpress.XtraBars.Ribbon.RibbonControlStyle.Office2010;
            this.ribbonControl1.SelectedPage = this.ribbonPage1;
            this.ribbonControl1.ShowExpandCollapseButton = DevExpress.Utils.DefaultBoolean.False;
            this.ribbonControl1.ShowPageHeadersMode = DevExpress.XtraBars.Ribbon.ShowPageHeadersMode.Hide;
            this.ribbonControl1.ShowToolbarCustomizeItem = false;
            this.ribbonControl1.Size = new System.Drawing.Size(1056, 125);
            this.ribbonControl1.StatusBar = this.ribbonStatusBar1;
            this.ribbonControl1.Toolbar.ShowCustomizeItem = false;
            // 
            // btnNewTerminal
            // 
            this.btnNewTerminal.Caption = "ibet-3in1";
            this.btnNewTerminal.Enabled = false;
            this.btnNewTerminal.Id = 1;
            this.btnNewTerminal.LargeGlyph = global::iBet.App.Properties.Resources.i4;
            this.btnNewTerminal.Name = "btnNewTerminal";
            this.btnNewTerminal.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.btnNewTerminal_ItemClick);
            // 
            // btnNewTerminal2
            // 
            this.btnNewTerminal2.Caption = "ibet-sbo";
            this.btnNewTerminal2.Enabled = false;
            this.btnNewTerminal2.Id = 13;
            this.btnNewTerminal2.LargeGlyph = global::iBet.App.Properties.Resources.i9;
            this.btnNewTerminal2.Name = "btnNewTerminal2";
            this.btnNewTerminal2.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.btnNewTerminal2_ItemClick);
            // 
            // btnNewTerminal3
            // 
            this.btnNewTerminal3.Caption = "Follow Sub";
            this.btnNewTerminal3.Enabled = false;
            this.btnNewTerminal3.Id = 14;
            this.btnNewTerminal3.LargeGlyph = global::iBet.App.Properties.Resources.i10;
            this.btnNewTerminal3.Name = "btnNewTerminal3";
            this.btnNewTerminal3.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.btnNewTerminal3_ItemClick);
            // 
            // btnStart
            // 
            this.btnStart.Caption = "Start";
            this.btnStart.Enabled = false;
            this.btnStart.Id = 2;
            this.btnStart.LargeGlyph = global::iBet.App.Properties.Resources.i5;
            this.btnStart.Name = "btnStart";
            this.btnStart.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.btnStart_ItemClick);
            // 
            // btnStop
            // 
            this.btnStop.Caption = "Stop";
            this.btnStop.Enabled = false;
            this.btnStop.Id = 3;
            this.btnStop.LargeGlyph = global::iBet.App.Properties.Resources.i6;
            this.btnStop.Name = "btnStop";
            this.btnStop.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.btnStop_ItemClick);
            // 
            // btnClear
            // 
            this.btnClear.Caption = "Clear";
            this.btnClear.Enabled = false;
            this.btnClear.Glyph = global::iBet.App.Properties.Resources.i7;
            this.btnClear.Id = 4;
            this.btnClear.LargeGlyph = global::iBet.App.Properties.Resources.i7;
            this.btnClear.Name = "btnClear";
            this.btnClear.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.btnClear_ItemClick);
            // 
            // txtUsername
            // 
            this.txtUsername.Caption = "Username";
            this.txtUsername.Edit = this.repositoryItemTextEdit1;
            this.txtUsername.Id = 5;
            this.txtUsername.Name = "txtUsername";
            this.txtUsername.Width = 150;
            // 
            // repositoryItemTextEdit1
            // 
            this.repositoryItemTextEdit1.AutoHeight = false;
            this.repositoryItemTextEdit1.Name = "repositoryItemTextEdit1";
            // 
            // txtPassword
            // 
            this.txtPassword.Caption = "Password ";
            this.txtPassword.Edit = this.repositoryItemTextEdit2;
            this.txtPassword.Id = 6;
            this.txtPassword.Name = "txtPassword";
            this.txtPassword.Width = 150;
            // 
            // repositoryItemTextEdit2
            // 
            this.repositoryItemTextEdit2.AutoHeight = false;
            this.repositoryItemTextEdit2.Name = "repositoryItemTextEdit2";
            this.repositoryItemTextEdit2.PasswordChar = '*';
            // 
            // btnLogin
            // 
            this.btnLogin.Caption = "Login";
            this.btnLogin.Id = 7;
            this.btnLogin.LargeGlyph = global::iBet.App.Properties.Resources.i1;
            this.btnLogin.Name = "btnLogin";
            this.btnLogin.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.btnLogin_ItemClick);
            // 
            // btnChangePassword
            // 
            this.btnChangePassword.Caption = "Change Password";
            this.btnChangePassword.Enabled = false;
            this.btnChangePassword.Id = 8;
            this.btnChangePassword.LargeGlyph = global::iBet.App.Properties.Resources.i3;
            this.btnChangePassword.Name = "btnChangePassword";
            this.btnChangePassword.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.btnChangePassword_ItemClick);
            // 
            // btnLogout
            // 
            this.btnLogout.Caption = "Logout";
            this.btnLogout.Enabled = false;
            this.btnLogout.Id = 9;
            this.btnLogout.LargeGlyph = global::iBet.App.Properties.Resources.i2;
            this.btnLogout.Name = "btnLogout";
            this.btnLogout.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.btnLogout_ItemClick);
            // 
            // lblSystemTime
            // 
            this.lblSystemTime.Alignment = DevExpress.XtraBars.BarItemLinkAlignment.Right;
            this.lblSystemTime.Id = 10;
            this.lblSystemTime.Name = "lblSystemTime";
            this.lblSystemTime.TextAlignment = System.Drawing.StringAlignment.Near;
            // 
            // lblTotalTransaction
            // 
            this.lblTotalTransaction.Caption = "Total transaction(s): 0";
            this.lblTotalTransaction.Id = 11;
            this.lblTotalTransaction.Name = "lblTotalTransaction";
            this.lblTotalTransaction.TextAlignment = System.Drawing.StringAlignment.Near;
            // 
            // lblTotalTerminal
            // 
            this.lblTotalTerminal.Caption = "Total Terminal(s): 0";
            this.lblTotalTerminal.Id = 12;
            this.lblTotalTerminal.Name = "lblTotalTerminal";
            this.lblTotalTerminal.TextAlignment = System.Drawing.StringAlignment.Near;
            // 
            // barEditItem1
            // 
            this.barEditItem1.Caption = "barEditItem1";
            this.barEditItem1.Edit = this.repositoryItemPopupContainerEdit1;
            this.barEditItem1.Id = 15;
            this.barEditItem1.Name = "barEditItem1";
            // 
            // repositoryItemPopupContainerEdit1
            // 
            this.repositoryItemPopupContainerEdit1.AutoHeight = false;
            this.repositoryItemPopupContainerEdit1.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
            new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
            this.repositoryItemPopupContainerEdit1.Name = "repositoryItemPopupContainerEdit1";
            // 
            // ribbonGalleryBarItem1
            // 
            this.ribbonGalleryBarItem1.Caption = "ribbonGalleryBarItem1";
            this.ribbonGalleryBarItem1.Id = 17;
            this.ribbonGalleryBarItem1.Name = "ribbonGalleryBarItem1";
            // 
            // barButtonGroup1
            // 
            this.barButtonGroup1.Caption = "barButtonGroup1";
            this.barButtonGroup1.Id = 18;
            this.barButtonGroup1.Name = "barButtonGroup1";
            // 
            // barButtonGroup2
            // 
            this.barButtonGroup2.Caption = "barButtonGroup2";
            this.barButtonGroup2.Id = 19;
            this.barButtonGroup2.Name = "barButtonGroup2";
            // 
            // skinGalleryBarItem
            // 
            this.skinGalleryBarItem.Caption = "skinGalleryBarItem";
            // 
            // skinGalleryBarItem
            // 
            this.skinGalleryBarItem.Gallery.AllowHoverImages = true;
            this.skinGalleryBarItem.Gallery.FixedHoverImageSize = false;
            galleryItemGroup1.Caption = "Standard";
            galleryItemGroup2.Caption = "Bonus";
            galleryItemGroup2.Visible = false;
            galleryItemGroup3.Caption = "Office";
            galleryItemGroup3.Visible = false;
            this.skinGalleryBarItem.Gallery.Groups.AddRange(new DevExpress.XtraBars.Ribbon.GalleryItemGroup[] {
            galleryItemGroup1,
            galleryItemGroup2,
            galleryItemGroup3});
            this.skinGalleryBarItem.Gallery.ImageSize = new System.Drawing.Size(58, 43);
            this.skinGalleryBarItem.Gallery.ItemCheckMode = DevExpress.XtraBars.Ribbon.Gallery.ItemCheckMode.SingleRadio;
            this.skinGalleryBarItem.Id = 1;
            this.skinGalleryBarItem.Name = "skinGalleryBarItem";
            // 
            // ribbonPage1
            // 
            this.ribbonPage1.Groups.AddRange(new DevExpress.XtraBars.Ribbon.RibbonPageGroup[] {
            this.ribbonPageGroup3,
            this.ribbonPageGroup1,
            this.ribbonPageGroup2,
            this.ribbonPageGroup5});
            this.ribbonPage1.Name = "ribbonPage1";
            this.ribbonPage1.Text = "Terminal";
            // 
            // ribbonPageGroup3
            // 
            this.ribbonPageGroup3.ItemLinks.Add(this.txtUsername);
            this.ribbonPageGroup3.ItemLinks.Add(this.txtPassword);
            this.ribbonPageGroup3.ItemLinks.Add(this.btnLogin);
            this.ribbonPageGroup3.ItemLinks.Add(this.btnChangePassword);
            this.ribbonPageGroup3.ItemLinks.Add(this.btnLogout);
            this.ribbonPageGroup3.Name = "ribbonPageGroup3";
            this.ribbonPageGroup3.ShowCaptionButton = false;
            this.ribbonPageGroup3.Text = "Authentication";
            // 
            // ribbonPageGroup1
            // 
            this.ribbonPageGroup1.ItemLinks.Add(this.btnNewTerminal);
            this.ribbonPageGroup1.ItemLinks.Add(this.btnNewTerminal2);
            this.ribbonPageGroup1.ItemLinks.Add(this.btnNewTerminal3);
            this.ribbonPageGroup1.ItemLinks.Add(this.btnStart);
            this.ribbonPageGroup1.ItemLinks.Add(this.btnStop);
            this.ribbonPageGroup1.Name = "ribbonPageGroup1";
            this.ribbonPageGroup1.ShowCaptionButton = false;
            this.ribbonPageGroup1.Text = "Terminal";
            // 
            // ribbonPageGroup2
            // 
            this.ribbonPageGroup2.ItemLinks.Add(this.btnClear);
            this.ribbonPageGroup2.Name = "ribbonPageGroup2";
            this.ribbonPageGroup2.ShowCaptionButton = false;
            this.ribbonPageGroup2.Text = "Tracking";
            // 
            // ribbonPageGroup5
            // 
            this.ribbonPageGroup5.ItemLinks.Add(this.skinGalleryBarItem);
            this.ribbonPageGroup5.Name = "ribbonPageGroup5";
            this.ribbonPageGroup5.Text = "Skins";
            // 
            // ribbonStatusBar1
            // 
            this.ribbonStatusBar1.ItemLinks.Add(this.lblSystemTime);
            this.ribbonStatusBar1.ItemLinks.Add(this.lblTotalTerminal);
            this.ribbonStatusBar1.ItemLinks.Add(this.lblTotalTransaction);
            this.ribbonStatusBar1.Location = new System.Drawing.Point(0, 617);
            this.ribbonStatusBar1.Name = "ribbonStatusBar1";
            this.ribbonStatusBar1.Ribbon = this.ribbonControl1;
            this.ribbonStatusBar1.Size = new System.Drawing.Size(1056, 31);
            // 
            // splitContainerControl1
            // 
            this.splitContainerControl1.Dock = System.Windows.Forms.DockStyle.Fill;
            this.splitContainerControl1.FixedPanel = DevExpress.XtraEditors.SplitFixedPanel.Panel2;
            this.splitContainerControl1.Horizontal = false;
            this.splitContainerControl1.Location = new System.Drawing.Point(0, 125);
            this.splitContainerControl1.Name = "splitContainerControl1";
            this.splitContainerControl1.Panel1.Controls.Add(this.xtraTabControl1);
            this.splitContainerControl1.Panel1.Text = "Panel1";
            this.splitContainerControl1.Panel2.Controls.Add(this.xtraTabControl2);
            this.splitContainerControl1.Panel2.Text = "Panel2";
            this.splitContainerControl1.Size = new System.Drawing.Size(1056, 492);
            this.splitContainerControl1.SplitterPosition = 44;
            this.splitContainerControl1.TabIndex = 1;
            this.splitContainerControl1.Text = "splitContainerControl1";
            // 
            // xtraTabControl1
            // 
            this.xtraTabControl1.Dock = System.Windows.Forms.DockStyle.Fill;
            this.xtraTabControl1.Location = new System.Drawing.Point(0, 0);
            this.xtraTabControl1.Name = "xtraTabControl1";
            this.xtraTabControl1.SelectedTabPage = this.xtraTabPage1;
            this.xtraTabControl1.Size = new System.Drawing.Size(1056, 443);
            this.xtraTabControl1.TabIndex = 0;
            this.xtraTabControl1.TabPages.AddRange(new DevExpress.XtraTab.XtraTabPage[] {
            this.xtraTabPage1,
            this.xtraTabPage3,
            this.xtraTabPage5});
            // 
            // xtraTabPage1
            // 
            this.xtraTabPage1.Controls.Add(this.grdTransaction);
            this.xtraTabPage1.Controls.Add(this.panelControl3);
            this.xtraTabPage1.Controls.Add(this.panelControl4);
            this.xtraTabPage1.Name = "xtraTabPage1";
            this.xtraTabPage1.Size = new System.Drawing.Size(1050, 417);
            this.xtraTabPage1.Text = "Transactions";
            // 
            // grdTransaction
            // 
            this.grdTransaction.Dock = System.Windows.Forms.DockStyle.Fill;
            this.grdTransaction.EmbeddedNavigator.ShowToolTips = false;
            this.grdTransaction.Location = new System.Drawing.Point(0, 0);
            this.grdTransaction.MainView = this.gridView2;
            this.grdTransaction.Name = "grdTransaction";
            this.grdTransaction.Size = new System.Drawing.Size(1050, 417);
            this.grdTransaction.TabIndex = 7;
            this.grdTransaction.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
            this.gridView2});
            // 
            // gridView2
            // 
            this.gridView2.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] {
            this.gridColumn1,
            this.gridColumn8,
            this.gridColumn2,
            this.gridColumn3,
            this.gridColumn6,
            this.gridColumn4,
            this.gridColumn5,
            this.gridColumn7,
            this.gridColumn10,
            this.gridColumn11,
            this.gridColumn12,
            this.gridColumn9,
            this.gridColumn14,
            this.gridColumn15,
            this.gridColumn13});
            this.gridView2.FocusRectStyle = DevExpress.XtraGrid.Views.Grid.DrawFocusRectStyle.RowFocus;
            this.gridView2.GridControl = this.grdTransaction;
            this.gridView2.Name = "gridView2";
            this.gridView2.OptionsBehavior.Editable = false;
            this.gridView2.OptionsCustomization.AllowGroup = false;
            this.gridView2.OptionsMenu.EnableColumnMenu = false;
            this.gridView2.OptionsMenu.EnableFooterMenu = false;
            this.gridView2.OptionsMenu.EnableGroupPanelMenu = false;
            this.gridView2.OptionsView.HeaderFilterButtonShowMode = DevExpress.XtraEditors.Controls.FilterButtonShowMode.Button;
            this.gridView2.OptionsView.ShowAutoFilterRow = true;
            this.gridView2.OptionsView.ShowGroupPanel = false;
            this.gridView2.OptionsView.ShowPreview = true;
            this.gridView2.PreviewFieldName = "Note";
            this.gridView2.ShowButtonMode = DevExpress.XtraGrid.Views.Base.ShowButtonModeEnum.ShowForFocusedRow;
            this.gridView2.SortInfo.AddRange(new DevExpress.XtraGrid.Columns.GridColumnSortInfo[] {
            new DevExpress.XtraGrid.Columns.GridColumnSortInfo(this.gridColumn13, DevExpress.Data.ColumnSortOrder.Descending)});
            // 
            // gridColumn1
            // 
            this.gridColumn1.Caption = "ID";
            this.gridColumn1.FieldName = "ID";
            this.gridColumn1.Name = "gridColumn1";
            this.gridColumn1.OptionsColumn.AllowFocus = false;
            this.gridColumn1.OptionsColumn.AllowMove = false;
            this.gridColumn1.OptionsColumn.AllowSize = false;
            this.gridColumn1.OptionsColumn.FixedWidth = true;
            this.gridColumn1.Visible = true;
            this.gridColumn1.VisibleIndex = 0;
            this.gridColumn1.Width = 30;
            // 
            // gridColumn8
            // 
            this.gridColumn8.Caption = "Account Pair";
            this.gridColumn8.FieldName = "AccountPair";
            this.gridColumn8.Name = "gridColumn8";
            this.gridColumn8.OptionsColumn.AllowFocus = false;
            this.gridColumn8.OptionsColumn.FixedWidth = true;
            this.gridColumn8.Visible = true;
            this.gridColumn8.VisibleIndex = 1;
            this.gridColumn8.Width = 120;
            // 
            // gridColumn2
            // 
            this.gridColumn2.Caption = "Home Team";
            this.gridColumn2.FieldName = "HomeTeamName";
            this.gridColumn2.Name = "gridColumn2";
            this.gridColumn2.OptionsColumn.AllowFocus = false;
            this.gridColumn2.UnboundType = DevExpress.Data.UnboundColumnType.String;
            this.gridColumn2.Visible = true;
            this.gridColumn2.VisibleIndex = 2;
            this.gridColumn2.Width = 107;
            // 
            // gridColumn3
            // 
            this.gridColumn3.Caption = "Away Team";
            this.gridColumn3.FieldName = "AwayTeamName";
            this.gridColumn3.Name = "gridColumn3";
            this.gridColumn3.OptionsColumn.AllowFocus = false;
            this.gridColumn3.UnboundType = DevExpress.Data.UnboundColumnType.String;
            this.gridColumn3.Visible = true;
            this.gridColumn3.VisibleIndex = 3;
            this.gridColumn3.Width = 119;
            // 
            // gridColumn6
            // 
            this.gridColumn6.Caption = "Type";
            this.gridColumn6.FieldName = "OddType";
            this.gridColumn6.Name = "gridColumn6";
            this.gridColumn6.OptionsColumn.AllowFocus = false;
            this.gridColumn6.OptionsColumn.FixedWidth = true;
            this.gridColumn6.UnboundType = DevExpress.Data.UnboundColumnType.String;
            this.gridColumn6.Visible = true;
            this.gridColumn6.VisibleIndex = 4;
            this.gridColumn6.Width = 150;
            // 
            // gridColumn4
            // 
            this.gridColumn4.Caption = "Odd";
            this.gridColumn4.FieldName = "OddKindValue";
            this.gridColumn4.Name = "gridColumn4";
            this.gridColumn4.OptionsColumn.AllowFocus = false;
            this.gridColumn4.OptionsColumn.FixedWidth = true;
            this.gridColumn4.UnboundType = DevExpress.Data.UnboundColumnType.String;
            this.gridColumn4.Visible = true;
            this.gridColumn4.VisibleIndex = 5;
            this.gridColumn4.Width = 60;
            // 
            // gridColumn5
            // 
            this.gridColumn5.Caption = "Value";
            this.gridColumn5.FieldName = "OddValue";
            this.gridColumn5.Name = "gridColumn5";
            this.gridColumn5.OptionsColumn.AllowFocus = false;
            this.gridColumn5.OptionsColumn.FixedWidth = true;
            this.gridColumn5.UnboundType = DevExpress.Data.UnboundColumnType.String;
            this.gridColumn5.Visible = true;
            this.gridColumn5.VisibleIndex = 6;
            this.gridColumn5.Width = 60;
            // 
            // gridColumn7
            // 
            this.gridColumn7.Caption = "Stake";
            this.gridColumn7.FieldName = "Stake";
            this.gridColumn7.Name = "gridColumn7";
            this.gridColumn7.OptionsColumn.AllowFocus = false;
            this.gridColumn7.OptionsColumn.FixedWidth = true;
            this.gridColumn7.UnboundType = DevExpress.Data.UnboundColumnType.String;
            this.gridColumn7.Visible = true;
            this.gridColumn7.VisibleIndex = 7;
            this.gridColumn7.Width = 60;
            // 
            // gridColumn10
            // 
            this.gridColumn10.Caption = "I";
            this.gridColumn10.FieldName = "IBETTrade";
            this.gridColumn10.Name = "gridColumn10";
            this.gridColumn10.OptionsColumn.AllowFocus = false;
            this.gridColumn10.OptionsColumn.FixedWidth = true;
            this.gridColumn10.UnboundType = DevExpress.Data.UnboundColumnType.Boolean;
            this.gridColumn10.Visible = true;
            this.gridColumn10.VisibleIndex = 8;
            this.gridColumn10.Width = 30;
            // 
            // gridColumn11
            // 
            this.gridColumn11.Caption = "3";
            this.gridColumn11.FieldName = "THREEIN1Trade";
            this.gridColumn11.Name = "gridColumn11";
            this.gridColumn11.OptionsColumn.AllowFocus = false;
            this.gridColumn11.OptionsColumn.FixedWidth = true;
            this.gridColumn11.UnboundType = DevExpress.Data.UnboundColumnType.Boolean;
            this.gridColumn11.Visible = true;
            this.gridColumn11.VisibleIndex = 9;
            this.gridColumn11.Width = 30;
            // 
            // gridColumn12
            // 
            this.gridColumn12.Caption = "3 Re";
            this.gridColumn12.FieldName = "THREEIN1ReTrade";
            this.gridColumn12.Name = "gridColumn12";
            this.gridColumn12.OptionsColumn.AllowFocus = false;
            this.gridColumn12.OptionsColumn.FixedWidth = true;
            this.gridColumn12.UnboundType = DevExpress.Data.UnboundColumnType.Boolean;
            this.gridColumn12.Visible = true;
            this.gridColumn12.VisibleIndex = 11;
            this.gridColumn12.Width = 30;
            // 
            // gridColumn9
            // 
            this.gridColumn9.Caption = "I Re";
            this.gridColumn9.FieldName = "IBETReTrade";
            this.gridColumn9.Name = "gridColumn9";
            this.gridColumn9.OptionsColumn.AllowFocus = false;
            this.gridColumn9.OptionsColumn.FixedWidth = true;
            this.gridColumn9.Visible = true;
            this.gridColumn9.VisibleIndex = 12;
            this.gridColumn9.Width = 30;
            // 
            // gridColumn14
            // 
            this.gridColumn14.Caption = "B";
            this.gridColumn14.FieldName = "SBOBETTrade";
            this.gridColumn14.Name = "gridColumn14";
            this.gridColumn14.OptionsColumn.AllowFocus = false;
            this.gridColumn14.OptionsColumn.FixedWidth = true;
            this.gridColumn14.UnboundType = DevExpress.Data.UnboundColumnType.Boolean;
            this.gridColumn14.Visible = true;
            this.gridColumn14.VisibleIndex = 10;
            this.gridColumn14.Width = 30;
            // 
            // gridColumn15
            // 
            this.gridColumn15.Caption = "B Re";
            this.gridColumn15.FieldName = "SBOBETReTrade";
            this.gridColumn15.Name = "gridColumn15";
            this.gridColumn15.OptionsColumn.AllowFocus = false;
            this.gridColumn15.OptionsColumn.FixedWidth = true;
            this.gridColumn15.UnboundType = DevExpress.Data.UnboundColumnType.Boolean;
            this.gridColumn15.Visible = true;
            this.gridColumn15.VisibleIndex = 13;
            this.gridColumn15.Width = 30;
            // 
            // gridColumn13
            // 
            this.gridColumn13.Caption = "DateTime";
            this.gridColumn13.DisplayFormat.FormatString = "dd/MM/yyyy hh:mm:ss";
            this.gridColumn13.DisplayFormat.FormatType = DevExpress.Utils.FormatType.DateTime;
            this.gridColumn13.FieldName = "DateTime";
            this.gridColumn13.Name = "gridColumn13";
            this.gridColumn13.OptionsColumn.AllowFocus = false;
            this.gridColumn13.OptionsColumn.FixedWidth = true;
            this.gridColumn13.SortMode = DevExpress.XtraGrid.ColumnSortMode.Value;
            this.gridColumn13.Summary.AddRange(new DevExpress.XtraGrid.GridSummaryItem[] {
            new DevExpress.XtraGrid.GridColumnSummaryItem(DevExpress.Data.SummaryItemType.Count)});
            this.gridColumn13.UnboundType = DevExpress.Data.UnboundColumnType.DateTime;
            this.gridColumn13.Visible = true;
            this.gridColumn13.VisibleIndex = 14;
            this.gridColumn13.Width = 150;
            // 
            // panelControl3
            // 
            this.panelControl3.Location = new System.Drawing.Point(0, 0);
            this.panelControl3.Name = "panelControl3";
            this.panelControl3.Size = new System.Drawing.Size(200, 100);
            this.panelControl3.TabIndex = 8;
            // 
            // panelControl4
            // 
            this.panelControl4.Location = new System.Drawing.Point(0, 0);
            this.panelControl4.Name = "panelControl4";
            this.panelControl4.Size = new System.Drawing.Size(200, 100);
            this.panelControl4.TabIndex = 9;
            // 
            // xtraTabPage3
            // 
            this.xtraTabPage3.Controls.Add(this.btnStatement);
            this.xtraTabPage3.Controls.Add(this.btnBetList);
            this.xtraTabPage3.Controls.Add(this.cbeSignatureTemplate);
            this.xtraTabPage3.Controls.Add(this.panelControl1);
            this.xtraTabPage3.Name = "xtraTabPage3";
            this.xtraTabPage3.Size = new System.Drawing.Size(1050, 417);
            this.xtraTabPage3.Text = "Bet List - Statement";
            // 
            // btnStatement
            // 
            this.btnStatement.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.btnStatement.Location = new System.Drawing.Point(295, 391);
            this.btnStatement.Name = "btnStatement";
            this.btnStatement.Size = new System.Drawing.Size(99, 23);
            this.btnStatement.TabIndex = 7;
            this.btnStatement.Text = "Statement";
            this.btnStatement.Click += new System.EventHandler(this.btnStatement_Click);
            // 
            // btnBetList
            // 
            this.btnBetList.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.btnBetList.Location = new System.Drawing.Point(198, 391);
            this.btnBetList.Name = "btnBetList";
            this.btnBetList.Size = new System.Drawing.Size(91, 23);
            this.btnBetList.TabIndex = 6;
            this.btnBetList.Text = "Refresh";
            this.btnBetList.Click += new System.EventHandler(this.btnRefresh_Click);
            // 
            // cbeSignatureTemplate
            // 
            this.cbeSignatureTemplate.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.cbeSignatureTemplate.EditValue = "Select account pair";
            this.cbeSignatureTemplate.Location = new System.Drawing.Point(3, 394);
            this.cbeSignatureTemplate.Name = "cbeSignatureTemplate";
            this.cbeSignatureTemplate.Properties.AllowNullInput = DevExpress.Utils.DefaultBoolean.False;
            this.cbeSignatureTemplate.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
            new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
            this.cbeSignatureTemplate.Properties.DropDownRows = 10;
            this.cbeSignatureTemplate.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.DisableTextEditor;
            this.cbeSignatureTemplate.Size = new System.Drawing.Size(189, 20);
            this.cbeSignatureTemplate.TabIndex = 5;
            // 
            // panelControl1
            // 
            this.panelControl1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
            | System.Windows.Forms.AnchorStyles.Left) 
            | System.Windows.Forms.AnchorStyles.Right)));
            this.panelControl1.Controls.Add(this.webBrowser2);
            this.panelControl1.Controls.Add(this.splitter1);
            this.panelControl1.Controls.Add(this.webBrowser1);
            this.panelControl1.Location = new System.Drawing.Point(2, 3);
            this.panelControl1.Name = "panelControl1";
            this.panelControl1.Size = new System.Drawing.Size(1044, 382);
            this.panelControl1.TabIndex = 3;
            // 
            // webBrowser2
            // 
            this.webBrowser2.Dock = System.Windows.Forms.DockStyle.Fill;
            this.webBrowser2.Location = new System.Drawing.Point(364, 2);
            this.webBrowser2.MinimumSize = new System.Drawing.Size(20, 20);
            this.webBrowser2.Name = "webBrowser2";
            this.webBrowser2.Size = new System.Drawing.Size(678, 378);
            this.webBrowser2.TabIndex = 2;
            this.webBrowser2.Url = new System.Uri("", System.UriKind.Relative);
            // 
            // splitter1
            // 
            this.splitter1.Location = new System.Drawing.Point(361, 2);
            this.splitter1.Name = "splitter1";
            this.splitter1.Size = new System.Drawing.Size(3, 378);
            this.splitter1.TabIndex = 1;
            this.splitter1.TabStop = false;
            // 
            // webBrowser1
            // 
            this.webBrowser1.Dock = System.Windows.Forms.DockStyle.Left;
            this.webBrowser1.Location = new System.Drawing.Point(2, 2);
            this.webBrowser1.MinimumSize = new System.Drawing.Size(20, 20);
            this.webBrowser1.Name = "webBrowser1";
            this.webBrowser1.Size = new System.Drawing.Size(359, 378);
            this.webBrowser1.TabIndex = 0;
            this.webBrowser1.Url = new System.Uri("", System.UriKind.Relative);
            // 
            // xtraTabPage5
            // 
            this.xtraTabPage5.Controls.Add(this.panelControl2);
            this.xtraTabPage5.Name = "xtraTabPage5";
            this.xtraTabPage5.Size = new System.Drawing.Size(1050, 417);
            this.xtraTabPage5.Text = "Settings";
            // 
            // panelControl2
            // 
            this.panelControl2.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
            | System.Windows.Forms.AnchorStyles.Left) 
            | System.Windows.Forms.AnchorStyles.Right)));
            this.panelControl2.Controls.Add(this.textEdit4);
            this.panelControl2.Controls.Add(this.chkSCloud);
            this.panelControl2.Controls.Add(this.simpleButton2);
            this.panelControl2.Controls.Add(this.textEdit3);
            this.panelControl2.Controls.Add(this.textEdit2);
            this.panelControl2.Controls.Add(this.textEdit1);
            this.panelControl2.Controls.Add(this.simpleButton1);
            this.panelControl2.Controls.Add(this.label4);
            this.panelControl2.Controls.Add(this.label3);
            this.panelControl2.Controls.Add(this.label2);
            this.panelControl2.Controls.Add(this.label1);
            this.panelControl2.Controls.Add(this.chkRCloud);
            this.panelControl2.Controls.Add(this.btnSignMeIn);
            this.panelControl2.Controls.Add(this.txtServerIP);
            this.panelControl2.Controls.Add(this.txtServerUserName);
            this.panelControl2.Controls.Add(this.txtServerPassword);
            this.panelControl2.Controls.Add(this.pictureEdit1);
            this.panelControl2.Location = new System.Drawing.Point(3, 3);
            this.panelControl2.Name = "panelControl2";
            this.panelControl2.Size = new System.Drawing.Size(1044, 497);
            this.panelControl2.TabIndex = 0;
            // 
            // textEdit4
            // 
            this.textEdit4.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
            | System.Windows.Forms.AnchorStyles.Left) 
            | System.Windows.Forms.AnchorStyles.Right)));
            this.textEdit4.Location = new System.Drawing.Point(244, 5);
            this.textEdit4.Name = "textEdit4";
            this.textEdit4.Size = new System.Drawing.Size(408, 406);
            this.textEdit4.TabIndex = 18;
            // 
            // chkSCloud
            // 
            this.chkSCloud.EditValue = true;
            this.chkSCloud.Location = new System.Drawing.Point(13, 27);
            this.chkSCloud.Name = "chkSCloud";
            this.chkSCloud.Properties.Caption = "S cloud";
            this.chkSCloud.Size = new System.Drawing.Size(86, 19);
            this.chkSCloud.TabIndex = 17;
            // 
            // simpleButton2
            // 
            this.simpleButton2.Location = new System.Drawing.Point(130, 307);
            this.simpleButton2.Name = "simpleButton2";
            this.simpleButton2.Size = new System.Drawing.Size(97, 23);
            this.simpleButton2.TabIndex = 16;
            this.simpleButton2.Text = "Set";
            this.simpleButton2.Click += new System.EventHandler(this.simpleButton2_Click);
            // 
            // textEdit3
            // 
            this.textEdit3.EditValue = "0";
            this.textEdit3.Location = new System.Drawing.Point(94, 216);
            this.textEdit3.Name = "textEdit3";
            this.textEdit3.Size = new System.Drawing.Size(142, 20);
            this.textEdit3.TabIndex = 15;
            // 
            // textEdit2
            // 
            this.textEdit2.Location = new System.Drawing.Point(94, 268);
            this.textEdit2.Name = "textEdit2";
            this.textEdit2.Size = new System.Drawing.Size(142, 20);
            this.textEdit2.TabIndex = 14;
            // 
            // textEdit1
            // 
            this.textEdit1.Location = new System.Drawing.Point(94, 241);
            this.textEdit1.Name = "textEdit1";
            this.textEdit1.Size = new System.Drawing.Size(142, 20);
            this.textEdit1.TabIndex = 13;
            // 
            // simpleButton1
            // 
            this.simpleButton1.Location = new System.Drawing.Point(18, 307);
            this.simpleButton1.Name = "simpleButton1";
            this.simpleButton1.Size = new System.Drawing.Size(97, 23);
            this.simpleButton1.TabIndex = 12;
            this.simpleButton1.Text = "Get";
            this.simpleButton1.Click += new System.EventHandler(this.simpleButton1_Click);
            // 
            // label4
            // 
            this.label4.AutoSize = true;
            this.label4.Location = new System.Drawing.Point(12, 176);
            this.label4.Name = "label4";
            this.label4.Size = new System.Drawing.Size(0, 13);
            this.label4.TabIndex = 11;
            // 
            // label3
            // 
            this.label3.AutoSize = true;
            this.label3.Location = new System.Drawing.Point(11, 140);
            this.label3.Name = "label3";
            this.label3.Size = new System.Drawing.Size(53, 13);
            this.label3.TabIndex = 10;
            this.label3.Text = "Password";
            // 
            // label2
            // 
            this.label2.AutoSize = true;
            this.label2.Location = new System.Drawing.Point(11, 113);
            this.label2.Name = "label2";
            this.label2.Size = new System.Drawing.Size(55, 13);
            this.label2.TabIndex = 9;
            this.label2.Text = "Username";
            // 
            // label1
            // 
            this.label1.AutoSize = true;
            this.label1.Location = new System.Drawing.Point(11, 86);
            this.label1.Name = "label1";
            this.label1.Size = new System.Drawing.Size(81, 13);
            this.label1.TabIndex = 8;
            this.label1.Text = "Server Address";
            // 
            // chkRCloud
            // 
            this.chkRCloud.EditValue = true;
            this.chkRCloud.Location = new System.Drawing.Point(12, 53);
            this.chkRCloud.Name = "chkRCloud";
            this.chkRCloud.Properties.Caption = "R cloud";
            this.chkRCloud.Size = new System.Drawing.Size(86, 19);
            this.chkRCloud.TabIndex = 7;
            this.chkRCloud.CheckedChanged += new System.EventHandler(this.chbCloud_CheckedChanged);
            // 
            // btnSignMeIn
            // 
            this.btnSignMeIn.Location = new System.Drawing.Point(154, 171);
            this.btnSignMeIn.Name = "btnSignMeIn";
            this.btnSignMeIn.Size = new System.Drawing.Size(75, 23);
            this.btnSignMeIn.TabIndex = 3;
            this.btnSignMeIn.Text = "Sign me in";
            this.btnSignMeIn.Click += new System.EventHandler(this.btnSignMeIn_Click);
            // 
            // txtServerIP
            // 
            this.txtServerIP.EditValue = "115.84.178.100";
            this.txtServerIP.Location = new System.Drawing.Point(95, 83);
            this.txtServerIP.Name = "txtServerIP";
            this.txtServerIP.Size = new System.Drawing.Size(142, 20);
            this.txtServerIP.TabIndex = 4;
            // 
            // txtServerUserName
            // 
            this.txtServerUserName.EditValue = "tuns";
            this.txtServerUserName.Location = new System.Drawing.Point(95, 110);
            this.txtServerUserName.Name = "txtServerUserName";
            this.txtServerUserName.Size = new System.Drawing.Size(142, 20);
            this.txtServerUserName.TabIndex = 5;
            // 
            // txtServerPassword
            // 
            this.txtServerPassword.EditValue = "anhkomuonradi";
            this.txtServerPassword.Location = new System.Drawing.Point(95, 137);
            this.txtServerPassword.Name = "txtServerPassword";
            this.txtServerPassword.Properties.UseSystemPasswordChar = true;
            this.txtServerPassword.Size = new System.Drawing.Size(142, 20);
            this.txtServerPassword.TabIndex = 6;
            // 
            // pictureEdit1
            // 
            this.pictureEdit1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.pictureEdit1.EditValue = ((object)(resources.GetObject("pictureEdit1.EditValue")));
            this.pictureEdit1.Location = new System.Drawing.Point(658, 5);
            this.pictureEdit1.Name = "pictureEdit1";
            this.pictureEdit1.Properties.AllowFocused = false;
            this.pictureEdit1.Properties.Appearance.BackColor = System.Drawing.Color.Transparent;
            this.pictureEdit1.Properties.Appearance.Options.UseBackColor = true;
            this.pictureEdit1.Properties.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
            this.pictureEdit1.Properties.PictureAlignment = System.Drawing.ContentAlignment.TopLeft;
            this.pictureEdit1.Properties.ShowMenu = false;
            this.pictureEdit1.Size = new System.Drawing.Size(382, 448);
            this.pictureEdit1.TabIndex = 2;
            // 
            // xtraTabControl2
            // 
            this.xtraTabControl2.Dock = System.Windows.Forms.DockStyle.Fill;
            this.xtraTabControl2.Location = new System.Drawing.Point(0, 0);
            this.xtraTabControl2.Name = "xtraTabControl2";
            this.xtraTabControl2.SelectedTabPage = this.xtraTabPage2;
            this.xtraTabControl2.Size = new System.Drawing.Size(1056, 44);
            this.xtraTabControl2.TabIndex = 1;
            this.xtraTabControl2.TabPages.AddRange(new DevExpress.XtraTab.XtraTabPage[] {
            this.xtraTabPage2,
            this.xtraTabPage4});
            // 
            // xtraTabPage2
            // 
            this.xtraTabPage2.Name = "xtraTabPage2";
            this.xtraTabPage2.Size = new System.Drawing.Size(1050, 18);
            this.xtraTabPage2.Text = "Waiting list";
            // 
            // xtraTabPage4
            // 
            this.xtraTabPage4.Name = "xtraTabPage4";
            this.xtraTabPage4.Size = new System.Drawing.Size(1050, 18);
            this.xtraTabPage4.Text = "Clones monitor";
            // 
            // ribbonPageGroup4
            // 
            this.ribbonPageGroup4.ItemLinks.Add(this.btnClear);
            this.ribbonPageGroup4.Name = "ribbonPageGroup4";
            this.ribbonPageGroup4.ShowCaptionButton = false;
            this.ribbonPageGroup4.Text = "Tracking";
            // 
            // MainForm
            // 
            this.AutoHideRibbon = false;
            this.ClientSize = new System.Drawing.Size(1056, 648);
            this.Controls.Add(this.splitContainerControl1);
            this.Controls.Add(this.ribbonStatusBar1);
            this.Controls.Add(this.ribbonControl1);
            this.Icon = global::iBet.App.Properties.Resources.BetBrokerLogo;
            this.Name = "MainForm";
            this.Ribbon = this.ribbonControl1;
            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
            this.StatusBar = this.ribbonStatusBar1;
            this.Text = "Bet Broker";
            this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
            ((System.ComponentModel.ISupportInitialize)(this.ribbonControl1)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.repositoryItemTextEdit1)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.repositoryItemTextEdit2)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.repositoryItemPopupContainerEdit1)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.splitContainerControl1)).EndInit();
            this.splitContainerControl1.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.xtraTabControl1)).EndInit();
            this.xtraTabControl1.ResumeLayout(false);
            this.xtraTabPage1.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.grdTransaction)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.gridView2)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.panelControl3)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.panelControl4)).EndInit();
            this.xtraTabPage3.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.cbeSignatureTemplate.Properties)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.panelControl1)).EndInit();
            this.panelControl1.ResumeLayout(false);
            this.xtraTabPage5.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.panelControl2)).EndInit();
            this.panelControl2.ResumeLayout(false);
            this.panelControl2.PerformLayout();
            ((System.ComponentModel.ISupportInitialize)(this.textEdit4.Properties)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.chkSCloud.Properties)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.textEdit3.Properties)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.textEdit2.Properties)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.textEdit1.Properties)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.chkRCloud.Properties)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.txtServerIP.Properties)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.txtServerUserName.Properties)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.txtServerPassword.Properties)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.pictureEdit1.Properties)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.xtraTabControl2)).EndInit();
            this.xtraTabControl2.ResumeLayout(false);
            this.ResumeLayout(false);

		}
Ejemplo n.º 26
0
 void InitRibbonPage()
 {
     foreach (var vusermenu in topMenus)
     {
         var PageMenus = GetChildMenus(vusermenu.Sysid);
         foreach (var pageMenu in PageMenus)
         {
             if ("Page" != pageMenu.Menumark)
             {
                 continue;
             }
             RibbonPage ribbonPage = new RibbonPage(pageMenu.Menudesc);
             if (null == ribbonPage)
             {
                 return;
             }
             ribbonPage.Name = pageMenu.Menuname;
             var groupMenus = GetChildMenus(pageMenu.Sysid);
             foreach (var groupMenu in groupMenus)
             {
                 if ("Group" != groupMenu.Menumark)
                 {
                     continue;
                 }
                 RibbonPageGroup ribbonPageGroup = new RibbonPageGroup(groupMenu.Menudesc);
                 if (null == ribbonPageGroup)
                 {
                     return;
                 }
                 ribbonPageGroup.Name = groupMenu.Menuname;
                 var buttonMenus = GetChildMenus(groupMenu.Sysid);
                 foreach (var buttonMenu in buttonMenus)
                 {
                     if (buttonMenu.Menumark.Contains("Button") == false)
                     {
                         continue;
                     }
                     if (buttonMenu.Menudesc.Contains("主题") == true)
                     {
                         rgbiSkins = new RibbonGalleryBarItem();
                         if (null == rgbiSkins)
                         {
                             return;
                         }
                         rgbiSkins.Caption = buttonMenu.Menudesc;
                         rgbiSkins.Gallery.AllowHoverImages = true;
                         rgbiSkins.Gallery.Appearance.ItemCaption.Options.UseFont        = true;
                         rgbiSkins.Gallery.Appearance.ItemCaption.Options.UseTextOptions = true;
                         rgbiSkins.Gallery.Appearance.ItemCaption.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
                         rgbiSkins.Gallery.ColumnCount         = 4;
                         rgbiSkins.Gallery.FixedHoverImageSize = false;
                         rgbiSkins.Gallery.ImageSize           = new System.Drawing.Size(32, 17);
                         rgbiSkins.Gallery.ItemImageLocation   = DevExpress.Utils.Locations.Top;
                         rgbiSkins.Gallery.RowCount            = 4;
                         rgbiSkins.Id   = 60;
                         rgbiSkins.Name = buttonMenu.Menuname;
                         ribbonPageGroup.ItemLinks.Add(rgbiSkins);
                         ribbonControl.Items.Add(rgbiSkins);
                         SkinHelper.InitSkinGallery(rgbiSkins, true);
                     }
                     else
                     {
                         BarButtonItem barButtonItem = ribbonControl.Items.CreateButton(buttonMenu.Menudesc);
                         if (null == barButtonItem)
                         {
                             return;
                         }
                         barButtonItem.Name = buttonMenu.Menuname;
                         if (buttonMenu.Menumark == "LargeButton")
                         {
                             barButtonItem.LargeImageIndex = GetImageIndex(buttonMenu.Menuname);
                             barButtonItem.RibbonStyle     = RibbonItemStyles.Large;
                         }
                         else
                         {
                             barButtonItem.ImageIndex  = GetImageIndex(buttonMenu.Menuname);
                             barButtonItem.RibbonStyle = RibbonItemStyles.SmallWithText;
                         }
                         barButtonItem.ItemClick += new ItemClickEventHandler(barButtonItem_ItemClick);
                         ribbonPageGroup.ItemLinks.Add(barButtonItem);
                     }
                 }
                 ribbonPage.Groups.Add(ribbonPageGroup);
             }
             ribbonControl.Pages.Add(ribbonPage);
         }
     }
 }