示例#1
0
 private void BuildMainMenu(BarSubItem barItem, IList <MenuData> menuList)
 {
     foreach (MenuData data in menuList)
     {
         if ((data.menus != null) && (data.menus.Count > 0))
         {
             BarSubItem item = new BarSubItem(barManager1, data.menu_name)
             {
                 Tag = data
             };
             barItem.AddItem(item);
             this.BuildMainMenu(item, data.menus);
         }
         else
         {
             BarLargeButtonItem item3 = new BarLargeButtonItem(barManager1, data.menu_name)
             {
                 Tag   = data,
                 Glyph = this.LoadImageFormFile(data.menu_icon)
             };
             if (barItem != null)
             {
                 barItem.AddItem(item3);
             }
             item3.ItemClick += new ItemClickEventHandler(this.barLargeButtonItem_ItemClick);
         }
     }
 }
		public RevenueEditControl(RevenueItem bundleItem)
		{
			_bundleItem = bundleItem;
			InitializeComponent();

			Text = RevenueItem.ItemName;

			if (CreateGraphics().DpiX > 96)
			{
				var font = new Font(styleController.Appearance.Font.FontFamily, styleController.Appearance.Font.Size - 2,
					styleController.Appearance.Font.Style);
				styleController.Appearance.Font = font;
				styleController.AppearanceDisabled.Font = font;
				styleController.AppearanceDropDown.Font = font;
				styleController.AppearanceDropDownHeader.Font = font;
				styleController.AppearanceFocused.Font = font;
				styleController.AppearanceReadOnly.Font = font;
			}

			var itemId = 100;
			foreach (var infoType in RevenueInfo.AvailableInfoTypes)
			{
				var barButton = new BarLargeButtonItem();
				barButton.Caption = infoType;
				barButton.Tag = infoType;
				barButton.Id = itemId;
				barButton.ItemClick += OnRevenueInfoItemAdd;

				_infoTypeBarButtons.Add(barButton);

				itemId++;
				barSubItemInfoAdd.LinksPersistInfo.Add(new LinkPersistInfo(barButton));
			}
		}
示例#3
0
        public void AddQuickChanelButton(string controllerName, IMainController controller, EventHandler eventHandler, int imageIndex, string deptid, string moduleid)
        {
            BarLargeButtonItem item = new BarLargeButtonItem(this.barManager, controllerName)
            {
                Tag = controller
            };

            if (!this._quickChanelDictionary.ContainsKey(moduleid))
            {
                this._quickChanelDictionary.Add(moduleid, item);
            }
            item.ItemClick += delegate(object sender, ItemClickEventArgs e) {
                if (eventHandler != null)
                {
                    this._currentEventHandler = eventHandler;
                    _currentDeptId            = this.GenerateCurrentWstationDeptId(deptid);
                    this._moduleid            = moduleid;
                    UserContextManager.userContext.currentWorkstationModule = this.GenerateSystemModule(moduleid);
                    eventHandler(e.Item.Tag, e);
                    this._currentController = controller;
                }
            };
            this.barItem_quickChanel.ItemLinks.Add(item);
            MemoryUtil.FlushMemory();
        }
示例#4
0
 private object AddTopMenuItem(MenuAction c)
 {
     if (m_BarManager != null)
     {
         var category = new BarSubItem {
             ImageIndex = c.SmallIconIndex, Caption = c.Caption
         };
         category.Tag = c;
         MenuItemsInfo.Add(category, c);
         m_BarManager.Items.Add(category);
         if (c.ShowInToolbar)
         {
             var toolbarButton = new BarLargeButtonItem(m_BarManager, c.Caption);
             toolbarButton.Hint             = GetToolTipText(toolbarButton.Caption);
             toolbarButton.ImageIndex       = c.SmallIconIndex;
             toolbarButton.LargeImageIndex  = c.BigIconIndex;
             toolbarButton.ButtonStyle      = BarButtonStyle.DropDown;
             toolbarButton.DropDownControl  = new PopupMenu();
             toolbarButton.ShowCaptionOnBar = m_ShowButtonCaption;
             toolbarButton.CaptionAlignment = BarItemCaptionAlignment.Bottom;
             toolbarButton.PaintStyle       = BarItemPaintStyle.CaptionInMenu;
             m_CategoryInToolbar.Add(category, toolbarButton);
             var bl = m_Bar.AddItem(toolbarButton);
             if (m_IsGroup || c.BeginGroup)
             {
                 bl.BeginGroup = true;
             }
         }
         return(category);
     }
     return(null);
 }
示例#5
0
        protected void RefreshTool(Sys_Button sys_Button)
        {
            BarLargeButtonItem barButtonItem = (BarLargeButtonItem)sys_Button.Button_BarItem;

            if (barButtonItem != null)
            {
                barButtonItem.Enabled    = sys_Button.Button_Enabled;
                barButtonItem.Visibility = (BarItemVisibility)((!sys_Button.Button_Visible).ToIntEx());
                BarShortcut barShortcut = new BarShortcut((Keys)sys_Button.Button_Key | (Keys)sys_Button.Button_SecondKey);
                barButtonItem.ItemShortcut     = barShortcut;
                barButtonItem.ShowItemShortcut = DevExpress.Utils.DefaultBoolean.True;
                barButtonItem.Caption          = sys_Button.Button_Nick;
                barButtonItem.Hint             = sys_Button.Button_Hint ?? sys_Button.Button_Nick;
                if (SmallIconList != null && SmallIconList.Images[sys_Button.Button_Icon] != null)
                {
                    barButtonItem.ImageOptions.Image = SmallIconList.Images[sys_Button.Button_Icon];
                }
                if (sys_Button.Button_IsLarge)
                {
                    barButtonItem.ImageOptions.LargeImage = LargeIconList.Images[sys_Button.Button_Icon];
                }
                barButtonItem.Alignment        = (BarItemLinkAlignment)sys_Button.Button_Alignment;
                barButtonItem.CaptionAlignment = (BarItemCaptionAlignment)sys_Button.Button_CaptionAlignment;
                barButtonItem.PaintStyle       = BarItemPaintStyle.CaptionGlyph;
            }
        }
示例#6
0
 public void CreateToolBarButton(string name, EventHandler eventHandler, Image image, int linkIndex, bool isBeginGroup)
 {
     try
     {
         BarLargeButtonItem barLargeButtonItem;
         if (!this._toolbarList.Contains(name))
         {
             this._toolbarList.Add(name);
             linkIndex         += 4;
             barLargeButtonItem = new BarLargeButtonItem(this.barManager, name)
             {
                 CaptionAlignment = BarItemCaptionAlignment.Right,
                 Name             = string.Format("temp_{0}", name)
             };
             if (image != null)
             {
                 barLargeButtonItem.LargeGlyph = image;
                 barLargeButtonItem.Glyph      = image;
             }
             barLargeButtonItem.ItemClick += delegate(object sender, ItemClickEventArgs e) {
                 if (eventHandler != null)
                 {
                     eventHandler(barLargeButtonItem.Caption, e);
                 }
             };
             if (this.bar_toolBar.ItemLinks.Count <= linkIndex)
             {
                 BarItemLink link = this.bar_toolBar.AddItem(barLargeButtonItem);
                 if (isBeginGroup)
                 {
                     link.BeginGroup = true;
                 }
             }
             else
             {
                 BarItemLink beforeLink = this.bar_toolBar.ItemLinks[linkIndex];
                 if (beforeLink == null)
                 {
                     this.bar_toolBar.AddItem(barLargeButtonItem);
                 }
                 else
                 {
                     this.bar_toolBar.InsertItem(beforeLink, barLargeButtonItem);
                 }
                 if (isBeginGroup)
                 {
                     beforeLink.BeginGroup = true;
                 }
             }
         }
     }
     catch (Exception exception)
     {
         MessageBox.Show("创建工具条异常:" + exception.Message);
     }
 }
示例#7
0
 public void CreateToolBarButton(string name)
 {
     if (!this._toolbarList.Contains(name))
     {
         this._toolbarList.Add(name);
         BarLargeButtonItem item         = new BarLargeButtonItem(this.barManager, name);
         EventHandler       eventHandler = (sender, e) => MessageBox.Show(name);
         this.CreateToolBarButton(name, eventHandler);
     }
 }
示例#8
0
 private bool isButtonPressed(BarLargeButtonItem _button)
 {
     if (_button.Border == BorderStyles.Simple)
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
示例#9
0
        BarLargeButtonItem CreateItem(RaporTasarimlari item)
        {
            var br = new BarLargeButtonItem();

            br.Caption = item.DizaynIsmi;
            br.Tag     = item.Id;

            br.ImageOptions.Image      = Resource1.Yazdir;
            br.ImageOptions.LargeImage = Resource1.YazdirLarge;
            return(br);
        }
示例#10
0
        protected void OnAddToolBtn(string caption, string imageName)
        {
            BarLargeButtonItem btnItem = new BarLargeButtonItem();

            btnItem.Border = DevExpress.XtraEditors.Controls.BorderStyles.Default;
            if (imageName != null)
            {
                btnItem.LargeGlyph = (Image)Resources.ResourceManager.GetObject(imageName);
            }
            btnItem.Caption    = caption;
            btnItem.ItemClick += new ItemClickEventHandler(OnBtnCommand);
            bar1.AddItem(btnItem);
        }
示例#11
0
        private void InitMenu()
        {
            string[] strMenus = { "我的主页", "高级查询", "分类报表", "人员报表", "账户报表", "标签报表", "流水报表", "系统设置" };
            var      imgindex = 0;

            foreach (var item in strMenus)
            {
                BarLargeButtonItem barLargeItem = new BarLargeButtonItem(barMain, item);
                barLargeItem.LargeGlyph = largeImgs.Images[imgindex];//也可以设置 barLargeItem.LargeImageIndex,但是效果不是很好,可以试试
                barLargeItem.Hint       = item;
                barLargeItem.Tag        = item;
                imgindex++;
                barTop.LinksPersistInfo.Add(new LinkPersistInfo(barLargeItem, true));
                barMain.Items.Add(barLargeItem);
            }
        }
示例#12
0
 private void LoopMenu(DataTable dtMenu, DataRow dr, BarSubItem bsi)
 {
     foreach (DataRow drChild in dtMenu.Rows)
     {
         if (drChild["sysMenuParent"].ToString() == dr["sysMenuID"].ToString())
         {
             string menuName = Config.GetValue("Language").ToString() == "0" ? drChild["MenuName"].ToString() : drChild["MenuName2"].ToString();
             if (HasChild(dtMenu, drChild["sysMenuID"].ToString()))  //vua cha vua con
             {
                 BarSubItem bsiChild = new BarSubItem(barManagerMain, menuName);
                 if (GetImage(drChild))
                 {
                     bsiChild.ImageIndex = imageCollectionMain.Images.Count - 1;
                 }
                 //if (drChild["sysPackageID2"].ToString() == string.Empty)
                 //    barSubItemSystem.LinksPersistInfo.Add(new LinkPersistInfo(bsiChild));
                 //else
                 bsi.LinksPersistInfo.Add(new LinkPersistInfo(bsiChild));
                 LoopMenu(dtMenu, drChild, bsiChild);
             }
             else
             {   //menu con
                 BarLargeButtonItem bbi = new BarLargeButtonItem(barManagerMain, menuName);
                 bbi.Hint             = menuName;
                 bbi.Tag              = drChild;
                 bbi.CaptionAlignment = BarItemCaptionAlignment.Bottom;
                 string strShortcut = drChild["ShortKey"].ToString();
                 if (strShortcut != string.Empty)
                 {
                     bbi.ItemShortcut = new BarShortcut(GetShortcut(strShortcut));
                 }
                 if (GetImage(drChild))
                 {
                     bbi.ImageIndex = imageCollectionMain.Images.Count - 1;
                 }
                 //if (drChild["sysPackageID2"].ToString() == string.Empty)
                 //    barSubItemSystem.LinksPersistInfo.Add(new LinkPersistInfo(bbi));
                 //else
                 bsi.LinksPersistInfo.Add(new LinkPersistInfo(bbi));
                 if (Boolean.Parse(drChild["isToolbar"].ToString()))
                 {
                     barToolbars.LinksPersistInfo.Add(new LinkPersistInfo(BarLinkUserDefines.PaintStyle, bbi, BarItemPaintStyle.CaptionGlyph));
                 }
             }
         }
     }
 }
示例#13
0
        private void DrawToolBar()
        {
            ctlToolBar.ClearLinks();

            if (_Buttons == null)
            {
                return;
            }

            PopupButton        wPopupButton   = null;
            PopupMenu          wPopupMenu     = null;
            BarLargeButtonItem wBarButtonItem = null;


            foreach (ButtonBase wButton in _Buttons)
            {
                // Se arma un PopupButton
                if (wButton.GetType() == typeof(PopupButton))
                {
                    wBarButtonItem = CreateButtonBase(wButton);

                    wPopupButton                   = (PopupButton)wButton;
                    wPopupMenu                     = new PopupMenu(this.components);
                    wPopupMenu.Manager             = barManager1;
                    wBarButtonItem.DropDownControl = wPopupMenu;
                    wBarButtonItem.DropDownEnabled = true;
                    wBarButtonItem.ButtonStyle     = BarButtonStyle.DropDown;
                    wBarButtonItem.ActAsDropDown   = true;

                    foreach (ButtonBase item in wPopupButton.Buttons)
                    {
                        wPopupMenu.ItemLinks.Add(CreateButtonBase(item));
                    }

                    ctlToolBar.AddItem(wBarButtonItem);
                }
                else
                {
                    wBarButtonItem = CreateButtonBase(wButton);
                    //AAguirre - Se agrego esta linea y se comento la linea de arriba, el boton se agregaba en el bar manager y no en la toolbar
                    ctlToolBar.AddItem(wBarButtonItem);
                }
            }
        }
示例#14
0
 protected void ToggleToolByName(string toolName, bool enabled)
 {
     try
     {
         Sys_Button sys_Button = ButtonList.Find(b => b.Button_Sub != null && b.Button_Sub.Equals(toolName));
         if (sys_Button != null)
         {
             BaseBar.BeginUpdate();
             sys_Button.Button_Enabled = enabled;
             BarLargeButtonItem barButtonItem = (BarLargeButtonItem)sys_Button.Button_BarItem;
             barButtonItem.Enabled = enabled;
             BaseBar.EndUpdate();
         }
     }
     catch (Exception ex)
     {
         SharedFunc.RaiseError(ex);
     }
 }
示例#15
0
        private BarLargeButtonItem SetBarLargeButtonItem(SystemModuleData moduleData, IMainController controller, EventHandler eventHandler)
        {
            BarLargeButtonItem item = new BarLargeButtonItem(this.barManager, moduleData.moduleName)
            {
                Manager = { ShowFullMenus = true }
            };

            if (moduleData.toolbarIcon.Length > 1)
            {
                Image image = ImageHelper.CovertBytesToImage(moduleData.toolbarIcon, new Size(0x10, 0x10));
                item.Glyph = image;
            }
            item.Tag = controller;
            if (!this._quickChanelDictionary.ContainsKey(moduleData.moduleId))
            {
                this._quickChanelDictionary.Add(moduleData.moduleId, item);
            }
            item.ItemClick += delegate(object sender, ItemClickEventArgs e) {
                if (eventHandler != null)
                {
                    this._currentEventHandler = eventHandler;
                    _currentDeptId            = this.GenerateCurrentWstationDeptId(moduleData.deptId);
                    this._moduleid            = moduleData.moduleId;
                    UserContextManager.userContext.currentWorkstationModule = this.GenerateSystemModule(moduleData.moduleId);
                    this._currentController = controller;
                    if (!((this._dictTabCtroller == null) || this._dictTabCtroller.ContainsKey(moduleData.moduleName)))
                    {
                        TabControlController controller1 = new TabControlController
                        {
                            eventHandler   = eventHandler,
                            CurrentDeptid  = _currentDeptId,
                            ModuleId       = moduleData.moduleId,
                            CurrentModule  = UserContextManager.userContext.currentWorkstationModule,
                            MainController = controller
                        };
                        this._dictTabCtroller.Add(moduleData.moduleName, controller1);
                    }
                    eventHandler(e.Item.Tag, e);
                }
            };
            return(item);
        }
示例#16
0
 private void MainFrm_OnModuleClicked(object sender, EventArgs e)
 {
     if (sender is SystemModuleData)
     {
         SystemModuleData data           = sender as SystemModuleData;
         IMainController  mainController = null;
         BarItem          item           = new BarLargeButtonItem
         {
             Caption = data.moduleName
         };
         ItemClickEventArgs args = new ItemClickEventArgs(item, null);
         if (this._currentTabController != null)
         {
             this._currentMainControl = this._currentTabController.MainControl;
             mainController           = this._currentTabController.MainController;
         }
         else
         {
             mainController = ((MainFormController)this._formController).GenerateController(data.dllName, data.nameSpace);
             _currentDeptId = this.GenerateCurrentWstationDeptId(data.deptId);
             this._moduleid = data.moduleId;
             UserContextManager.userContext.currentWorkstationModule = this.GenerateSystemModule(data.moduleId);
             this._currentController   = mainController;
             this._currentEventHandler = ((MainFormController)this._formController).quickChanelEventHandler;
         }
         if (!((this._dictTabCtroller == null) || this._dictTabCtroller.ContainsKey(data.moduleName)))
         {
             TabControlController controller2 = new TabControlController
             {
                 eventHandler   = this._currentEventHandler,
                 CurrentDeptid  = _currentDeptId,
                 ModuleId       = data.moduleId,
                 CurrentModule  = UserContextManager.userContext.currentWorkstationModule,
                 MainController = mainController
             };
             this._dictTabCtroller.Add(data.moduleName, controller2);
         }
         ((MainFormController)this._formController).QuickChanelEventHandler(mainController, args);
     }
 }
示例#17
0
        public async static void LoadUserPermission(string function_id, BarLargeButtonItem btnDelete, BarLargeButtonItem btnPrint, BarLargeButtonItem btnImport, BarLargeButtonItem btnExport)
        {
            iPOS.DRO.Systems.SYS_tblPermissionDRO permission = new iPOS.DRO.Systems.SYS_tblPermissionDRO();
            permission = await iPOS.BUS.Systems.SYS_tblPermissionBUS.GetPermissionItem(CommonEngine.userInfo.UserID, ConfigEngine.Language, function_id);

            if (permission.ResponseItem.IsError)
            {
                CommonEngine.ShowHTTPErrorMessage(permission.ResponseItem);
                btnDelete.Enabled = btnPrint.Enabled = btnImport.Enabled = btnExport.Enabled = false;
                return;
            }
            if (permission.PermissionItem != null)
            {
                btnDelete.Enabled = permission.PermissionItem.AllowDelete;
                btnPrint.Enabled  = permission.PermissionItem.AllowPrint;
                btnImport.Enabled = permission.PermissionItem.AllowImport;
                btnExport.Enabled = permission.PermissionItem.AllowExport;
            }
            else
            {
                btnDelete.Enabled = btnPrint.Enabled = btnImport.Enabled = btnExport.Enabled = false;
            }
        }
示例#18
0
        /// <summary>
        /// Genera un BarLargeButtonItem
        /// </summary>
        /// <returns>BarLargeButtonItem</returns>
        /// <author>moviedo</author>
        BarLargeButtonItem CreateButtonBase(ButtonBase pButton)
        {
            BarLargeButtonItem    wBarButtonItem    = new BarLargeButtonItem();
            SuperToolTipSetupArgs wToolTipSetupArgs = null;

            if (pButton.Image != null)
            {
                wBarButtonItem.Glyph = Fwk.HelperFunctions.TypeFunctions.ConvertByteArrayToImage(pButton.Image);
            }

            wBarButtonItem.Caption          = pButton.Caption;
            wBarButtonItem.CaptionAlignment = BarItemCaptionAlignment.Bottom;
            wBarButtonItem.Tag  = pButton;
            wBarButtonItem.Hint = pButton.Hint;

            wBarButtonItem.PaintStyle       = DevExpress.XtraBars.BarItemPaintStyle.CaptionGlyph;
            wBarButtonItem.ItemClick       += new ItemClickEventHandler(barButtonItem_ItemClick);
            wBarButtonItem.SuperTip         = new SuperToolTip();
            wToolTipSetupArgs               = new SuperToolTipSetupArgs();
            wToolTipSetupArgs.Contents.Text = pButton.ToolTipText;
            wBarButtonItem.SuperTip.Setup(wToolTipSetupArgs);

            return(wBarButtonItem);
        }
示例#19
0
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmPage));
     this.barManager           = new DevExpress.XtraBars.BarManager(this.components);
     this.bar1                 = new DevExpress.XtraBars.Bar();
     this.btnSave              = new DevExpress.XtraBars.BarLargeButtonItem();
     this.btnUndo              = new DevExpress.XtraBars.BarLargeButtonItem();
     this.btnDelete            = new DevExpress.XtraBars.BarLargeButtonItem();
     this.btnRefresh           = new DevExpress.XtraBars.BarLargeButtonItem();
     this.btnLayout            = new DevExpress.XtraBars.BarLargeButtonItem();
     this.btnHelp              = new DevExpress.XtraBars.BarLargeButtonItem();
     this.btnClose             = 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.imageList1           = new System.Windows.Forms.ImageList(this.components);
     ((System.ComponentModel.ISupportInitialize)(this.barManager)).BeginInit();
     this.SuspendLayout();
     //
     // bar
     //
     this.barManager.Bars.AddRange(new DevExpress.XtraBars.Bar[] {
         this.bar1
     });
     this.barManager.DockControls.Add(this.barDockControlTop);
     this.barManager.DockControls.Add(this.barDockControlBottom);
     this.barManager.DockControls.Add(this.barDockControlLeft);
     this.barManager.DockControls.Add(this.barDockControlRight);
     this.barManager.Form   = this;
     this.barManager.Images = this.imageList1;
     this.barManager.Items.AddRange(new DevExpress.XtraBars.BarItem[] {
         this.btnSave,
         this.btnUndo,
         this.btnClose,
         this.btnDelete,
         this.btnRefresh,
         this.btnLayout,
         this.btnHelp
     });
     this.barManager.MainMenu  = this.bar1;
     this.barManager.MaxItemId = 7;
     //
     // bar1
     //
     this.bar1.BarName   = "菜单栏";
     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.btnSave, DevExpress.XtraBars.BarItemPaintStyle.CaptionGlyph),
         new DevExpress.XtraBars.LinkPersistInfo(DevExpress.XtraBars.BarLinkUserDefines.PaintStyle, this.btnUndo, DevExpress.XtraBars.BarItemPaintStyle.CaptionGlyph),
         new DevExpress.XtraBars.LinkPersistInfo(DevExpress.XtraBars.BarLinkUserDefines.PaintStyle, this.btnDelete, "", true, true, true, 0, null, DevExpress.XtraBars.BarItemPaintStyle.CaptionGlyph),
         new DevExpress.XtraBars.LinkPersistInfo(DevExpress.XtraBars.BarLinkUserDefines.PaintStyle, this.btnRefresh, "", true, true, true, 0, null, DevExpress.XtraBars.BarItemPaintStyle.CaptionGlyph),
         new DevExpress.XtraBars.LinkPersistInfo(DevExpress.XtraBars.BarLinkUserDefines.PaintStyle, this.btnLayout, "", true, true, true, 0, null, DevExpress.XtraBars.BarItemPaintStyle.CaptionGlyph),
         new DevExpress.XtraBars.LinkPersistInfo(DevExpress.XtraBars.BarLinkUserDefines.PaintStyle, this.btnHelp, "", true, true, true, 0, null, DevExpress.XtraBars.BarItemPaintStyle.CaptionGlyph),
         new DevExpress.XtraBars.LinkPersistInfo(DevExpress.XtraBars.BarLinkUserDefines.PaintStyle, this.btnClose, "", true, true, true, 0, null, DevExpress.XtraBars.BarItemPaintStyle.CaptionGlyph)
     });
     this.bar1.Text = "菜单栏";
     //
     // btnSave
     //
     this.btnSave.Caption    = "保存(&S)";
     this.btnSave.Id         = 0;
     this.btnSave.ImageIndex = 1;
     this.btnSave.Name       = "btnSave";
     this.btnSave.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.btnSave_ItemClick);
     //
     // btnUndo
     //
     this.btnUndo.Caption    = "撤销(&U)";
     this.btnUndo.Id         = 1;
     this.btnUndo.ImageIndex = 7;
     this.btnUndo.Name       = "btnUndo";
     this.btnUndo.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.btnUndo_ItemClick);
     //
     // btnDelete
     //
     this.btnDelete.Caption    = "删除选中行(&D)";
     this.btnDelete.Id         = 3;
     this.btnDelete.ImageIndex = 18;
     this.btnDelete.Name       = "btnDelete";
     this.btnDelete.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.btnDelete_ItemClick);
     //
     // btnRefresh
     //
     this.btnRefresh.Caption    = "刷新(&R)";
     this.btnRefresh.Id         = 4;
     this.btnRefresh.ImageIndex = 40;
     this.btnRefresh.Name       = "btnRefresh";
     this.btnRefresh.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.btnRefresh_ItemClick);
     //
     // btnLayout
     //
     this.btnLayout.Caption    = "设置布局(&L)";
     this.btnLayout.Id         = 5;
     this.btnLayout.ImageIndex = 52;
     this.btnLayout.Name       = "btnLayout";
     this.btnLayout.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.btnLayout_ItemClick);
     //
     // btnHelp
     //
     this.btnHelp.Caption    = "帮助(&H)";
     this.btnHelp.Id         = 6;
     this.btnHelp.ImageIndex = 27;
     this.btnHelp.Name       = "btnHelp";
     this.btnHelp.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.btnHelp_ItemClick);
     //
     // btnClose
     //
     this.btnClose.Caption    = "关闭(&C)";
     this.btnClose.Id         = 2;
     this.btnClose.ImageIndex = 16;
     this.btnClose.Name       = "btnClose";
     this.btnClose.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.btnClose_ItemClick);
     //
     // barDockControlTop
     //
     this.barDockControlTop.Name             = "barDockControlTop";
     this.barDockControlTop.CausesValidation = false;
     this.barDockControlTop.Dock             = System.Windows.Forms.DockStyle.Top;
     this.barDockControlTop.Location         = new System.Drawing.Point(0, 0);
     this.barDockControlTop.Size             = new System.Drawing.Size(703, 55);
     //
     // barDockControlBottom
     //
     this.barDockControlBottom.Name             = "barDockControlBottom";
     this.barDockControlBottom.CausesValidation = false;
     this.barDockControlBottom.Dock             = System.Windows.Forms.DockStyle.Bottom;
     this.barDockControlBottom.Location         = new System.Drawing.Point(0, 411);
     this.barDockControlBottom.Size             = new System.Drawing.Size(703, 0);
     //
     // barDockControlLeft
     //
     this.barDockControlLeft.Name             = "barDockControlLeft";
     this.barDockControlLeft.CausesValidation = false;
     this.barDockControlLeft.Dock             = System.Windows.Forms.DockStyle.Left;
     this.barDockControlLeft.Location         = new System.Drawing.Point(0, 55);
     this.barDockControlLeft.Size             = new System.Drawing.Size(0, 356);
     //
     // barDockControlRight
     //
     this.barDockControlRight.Name             = "barDockControlRight";
     this.barDockControlRight.CausesValidation = false;
     this.barDockControlRight.Dock             = System.Windows.Forms.DockStyle.Right;
     this.barDockControlRight.Location         = new System.Drawing.Point(703, 55);
     this.barDockControlRight.Size             = new System.Drawing.Size(0, 356);
     //
     // imageList1
     //
     this.imageList1.ImageStream      = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream")));
     this.imageList1.TransparentColor = System.Drawing.Color.Transparent;
     this.imageList1.Images.SetKeyName(0, "warning.png");
     this.imageList1.Images.SetKeyName(1, "accept.png");
     this.imageList1.Images.SetKeyName(2, "accept_page.png");
     this.imageList1.Images.SetKeyName(3, "add.png");
     this.imageList1.Images.SetKeyName(4, "add_page.png");
     this.imageList1.Images.SetKeyName(5, "add_to_folder.png");
     this.imageList1.Images.SetKeyName(6, "attachment.png");
     this.imageList1.Images.SetKeyName(7, "back.png");
     this.imageList1.Images.SetKeyName(8, "block.png");
     this.imageList1.Images.SetKeyName(9, "calendar.png");
     this.imageList1.Images.SetKeyName(10, "calendar_empty.png");
     this.imageList1.Images.SetKeyName(11, "chart.png");
     this.imageList1.Images.SetKeyName(12, "chart_pie.png");
     this.imageList1.Images.SetKeyName(13, "clock.png");
     this.imageList1.Images.SetKeyName(14, "comment.png");
     this.imageList1.Images.SetKeyName(15, "comments.png");
     this.imageList1.Images.SetKeyName(16, "delete.png");
     this.imageList1.Images.SetKeyName(17, "delete_folder.png");
     this.imageList1.Images.SetKeyName(18, "delete_page.png");
     this.imageList1.Images.SetKeyName(19, "download.png");
     this.imageList1.Images.SetKeyName(20, "favorite.png");
     this.imageList1.Images.SetKeyName(21, "folder.png");
     this.imageList1.Images.SetKeyName(22, "folder_accept.png");
     this.imageList1.Images.SetKeyName(23, "folder_full.png");
     this.imageList1.Images.SetKeyName(24, "full_page.png");
     this.imageList1.Images.SetKeyName(25, "heart.png");
     this.imageList1.Images.SetKeyName(26, "help.png");
     this.imageList1.Images.SetKeyName(27, "info.png");
     this.imageList1.Images.SetKeyName(28, "lock.png");
     this.imageList1.Images.SetKeyName(29, "mail.png");
     this.imageList1.Images.SetKeyName(30, "mail_lock.png");
     this.imageList1.Images.SetKeyName(31, "mail_receive.png");
     this.imageList1.Images.SetKeyName(32, "mail_search.png");
     this.imageList1.Images.SetKeyName(33, "mail_send.png");
     this.imageList1.Images.SetKeyName(34, "new_page.png");
     this.imageList1.Images.SetKeyName(35, "next.png");
     this.imageList1.Images.SetKeyName(36, "page_process.png");
     this.imageList1.Images.SetKeyName(37, "process.png");
     this.imageList1.Images.SetKeyName(38, "promotion.png");
     this.imageList1.Images.SetKeyName(39, "protection.png");
     this.imageList1.Images.SetKeyName(40, "refresh.png");
     this.imageList1.Images.SetKeyName(41, "rss.png");
     this.imageList1.Images.SetKeyName(42, "search.png");
     this.imageList1.Images.SetKeyName(43, "search_page.png");
     this.imageList1.Images.SetKeyName(44, "tag_blue.png");
     this.imageList1.Images.SetKeyName(45, "tag_green.png");
     this.imageList1.Images.SetKeyName(46, "text_page.png");
     this.imageList1.Images.SetKeyName(47, "unlock.png");
     this.imageList1.Images.SetKeyName(48, "user.png");
     this.imageList1.Images.SetKeyName(49, "users.png");
     this.imageList1.Images.SetKeyName(50, "Edit.png");
     this.imageList1.Images.SetKeyName(51, "Print.png");
     this.imageList1.Images.SetKeyName(52, "Layout.png");
     //
     // FrmPage
     //
     this.ClientSize = new System.Drawing.Size(703, 411);
     this.Controls.Add(this.barDockControlLeft);
     this.Controls.Add(this.barDockControlRight);
     this.Controls.Add(this.barDockControlBottom);
     this.Controls.Add(this.barDockControlTop);
     this.Name = "FrmPage";
     ((System.ComponentModel.ISupportInitialize)(this.barManager)).EndInit();
     this.ResumeLayout(false);
 }
示例#20
0
        private void InitializeComponent()
        {
            this.components = new Container();
            ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(FrmData));

            this.barManager1          = new BarManager(this.components);
            this.bar2                 = new Bar();
            this.barLargeButtonItem1  = new BarLargeButtonItem();
            this.barLargeButtonItem2  = new BarLargeButtonItem();
            this.barDockControlTop    = new BarDockControl();
            this.barDockControlBottom = new BarDockControl();
            this.barDockControlLeft   = new BarDockControl();
            this.barDockControlRight  = new BarDockControl();
            this.panelControl2        = new PanelControl();
            this.gridControl2         = new GridControl();
            this.gridView2            = new GridView();
            this.gridColumn9          = new GridColumn();
            this.gridColumn10         = new GridColumn();
            this.gridColumn11         = new GridColumn();
            this.gridColumn12         = new GridColumn();
            this.gridColumn1          = new GridColumn();
            this.gridColumn5          = new GridColumn();
            this.gridColumn6          = new GridColumn();
            this.gridColumn7          = new GridColumn();
            this.gridColumn8          = new GridColumn();
            ((ISupportInitialize)this.barManager1).BeginInit();
            ((ISupportInitialize)this.panelControl2).BeginInit();
            this.panelControl2.SuspendLayout();
            ((ISupportInitialize)this.gridControl2).BeginInit();
            ((ISupportInitialize)this.gridView2).BeginInit();
            base.SuspendLayout();
            this.barManager1.AllowQuickCustomization = false;
            this.barManager1.Bars.AddRange(new Bar[]
            {
                this.bar2
            });
            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.barLargeButtonItem1,
                this.barLargeButtonItem2
            });
            this.barManager1.MainMenu  = this.bar2;
            this.barManager1.MaxItemId = 9;
            this.bar2.BarName          = "Main menu";
            this.bar2.DockCol          = 0;
            this.bar2.DockRow          = 0;
            this.bar2.DockStyle        = BarDockStyle.Top;
            this.bar2.LinksPersistInfo.AddRange(new LinkPersistInfo[]
            {
                new LinkPersistInfo(this.barLargeButtonItem1),
                new LinkPersistInfo(this.barLargeButtonItem2)
            });
            this.bar2.OptionsBar.DrawDragBorder = false;
            this.bar2.OptionsBar.MultiLine      = true;
            this.bar2.OptionsBar.UseWholeRow    = true;
            this.bar2.Text = "Main menu";
            this.barLargeButtonItem1.Caption           = "预览";
            this.barLargeButtonItem1.Glyph             = (Image)componentResourceManager.GetObject("barLargeButtonItem1.Glyph");
            this.barLargeButtonItem1.Id                = 6;
            this.barLargeButtonItem1.LargeGlyph        = (Image)componentResourceManager.GetObject("barLargeButtonItem1.LargeGlyph");
            this.barLargeButtonItem1.Name              = "barLargeButtonItem1";
            this.barLargeButtonItem1.ItemClick        += new ItemClickEventHandler(this.barLargeButtonItem1_ItemClick);
            this.barLargeButtonItem2.Caption           = "导出";
            this.barLargeButtonItem2.Glyph             = (Image)componentResourceManager.GetObject("barLargeButtonItem2.Glyph");
            this.barLargeButtonItem2.Id                = 7;
            this.barLargeButtonItem2.LargeGlyph        = (Image)componentResourceManager.GetObject("barLargeButtonItem2.LargeGlyph");
            this.barLargeButtonItem2.Name              = "barLargeButtonItem2";
            this.barLargeButtonItem2.ItemClick        += new ItemClickEventHandler(this.barLargeButtonItem2_ItemClick);
            this.barDockControlTop.CausesValidation    = false;
            this.barDockControlTop.Dock                = DockStyle.Top;
            this.barDockControlTop.Location            = new Point(0, 0);
            this.barDockControlTop.Size                = new Size(719, 60);
            this.barDockControlBottom.CausesValidation = false;
            this.barDockControlBottom.Dock             = DockStyle.Bottom;
            this.barDockControlBottom.Location         = new Point(0, 476);
            this.barDockControlBottom.Size             = new Size(719, 0);
            this.barDockControlLeft.CausesValidation   = false;
            this.barDockControlLeft.Dock               = DockStyle.Left;
            this.barDockControlLeft.Location           = new Point(0, 60);
            this.barDockControlLeft.Size               = new Size(0, 416);
            this.barDockControlRight.CausesValidation  = false;
            this.barDockControlRight.Dock              = DockStyle.Right;
            this.barDockControlRight.Location          = new Point(719, 60);
            this.barDockControlRight.Size              = new Size(0, 416);
            this.panelControl2.Controls.Add(this.gridControl2);
            this.panelControl2.Dock       = DockStyle.Fill;
            this.panelControl2.Location   = new Point(0, 60);
            this.panelControl2.Name       = "panelControl2";
            this.panelControl2.Size       = new Size(719, 416);
            this.panelControl2.TabIndex   = 6;
            this.gridControl2.Dock        = DockStyle.Fill;
            this.gridControl2.Location    = new Point(2, 2);
            this.gridControl2.MainView    = this.gridView2;
            this.gridControl2.MenuManager = this.barManager1;
            this.gridControl2.Name        = "gridControl2";
            this.gridControl2.Size        = new Size(715, 412);
            this.gridControl2.TabIndex    = 0;
            this.gridControl2.ViewCollection.AddRange(new BaseView[]
            {
                this.gridView2
            });
            this.gridView2.Columns.AddRange(new GridColumn[]
            {
                this.gridColumn9,
                this.gridColumn10,
                this.gridColumn11,
                this.gridColumn12,
                this.gridColumn1
            });
            this.gridView2.FocusRectStyle = DrawFocusRectStyle.RowFullFocus;
            this.gridView2.GridControl    = this.gridControl2;
            this.gridView2.GroupSummary.AddRange(new GridSummaryItem[]
            {
                new GridGroupSummaryItem(SummaryItemType.None, "DataTypeId", null, ""),
                new GridGroupSummaryItem(SummaryItemType.None, "DataTypeName", null, "")
            });
            this.gridView2.Name = "gridView2";
            this.gridView2.OptionsBehavior.Editable = false;
            this.gridView2.OptionsCustomization.AllowColumnMoving = false;
            this.gridView2.OptionsCustomization.AllowFilter       = false;
            this.gridView2.OptionsView.ShowGroupPanel             = false;
            this.gridView2.ViewCaption     = "历史数据";
            this.gridColumn9.Caption       = "对象编号";
            this.gridColumn9.FieldName     = "DataTypeId";
            this.gridColumn9.Name          = "gridColumn9";
            this.gridColumn9.Visible       = true;
            this.gridColumn9.VisibleIndex  = 1;
            this.gridColumn10.Caption      = "对象名";
            this.gridColumn10.FieldName    = "DataTypeName";
            this.gridColumn10.Name         = "gridColumn10";
            this.gridColumn10.Visible      = true;
            this.gridColumn10.VisibleIndex = 2;
            this.gridColumn11.Caption      = "测量值";
            this.gridColumn11.FieldName    = "Value";
            this.gridColumn11.Name         = "gridColumn11";
            this.gridColumn11.Visible      = true;
            this.gridColumn11.VisibleIndex = 3;
            this.gridColumn12.Caption      = "测量时间";
            this.gridColumn12.DisplayFormat.FormatString = "yyyy/MM/dd  HH:mm:ss";
            this.gridColumn12.DisplayFormat.FormatType   = FormatType.DateTime;
            this.gridColumn12.FieldName    = "Time";
            this.gridColumn12.Name         = "gridColumn12";
            this.gridColumn12.Visible      = true;
            this.gridColumn12.VisibleIndex = 4;
            this.gridColumn1.Caption       = "编号";
            this.gridColumn1.FieldName     = "Id";
            this.gridColumn1.Name          = "gridColumn1";
            this.gridColumn1.Visible       = true;
            this.gridColumn1.VisibleIndex  = 0;
            this.gridColumn5.Caption       = "编号";
            this.gridColumn5.Name          = "gridColumn5";
            this.gridColumn5.Visible       = true;
            this.gridColumn5.VisibleIndex  = 0;
            this.gridColumn6.Caption       = "测量对象";
            this.gridColumn6.Name          = "gridColumn6";
            this.gridColumn6.Visible       = true;
            this.gridColumn6.VisibleIndex  = 1;
            this.gridColumn7.Caption       = "测量参数";
            this.gridColumn7.Name          = "gridColumn7";
            this.gridColumn7.Visible       = true;
            this.gridColumn7.VisibleIndex  = 2;
            this.gridColumn8.Caption       = "测量值";
            this.gridColumn8.Name          = "gridColumn8";
            this.gridColumn8.Visible       = true;
            this.gridColumn8.VisibleIndex  = 3;
            base.AutoScaleDimensions       = new SizeF(7f, 14f);
            base.AutoScaleMode             = AutoScaleMode.Font;
            base.ClientSize = new Size(719, 476);
            base.Controls.Add(this.panelControl2);
            base.Controls.Add(this.barDockControlLeft);
            base.Controls.Add(this.barDockControlRight);
            base.Controls.Add(this.barDockControlBottom);
            base.Controls.Add(this.barDockControlTop);
            base.Name  = "FrmData";
            this.Text  = "历史数据";
            base.Load += new EventHandler(this.FrmData_Load);
            ((ISupportInitialize)this.barManager1).EndInit();
            ((ISupportInitialize)this.panelControl2).EndInit();
            this.panelControl2.ResumeLayout(false);
            ((ISupportInitialize)this.gridControl2).EndInit();
            ((ISupportInitialize)this.gridView2).EndInit();
            base.ResumeLayout(false);
        }
示例#21
0
        private void InitializeComponent()
        {
            this.components = new Container();
            ComponentResourceManager manager = new ComponentResourceManager(typeof(FrmSetFault));

            this.barManager1              = new BarManager(this.components);
            this.bar2                     = new Bar();
            this.barLargeButtonItem6      = new BarLargeButtonItem();
            this.barLargeButtonItem7      = new BarLargeButtonItem();
            this.barLargeButtonItem8      = new BarLargeButtonItem();
            this.barLargeButtonItem9      = new BarLargeButtonItem();
            this.barLargeButtonItem10     = new BarLargeButtonItem();
            this.barLargeButtonItem11     = new BarLargeButtonItem();
            this.barDockControlTop        = new BarDockControl();
            this.barDockControlBottom     = new BarDockControl();
            this.barDockControlLeft       = new BarDockControl();
            this.barDockControlRight      = new BarDockControl();
            this.barLargeButtonItem4      = new BarLargeButtonItem();
            this.barStaticItem1           = new BarStaticItem();
            this.barStaticItem2           = new BarStaticItem();
            this.barStaticItem3           = new BarStaticItem();
            this.barLargeButtonItem1      = new BarLargeButtonItem();
            this.barLargeButtonItem2      = new BarLargeButtonItem();
            this.repositoryItemComboBox1  = new RepositoryItemComboBox();
            this.repositoryItemComboBox2  = new RepositoryItemComboBox();
            this.repositoryItemComboBox3  = new RepositoryItemComboBox();
            this.gridControl1             = new GridControl();
            this.gridView1                = new GridView();
            this.gridColumn7              = new GridColumn();
            this.gridColumn2              = new GridColumn();
            this.gridColumn3              = new GridColumn();
            this.gridColumn4              = new GridColumn();
            this.gridColumn5              = new GridColumn();
            this.gridColumn6              = new GridColumn();
            this.repositoryItemCheckEdit1 = new RepositoryItemCheckEdit();
            this.gridColumn1              = new GridColumn();
            this.popupMenu1               = new PopupMenu(this.components);
            this.button1                  = new Button();
            this.textBox1                 = new TextBox();
            this.barManager1.BeginInit();
            this.repositoryItemComboBox1.BeginInit();
            this.repositoryItemComboBox2.BeginInit();
            this.repositoryItemComboBox3.BeginInit();
            this.gridControl1.BeginInit();
            this.gridView1.BeginInit();
            this.repositoryItemCheckEdit1.BeginInit();
            this.popupMenu1.BeginInit();
            base.SuspendLayout();
            this.barManager1.AllowMoveBarOnToolbar   = false;
            this.barManager1.AllowQuickCustomization = false;
            this.barManager1.Bars.AddRange(new Bar[] { this.bar2 });
            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.barLargeButtonItem4, this.barStaticItem1, this.barLargeButtonItem6, this.barLargeButtonItem7, this.barLargeButtonItem8, this.barLargeButtonItem9, this.barLargeButtonItem10, this.barLargeButtonItem11, this.barStaticItem2, this.barStaticItem3, this.barLargeButtonItem1, this.barLargeButtonItem2 });
            this.barManager1.MainMenu  = this.bar2;
            this.barManager1.MaxItemId = 0x21;
            this.barManager1.RepositoryItems.AddRange(new RepositoryItem[] { this.repositoryItemComboBox1, this.repositoryItemComboBox2, this.repositoryItemComboBox3 });
            this.bar2.BarName   = "Main menu";
            this.bar2.DockCol   = 0;
            this.bar2.DockRow   = 0;
            this.bar2.DockStyle = BarDockStyle.Top;
            this.bar2.LinksPersistInfo.AddRange(new LinkPersistInfo[] { new LinkPersistInfo(this.barLargeButtonItem6, true), new LinkPersistInfo(this.barLargeButtonItem7), new LinkPersistInfo(this.barLargeButtonItem8), new LinkPersistInfo(this.barLargeButtonItem9), new LinkPersistInfo(this.barLargeButtonItem10, true), new LinkPersistInfo(this.barLargeButtonItem11) });
            this.bar2.OptionsBar.DrawDragBorder = false;
            this.bar2.OptionsBar.MultiLine      = true;
            this.bar2.OptionsBar.UseWholeRow    = true;
            this.bar2.Text = "Main menu";
            this.barLargeButtonItem6.Caption           = "读取故障";
            this.barLargeButtonItem6.Glyph             = (Image)manager.GetObject("barLargeButtonItem6.Glyph");
            this.barLargeButtonItem6.Id                = 0x17;
            this.barLargeButtonItem6.LargeGlyph        = (Image)manager.GetObject("barLargeButtonItem6.LargeGlyph");
            this.barLargeButtonItem6.Name              = "barLargeButtonItem6";
            this.barLargeButtonItem6.ItemClick        += new ItemClickEventHandler(this.barLargeButtonItem6_ItemClick);
            this.barLargeButtonItem7.Caption           = "设置故障";
            this.barLargeButtonItem7.Glyph             = (Image)manager.GetObject("barLargeButtonItem7.Glyph");
            this.barLargeButtonItem7.Id                = 0x18;
            this.barLargeButtonItem7.LargeGlyph        = (Image)manager.GetObject("barLargeButtonItem7.LargeGlyph");
            this.barLargeButtonItem7.Name              = "barLargeButtonItem7";
            this.barLargeButtonItem7.ItemClick        += new ItemClickEventHandler(this.barLargeButtonItem7_ItemClick);
            this.barLargeButtonItem8.Caption           = "删除故障";
            this.barLargeButtonItem8.Glyph             = (Image)manager.GetObject("barLargeButtonItem8.Glyph");
            this.barLargeButtonItem8.Id                = 0x19;
            this.barLargeButtonItem8.LargeGlyph        = (Image)manager.GetObject("barLargeButtonItem8.LargeGlyph");
            this.barLargeButtonItem8.Name              = "barLargeButtonItem8";
            this.barLargeButtonItem8.Visibility        = BarItemVisibility.Never;
            this.barLargeButtonItem9.Caption           = "清除故障";
            this.barLargeButtonItem9.Glyph             = (Image)manager.GetObject("barLargeButtonItem9.Glyph");
            this.barLargeButtonItem9.Id                = 0x1a;
            this.barLargeButtonItem9.LargeGlyph        = (Image)manager.GetObject("barLargeButtonItem9.LargeGlyph");
            this.barLargeButtonItem9.Name              = "barLargeButtonItem9";
            this.barLargeButtonItem9.ItemClick        += new ItemClickEventHandler(this.barLargeButtonItem9_ItemClick);
            this.barLargeButtonItem10.Caption          = "考核发题";
            this.barLargeButtonItem10.Glyph            = (Image)manager.GetObject("barLargeButtonItem10.Glyph");
            this.barLargeButtonItem10.Id               = 0x1b;
            this.barLargeButtonItem10.LargeGlyph       = (Image)manager.GetObject("barLargeButtonItem10.LargeGlyph");
            this.barLargeButtonItem10.Name             = "barLargeButtonItem10";
            this.barLargeButtonItem10.ItemClick       += new ItemClickEventHandler(this.barLargeButtonItem10_ItemClick);
            this.barLargeButtonItem11.Caption          = "发题参数设置";
            this.barLargeButtonItem11.Glyph            = (Image)manager.GetObject("barLargeButtonItem11.Glyph");
            this.barLargeButtonItem11.Id               = 0x1c;
            this.barLargeButtonItem11.LargeGlyph       = (Image)manager.GetObject("barLargeButtonItem11.LargeGlyph");
            this.barLargeButtonItem11.Name             = "barLargeButtonItem11";
            this.barLargeButtonItem11.ItemClick       += new ItemClickEventHandler(this.barLargeButtonItem11_ItemClick);
            this.barDockControlTop.CausesValidation    = false;
            this.barDockControlTop.Dock                = DockStyle.Top;
            this.barDockControlTop.Location            = new Point(0, 0);
            this.barDockControlTop.Margin              = new Padding(3, 4, 3, 4);
            this.barDockControlTop.Size                = new Size(0x3d0, 0x47);
            this.barDockControlBottom.CausesValidation = false;
            this.barDockControlBottom.Dock             = DockStyle.Bottom;
            this.barDockControlBottom.Location         = new Point(0, 0x284);
            this.barDockControlBottom.Margin           = new Padding(3, 4, 3, 4);
            this.barDockControlBottom.Size             = new Size(0x3d0, 0);
            this.barDockControlLeft.CausesValidation   = false;
            this.barDockControlLeft.Dock               = DockStyle.Left;
            this.barDockControlLeft.Location           = new Point(0, 0x47);
            this.barDockControlLeft.Margin             = new Padding(3, 4, 3, 4);
            this.barDockControlLeft.Size               = new Size(0, 0x23d);
            this.barDockControlRight.CausesValidation  = false;
            this.barDockControlRight.Dock              = DockStyle.Right;
            this.barDockControlRight.Location          = new Point(0x3d0, 0x47);
            this.barDockControlRight.Margin            = new Padding(3, 4, 3, 4);
            this.barDockControlRight.Size              = new Size(0, 0x23d);
            this.barLargeButtonItem4.Caption           = "设置故障";
            this.barLargeButtonItem4.Id                = 3;
            this.barLargeButtonItem4.Name              = "barLargeButtonItem4";
            this.barStaticItem1.Caption                = "共有故障  ,需设置故障   ,";
            this.barStaticItem1.Id                  = 4;
            this.barStaticItem1.Name                = "barStaticItem1";
            this.barStaticItem1.TextAlignment       = StringAlignment.Near;
            this.barStaticItem2.Caption             = "全选";
            this.barStaticItem2.Id                  = 0x1d;
            this.barStaticItem2.Name                = "barStaticItem2";
            this.barStaticItem2.TextAlignment       = StringAlignment.Near;
            this.barStaticItem3.Caption             = "反选";
            this.barStaticItem3.Id                  = 30;
            this.barStaticItem3.Name                = "barStaticItem3";
            this.barStaticItem3.TextAlignment       = StringAlignment.Near;
            this.barLargeButtonItem1.Caption        = "全选";
            this.barLargeButtonItem1.Id             = 0x1f;
            this.barLargeButtonItem1.Name           = "barLargeButtonItem1";
            this.barLargeButtonItem1.ItemClick     += new ItemClickEventHandler(this.barLargeButtonItem1_ItemClick);
            this.barLargeButtonItem2.Caption        = "反选";
            this.barLargeButtonItem2.Id             = 0x20;
            this.barLargeButtonItem2.Name           = "barLargeButtonItem2";
            this.barLargeButtonItem2.ItemClick     += new ItemClickEventHandler(this.barLargeButtonItem2_ItemClick);
            this.repositoryItemComboBox1.AutoHeight = false;
            this.repositoryItemComboBox1.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) });
            this.repositoryItemComboBox1.Name       = "repositoryItemComboBox1";
            this.repositoryItemComboBox2.AutoHeight = false;
            this.repositoryItemComboBox2.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) });
            this.repositoryItemComboBox2.Items.AddRange(new object[] { "增加故障点", "修改故障点", "删除故障点" });
            this.repositoryItemComboBox2.Name       = "repositoryItemComboBox2";
            this.repositoryItemComboBox3.AutoHeight = false;
            this.repositoryItemComboBox3.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) });
            this.repositoryItemComboBox3.Name          = "repositoryItemComboBox3";
            this.gridControl1.Dock                     = DockStyle.Fill;
            this.gridControl1.EmbeddedNavigator.Margin = new Padding(3, 4, 3, 4);
            this.gridControl1.Location                 = new Point(0, 0x47);
            this.gridControl1.MainView                 = this.gridView1;
            this.gridControl1.Margin                   = new Padding(3, 4, 3, 4);
            this.gridControl1.MenuManager              = this.barManager1;
            this.gridControl1.Name                     = "gridControl1";
            this.gridControl1.RepositoryItems.AddRange(new RepositoryItem[] { this.repositoryItemCheckEdit1 });
            this.gridControl1.Size     = new Size(0x3d0, 0x23d);
            this.gridControl1.TabIndex = 4;
            this.gridControl1.ViewCollection.AddRange(new BaseView[] { this.gridView1 });
            this.gridControl1.MouseUp += new MouseEventHandler(this.gridControl1_MouseUp);
            this.gridView1.Columns.AddRange(new GridColumn[] { this.gridColumn7, this.gridColumn2, this.gridColumn3, this.gridColumn4, this.gridColumn5, this.gridColumn6 });
            this.gridView1.FocusRectStyle = DrawFocusRectStyle.RowFullFocus;
            this.gridView1.GridControl    = this.gridControl1;
            this.gridView1.Name           = "gridView1";
            this.gridView1.OptionsCustomization.AllowColumnMoving = false;
            this.gridView1.OptionsCustomization.AllowFilter       = false;
            this.gridView1.OptionsView.ShowGroupPanel             = false;
            this.gridView1.CustomRowCellEdit         += new CustomRowCellEditEventHandler(this.gridView1_CustomRowCellEdit);
            this.gridView1.CellValueChanging         += new CellValueChangedEventHandler(this.gridView1_CellValueChanging);
            this.gridColumn7.Caption                  = "选择";
            this.gridColumn7.FieldName                = "Checked";
            this.gridColumn7.Name                     = "gridColumn7";
            this.gridColumn7.Visible                  = true;
            this.gridColumn7.VisibleIndex             = 0;
            this.gridColumn2.Caption                  = "编号";
            this.gridColumn2.FieldName                = "Id";
            this.gridColumn2.Name                     = "gridColumn2";
            this.gridColumn2.OptionsColumn.AllowEdit  = false;
            this.gridColumn2.Visible                  = true;
            this.gridColumn2.VisibleIndex             = 1;
            this.gridColumn2.Width                    = 0x34;
            this.gridColumn3.Caption                  = "故障点";
            this.gridColumn3.FieldName                = "Name";
            this.gridColumn3.Name                     = "gridColumn3";
            this.gridColumn3.OptionsColumn.AllowEdit  = false;
            this.gridColumn3.Visible                  = true;
            this.gridColumn3.VisibleIndex             = 2;
            this.gridColumn3.Width                    = 0x90;
            this.gridColumn4.Caption                  = "选择故障指令";
            this.gridColumn4.FieldName                = "FaultPattern";
            this.gridColumn4.Name                     = "gridColumn4";
            this.gridColumn4.Visible                  = true;
            this.gridColumn4.VisibleIndex             = 3;
            this.gridColumn4.Width                    = 320;
            this.gridColumn5.Caption                  = "故障状态";
            this.gridColumn5.FieldName                = "PointState";
            this.gridColumn5.Name                     = "gridColumn5";
            this.gridColumn5.OptionsColumn.AllowEdit  = false;
            this.gridColumn5.Visible                  = true;
            this.gridColumn5.VisibleIndex             = 4;
            this.gridColumn5.Width                    = 0xa8;
            this.gridColumn6.Caption                  = "是否正常";
            this.gridColumn6.FieldName                = "IsNormal";
            this.gridColumn6.Name                     = "gridColumn6";
            this.gridColumn6.OptionsColumn.AllowEdit  = false;
            this.gridColumn6.Visible                  = true;
            this.gridColumn6.VisibleIndex             = 5;
            this.gridColumn6.Width                    = 0x98;
            this.repositoryItemCheckEdit1.AutoHeight  = false;
            this.repositoryItemCheckEdit1.Caption     = "Check";
            this.repositoryItemCheckEdit1.Name        = "repositoryItemCheckEdit1";
            this.gridColumn1.Caption                  = "选择";
            this.gridColumn1.DisplayFormat.FormatType = FormatType.Custom;
            this.gridColumn1.FieldName                = "Checked";
            this.gridColumn1.Name                     = "gridColumn1";
            this.gridColumn1.Visible                  = true;
            this.gridColumn1.VisibleIndex             = 0;
            this.gridColumn1.Width                    = 0x34;
            this.popupMenu1.LinksPersistInfo.AddRange(new LinkPersistInfo[] { new LinkPersistInfo(this.barLargeButtonItem1), new LinkPersistInfo(this.barLargeButtonItem2) });
            this.popupMenu1.Manager = this.barManager1;
            this.popupMenu1.Name    = "popupMenu1";
            this.button1.Location   = new Point(0x24b, 0x20);
            this.button1.Name       = "button1";
            this.button1.Size       = new Size(0x4b, 0x17);
            this.button1.TabIndex   = 9;
            this.button1.Text       = "button1";
            this.button1.UseVisualStyleBackColor = true;
            this.button1.Visible     = false;
            this.button1.Click      += new EventHandler(this.button1_Click);
            this.textBox1.Location   = new Point(0x2ae, 0x1d);
            this.textBox1.Name       = "textBox1";
            this.textBox1.Size       = new Size(100, 0x1a);
            this.textBox1.TabIndex   = 10;
            this.textBox1.Visible    = false;
            this.AllowMdiBar         = true;
            base.AutoScaleDimensions = new SizeF(8f, 18f);
            base.AutoScaleMode       = AutoScaleMode.Font;
            base.ClientSize          = new Size(0x3d0, 0x284);
            base.Controls.Add(this.textBox1);
            base.Controls.Add(this.button1);
            base.Controls.Add(this.gridControl1);
            base.Controls.Add(this.barDockControlLeft);
            base.Controls.Add(this.barDockControlRight);
            base.Controls.Add(this.barDockControlBottom);
            base.Controls.Add(this.barDockControlTop);
            base.Margin      = new Padding(3, 4, 3, 4);
            base.Name        = "FrmSetFault";
            this.Text        = "设故考核";
            base.FormClosed += new FormClosedEventHandler(this.FrmSetFault_FormClosed);
            base.Load       += new EventHandler(this.FrmFaultPoint_Load);
            this.barManager1.EndInit();
            this.repositoryItemComboBox1.EndInit();
            this.repositoryItemComboBox2.EndInit();
            this.repositoryItemComboBox3.EndInit();
            this.gridControl1.EndInit();
            this.gridView1.EndInit();
            this.repositoryItemCheckEdit1.EndInit();
            this.popupMenu1.EndInit();
            base.ResumeLayout(false);
            base.PerformLayout();
        }
示例#22
0
 private void InitializeComponent()
 {
     this.components           = new System.ComponentModel.Container();
     this.barManager1          = new DevExpress.XtraBars.BarManager(this.components);
     this.bar2                 = new DevExpress.XtraBars.Bar();
     this.barLargeButtonItem3  = new DevExpress.XtraBars.BarLargeButtonItem();
     this.barLargeButtonItem1  = new DevExpress.XtraBars.BarLargeButtonItem();
     this.barLargeButtonItem2  = 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.panelControl2        = new DevExpress.XtraEditors.PanelControl();
     this.gridControl2         = new DevExpress.XtraGrid.GridControl();
     this.gridView2            = new DevExpress.XtraGrid.Views.Grid.GridView();
     this.gridColumn9          = 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.gridColumn1          = new DevExpress.XtraGrid.Columns.GridColumn();
     this.gridColumn5          = new DevExpress.XtraGrid.Columns.GridColumn();
     this.gridColumn6          = new DevExpress.XtraGrid.Columns.GridColumn();
     this.gridColumn7          = new DevExpress.XtraGrid.Columns.GridColumn();
     this.gridColumn8          = new DevExpress.XtraGrid.Columns.GridColumn();
     ((System.ComponentModel.ISupportInitialize)(this.barManager1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.panelControl2)).BeginInit();
     this.panelControl2.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.gridControl2)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.gridView2)).BeginInit();
     this.SuspendLayout();
     //
     // barManager1
     //
     this.barManager1.Bars.AddRange(new DevExpress.XtraBars.Bar[] {
         this.bar2
     });
     this.barManager1.DockControls.Add(this.barDockControlTop);
     this.barManager1.DockControls.Add(this.barDockControlBottom);
     this.barManager1.DockControls.Add(this.barDockControlLeft);
     this.barManager1.DockControls.Add(this.barDockControlRight);
     this.barManager1.Form = this;
     this.barManager1.Items.AddRange(new DevExpress.XtraBars.BarItem[] {
         this.barLargeButtonItem1,
         this.barLargeButtonItem2,
         this.barLargeButtonItem3
     });
     this.barManager1.MainMenu  = this.bar2;
     this.barManager1.MaxItemId = 10;
     //
     // bar2
     //
     this.bar2.BarName   = "Main menu";
     this.bar2.DockCol   = 0;
     this.bar2.DockRow   = 0;
     this.bar2.DockStyle = DevExpress.XtraBars.BarDockStyle.Top;
     this.bar2.LinksPersistInfo.AddRange(new DevExpress.XtraBars.LinkPersistInfo[] {
         new DevExpress.XtraBars.LinkPersistInfo(this.barLargeButtonItem3),
         new DevExpress.XtraBars.LinkPersistInfo(this.barLargeButtonItem1, true),
         new DevExpress.XtraBars.LinkPersistInfo(this.barLargeButtonItem2)
     });
     this.bar2.OptionsBar.AllowQuickCustomization = false;
     this.bar2.OptionsBar.DrawDragBorder          = false;
     this.bar2.OptionsBar.MultiLine   = true;
     this.bar2.OptionsBar.UseWholeRow = true;
     this.bar2.Text = "Main menu";
     //
     // barLargeButtonItem3
     //
     this.barLargeButtonItem3.Caption    = "清除历史数据";
     this.barLargeButtonItem3.Id         = 9;
     this.barLargeButtonItem3.Name       = "barLargeButtonItem3";
     this.barLargeButtonItem3.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.barLargeButtonItem3_ItemClick);
     //
     // barLargeButtonItem1
     //
     this.barLargeButtonItem1.Caption    = "预览";
     this.barLargeButtonItem1.Id         = 6;
     this.barLargeButtonItem1.Name       = "barLargeButtonItem1";
     this.barLargeButtonItem1.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.barLargeButtonItem1_ItemClick);
     //
     // barLargeButtonItem2
     //
     this.barLargeButtonItem2.Caption    = "导出";
     this.barLargeButtonItem2.Id         = 7;
     this.barLargeButtonItem2.Name       = "barLargeButtonItem2";
     this.barLargeButtonItem2.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.barLargeButtonItem2_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.barManager1;
     this.barDockControlTop.Size             = new System.Drawing.Size(719, 24);
     //
     // barDockControlBottom
     //
     this.barDockControlBottom.CausesValidation = false;
     this.barDockControlBottom.Dock             = System.Windows.Forms.DockStyle.Bottom;
     this.barDockControlBottom.Location         = new System.Drawing.Point(0, 476);
     this.barDockControlBottom.Manager          = this.barManager1;
     this.barDockControlBottom.Size             = new System.Drawing.Size(719, 0);
     //
     // barDockControlLeft
     //
     this.barDockControlLeft.CausesValidation = false;
     this.barDockControlLeft.Dock             = System.Windows.Forms.DockStyle.Left;
     this.barDockControlLeft.Location         = new System.Drawing.Point(0, 24);
     this.barDockControlLeft.Manager          = this.barManager1;
     this.barDockControlLeft.Size             = new System.Drawing.Size(0, 452);
     //
     // barDockControlRight
     //
     this.barDockControlRight.CausesValidation = false;
     this.barDockControlRight.Dock             = System.Windows.Forms.DockStyle.Right;
     this.barDockControlRight.Location         = new System.Drawing.Point(719, 24);
     this.barDockControlRight.Manager          = this.barManager1;
     this.barDockControlRight.Size             = new System.Drawing.Size(0, 452);
     //
     // panelControl2
     //
     this.panelControl2.Controls.Add(this.gridControl2);
     this.panelControl2.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.panelControl2.Location = new System.Drawing.Point(0, 24);
     this.panelControl2.Name     = "panelControl2";
     this.panelControl2.Size     = new System.Drawing.Size(719, 452);
     this.panelControl2.TabIndex = 6;
     //
     // gridControl2
     //
     this.gridControl2.Dock        = System.Windows.Forms.DockStyle.Fill;
     this.gridControl2.Location    = new System.Drawing.Point(2, 2);
     this.gridControl2.MainView    = this.gridView2;
     this.gridControl2.MenuManager = this.barManager1;
     this.gridControl2.Name        = "gridControl2";
     this.gridControl2.Size        = new System.Drawing.Size(715, 448);
     this.gridControl2.TabIndex    = 0;
     this.gridControl2.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
         this.gridView2
     });
     //
     // gridView2
     //
     this.gridView2.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] {
         this.gridColumn9,
         this.gridColumn10,
         this.gridColumn11,
         this.gridColumn12,
         this.gridColumn1
     });
     this.gridView2.FocusRectStyle = DevExpress.XtraGrid.Views.Grid.DrawFocusRectStyle.RowFullFocus;
     this.gridView2.GridControl    = this.gridControl2;
     this.gridView2.GroupSummary.AddRange(new DevExpress.XtraGrid.GridSummaryItem[] {
         new DevExpress.XtraGrid.GridGroupSummaryItem(DevExpress.Data.SummaryItemType.None, "DataTypeId", null, ""),
         new DevExpress.XtraGrid.GridGroupSummaryItem(DevExpress.Data.SummaryItemType.None, "DataTypeName", null, "")
     });
     this.gridView2.Name = "gridView2";
     this.gridView2.OptionsBehavior.Editable = false;
     this.gridView2.OptionsCustomization.AllowColumnMoving = false;
     this.gridView2.OptionsCustomization.AllowFilter       = false;
     this.gridView2.OptionsView.ShowGroupPanel             = false;
     this.gridView2.ViewCaption = "历史数据";
     //
     // gridColumn9
     //
     this.gridColumn9.Caption      = "对象编号";
     this.gridColumn9.FieldName    = "DataTypeId";
     this.gridColumn9.Name         = "gridColumn9";
     this.gridColumn9.Visible      = true;
     this.gridColumn9.VisibleIndex = 1;
     this.gridColumn9.Width        = 100;
     //
     // gridColumn10
     //
     this.gridColumn10.Caption      = "对象名";
     this.gridColumn10.FieldName    = "DataTypeName";
     this.gridColumn10.Name         = "gridColumn10";
     this.gridColumn10.Visible      = true;
     this.gridColumn10.VisibleIndex = 2;
     this.gridColumn10.Width        = 161;
     //
     // gridColumn11
     //
     this.gridColumn11.Caption      = "测量值";
     this.gridColumn11.FieldName    = "Value";
     this.gridColumn11.Name         = "gridColumn11";
     this.gridColumn11.Visible      = true;
     this.gridColumn11.VisibleIndex = 3;
     this.gridColumn11.Width        = 161;
     //
     // gridColumn12
     //
     this.gridColumn12.Caption = "测量时间";
     this.gridColumn12.DisplayFormat.FormatString = "yyyy/MM/dd  HH:mm:ss";
     this.gridColumn12.DisplayFormat.FormatType   = DevExpress.Utils.FormatType.DateTime;
     this.gridColumn12.FieldName    = "Time";
     this.gridColumn12.Name         = "gridColumn12";
     this.gridColumn12.Visible      = true;
     this.gridColumn12.VisibleIndex = 4;
     this.gridColumn12.Width        = 175;
     //
     // gridColumn1
     //
     this.gridColumn1.Caption      = "编号";
     this.gridColumn1.FieldName    = "Id";
     this.gridColumn1.Name         = "gridColumn1";
     this.gridColumn1.Visible      = true;
     this.gridColumn1.VisibleIndex = 0;
     this.gridColumn1.Width        = 100;
     //
     // gridColumn5
     //
     this.gridColumn5.Caption      = "编号";
     this.gridColumn5.Name         = "gridColumn5";
     this.gridColumn5.Visible      = true;
     this.gridColumn5.VisibleIndex = 0;
     //
     // gridColumn6
     //
     this.gridColumn6.Caption      = "测量对象";
     this.gridColumn6.Name         = "gridColumn6";
     this.gridColumn6.Visible      = true;
     this.gridColumn6.VisibleIndex = 1;
     //
     // gridColumn7
     //
     this.gridColumn7.Caption      = "测量参数";
     this.gridColumn7.Name         = "gridColumn7";
     this.gridColumn7.Visible      = true;
     this.gridColumn7.VisibleIndex = 2;
     //
     // gridColumn8
     //
     this.gridColumn8.Caption      = "测量值";
     this.gridColumn8.Name         = "gridColumn8";
     this.gridColumn8.Visible      = true;
     this.gridColumn8.VisibleIndex = 3;
     //
     // FrmData
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize          = new System.Drawing.Size(719, 476);
     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.Name  = "FrmData";
     this.Text  = "历史数据";
     this.Load += new System.EventHandler(this.FrmData_Load);
     ((System.ComponentModel.ISupportInitialize)(this.barManager1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.panelControl2)).EndInit();
     this.panelControl2.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.gridControl2)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.gridView2)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
示例#23
0
        /// <summary>
        /// Genera un BarLargeButtonItem
        /// </summary>
        /// <returns>BarLargeButtonItem</returns>
        /// <author>moviedo</author>
        BarLargeButtonItem CreateButtonBase(ButtonBase pButton)
        {
            BarLargeButtonItem wBarButtonItem = new BarLargeButtonItem();
            SuperToolTipSetupArgs wToolTipSetupArgs = null;

            if (pButton.Image != null)
                wBarButtonItem.Glyph = Fwk.HelperFunctions.TypeFunctions.ConvertByteArrayToImage(pButton.Image);

            wBarButtonItem.Caption = pButton.Caption;
            wBarButtonItem.CaptionAlignment = BarItemCaptionAlignment.Bottom;
            wBarButtonItem.Tag = pButton;
            wBarButtonItem.Hint = pButton.Hint;

            wBarButtonItem.PaintStyle = DevExpress.XtraBars.BarItemPaintStyle.CaptionGlyph;
            wBarButtonItem.ItemClick += new ItemClickEventHandler(barButtonItem_ItemClick);
            wBarButtonItem.SuperTip = new SuperToolTip();
            wToolTipSetupArgs = new SuperToolTipSetupArgs();
            wToolTipSetupArgs.Contents.Text = pButton.ToolTipText;
            wBarButtonItem.SuperTip.Setup(wToolTipSetupArgs);

            return wBarButtonItem;
        }
示例#24
0
        private void InitializeComponent()
        {
            components = new Container();
            ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(MainForm));

            barManager1               = new BarManager(components);
            _mainFunctionsBar         = new Bar();
            btFaces                   = new BarLargeButtonItem();
            btObjects                 = new BarLargeButtonItem();
            btCategories              = new BarLargeButtonItem();
            btWorkStations            = new BarLargeButtonItem();
            btSearch                  = new BarLargeButtonItem();
            btLogSearch               = new BarLargeButtonItem();
            btResults                 = new BarLargeButtonItem();
            btStatistic               = new BarLargeButtonItem();
            btSettings                = new BarLargeButtonItem();
            btUsers                   = new BarLargeButtonItem();
            btQueryTemplates          = new BarLargeButtonItem();
            barDockControlTop         = new BarDockControl();
            barDockControlBottom      = new BarDockControl();
            barDockControlLeft        = new BarDockControl();
            barDockControlRight       = new BarDockControl();
            repositoryItemImageEdit1  = new RepositoryItemImageEdit();
            repositoryItemButtonEdit1 = new RepositoryItemButtonEdit();
            repositoryItemTextEdit1   = new RepositoryItemTextEdit();
            repositoryItemDateEdit1   = new RepositoryItemDateEdit();
            bar1            = new Bar();
            bar3            = new Bar();
            barManager2     = new BarManager(components);
            barDockControl4 = new BarDockControl();
            barManager1.BeginInit();
            repositoryItemImageEdit1.BeginInit();
            repositoryItemButtonEdit1.BeginInit();
            repositoryItemTextEdit1.BeginInit();
            repositoryItemDateEdit1.BeginInit();
            repositoryItemDateEdit1.CalendarTimeProperties.BeginInit();
            barManager2.BeginInit();
            SuspendLayout();
            barManager1.AllowCustomization    = false;
            barManager1.AllowMoveBarOnToolbar = false;
            barManager1.Bars.AddRange(new Bar[1]
            {
                _mainFunctionsBar
            });
            barManager1.CloseButtonAffectAllTabs = false;
            barManager1.DockControls.Add(barDockControlTop);
            barManager1.DockControls.Add(barDockControlBottom);
            barManager1.DockControls.Add(barDockControlLeft);
            barManager1.DockControls.Add(barDockControlRight);
            barManager1.Form = this;
            barManager1.Items.AddRange(new BarItem[11]
            {
                btFaces,
                btObjects,
                btCategories,
                btWorkStations,
                btSearch,
                btStatistic,
                btSettings,
                btResults,
                btUsers,
                btLogSearch,
                btQueryTemplates
            });
            barManager1.MainMenu  = _mainFunctionsBar;
            barManager1.MaxItemId = 42;
            barManager1.RepositoryItems.AddRange(new RepositoryItem[4]
            {
                repositoryItemImageEdit1,
                repositoryItemButtonEdit1,
                repositoryItemTextEdit1,
                repositoryItemDateEdit1
            });
            barManager1.ShowFullMenus            = true;
            barManager1.ShowScreenTipsInToolbars = false;
            barManager1.ShowShortcutInScreenTips = false;
            _mainFunctionsBar.BarItemHorzIndent  = 5;
            _mainFunctionsBar.BarItemVertIndent  = 5;
            _mainFunctionsBar.BarName            = "Main menu";
            _mainFunctionsBar.CanDockStyle       = BarCanDockStyle.Top;
            _mainFunctionsBar.DockCol            = 0;
            _mainFunctionsBar.DockRow            = 0;
            _mainFunctionsBar.DockStyle          = BarDockStyle.Top;
            _mainFunctionsBar.LinksPersistInfo.AddRange(new LinkPersistInfo[11]
            {
                new LinkPersistInfo(btFaces),
                new LinkPersistInfo(btObjects),
                new LinkPersistInfo(BarLinkUserDefines.PaintStyle, btCategories, BarItemPaintStyle.CaptionGlyph),
                new LinkPersistInfo(BarLinkUserDefines.PaintStyle, btWorkStations, BarItemPaintStyle.CaptionGlyph),
                new LinkPersistInfo(BarLinkUserDefines.PaintStyle, btSearch, BarItemPaintStyle.CaptionGlyph),
                new LinkPersistInfo(btLogSearch),
                new LinkPersistInfo(btResults),
                new LinkPersistInfo(btStatistic),
                new LinkPersistInfo(btSettings),
                new LinkPersistInfo(btUsers),
                new LinkPersistInfo(btQueryTemplates)
            });
            _mainFunctionsBar.OptionsBar.AllowQuickCustomization = false;
            _mainFunctionsBar.OptionsBar.DisableCustomization    = true;
            _mainFunctionsBar.OptionsBar.DrawDragBorder          = false;
            _mainFunctionsBar.OptionsBar.RotateWhenVertical      = false;
            _mainFunctionsBar.OptionsBar.UseWholeRow             = true;
            componentResourceManager.ApplyResources(_mainFunctionsBar, "_mainFunctionsBar");
            btFaces.ActAsDropDown = true;
            btFaces.AllowAllUp    = true;
            btFaces.Border        = BorderStyles.Default;
            componentResourceManager.ApplyResources(btFaces, "btFaces");
            btFaces.DropDownEnabled = false;
            btFaces.Enabled         = false;
            btFaces.Glyph           = Resources.Apps_system_users_icon48;
            btFaces.Id              = 26;
            btFaces.MinSize         = new Size(115, 80);
            btFaces.Name            = "btFaces";
            btFaces.PaintStyle      = BarItemPaintStyle.CaptionGlyph;
            btFaces.ItemClick      += btFaces_ItemClick;
            btObjects.ActAsDropDown = true;
            btObjects.AllowAllUp    = true;
            btObjects.Border        = BorderStyles.Default;
            componentResourceManager.ApplyResources(btObjects, "btObjects");
            btObjects.DropDownEnabled = false;
            btObjects.Enabled         = false;
            btObjects.Glyph           = Resources.Company_icon;
            btObjects.Id               = 23;
            btObjects.MinSize          = new Size(115, 80);
            btObjects.Name             = "btObjects";
            btObjects.PaintStyle       = BarItemPaintStyle.CaptionGlyph;
            btObjects.ItemClick       += btObjects_ItemClick;
            btCategories.ActAsDropDown = true;
            btCategories.AllowAllUp    = true;
            btCategories.Border        = BorderStyles.Default;
            componentResourceManager.ApplyResources(btCategories, "btCategories");
            btCategories.DropDownEnabled = false;
            btCategories.Enabled         = false;
            btCategories.Glyph           = Resources.Apps_preferences_desktop_user_password_icon64;
            btCategories.Id              = 31;
            btCategories.MinSize         = new Size(115, 80);
            btCategories.Name            = "btCategories";
            btCategories.PaintStyle      = BarItemPaintStyle.CaptionGlyph;
            btCategories.ItemClick      += btCategories_ItemClick;
            btWorkStations.ActAsDropDown = true;
            btWorkStations.AllowAllUp    = true;
            btWorkStations.Border        = BorderStyles.Default;
            componentResourceManager.ApplyResources(btWorkStations, "btWorkStations");
            btWorkStations.DropDownEnabled = false;
            btWorkStations.Enabled         = false;
            btWorkStations.Glyph           = Resources.Computer_2;
            btWorkStations.Id         = 29;
            btWorkStations.MinSize    = new Size(115, 80);
            btWorkStations.Name       = "btWorkStations";
            btWorkStations.PaintStyle = BarItemPaintStyle.CaptionGlyph;
            btWorkStations.ItemClick += btWorkStations_ItemClick;
            btSearch.ActAsDropDown    = true;
            btSearch.AllowAllUp       = true;
            btSearch.Border           = BorderStyles.Default;
            componentResourceManager.ApplyResources(btSearch, "btSearch");
            btSearch.DropDownEnabled = false;
            btSearch.Enabled         = false;
            btSearch.Glyph           = Resources.Search64;
            btSearch.Id = 32;
            btSearch.ItemAppearance.Normal.Options.UseTextOptions = true;
            btSearch.ItemAppearance.Normal.TextOptions.WordWrap   = WordWrap.Wrap;
            btSearch.MinSize        = new Size(115, 80);
            btSearch.Name           = "btSearch";
            btSearch.PaintStyle     = BarItemPaintStyle.CaptionGlyph;
            btSearch.ItemClick     += btSearch_ItemClick;
            btLogSearch.Border      = BorderStyles.Default;
            btLogSearch.ButtonStyle = BarButtonStyle.Check;
            componentResourceManager.ApplyResources(btLogSearch, "btLogSearch");
            btLogSearch.Enabled     = false;
            btLogSearch.Glyph       = Resources.CamImage;
            btLogSearch.Id          = 38;
            btLogSearch.MinSize     = new Size(115, 80);
            btLogSearch.Name        = "btLogSearch";
            btLogSearch.PaintStyle  = BarItemPaintStyle.CaptionGlyph;
            btLogSearch.ItemClick  += barLargeButtonItem1_ItemClick;
            btResults.ActAsDropDown = true;
            btResults.AllowAllUp    = true;
            btResults.Border        = BorderStyles.Default;
            componentResourceManager.ApplyResources(btResults, "btResults");
            btResults.DropDownEnabled = false;
            btResults.Enabled         = false;
            btResults.Glyph           = Resources.Info64;
            btResults.Id              = 28;
            btResults.MinSize         = new Size(115, 80);
            btResults.Name            = "btResults";
            btResults.PaintStyle      = BarItemPaintStyle.CaptionGlyph;
            btResults.ItemClick      += btResults_ItemClick;
            btStatistic.ActAsDropDown = true;
            btStatistic.AllowAllUp    = true;
            btStatistic.Border        = BorderStyles.Default;
            componentResourceManager.ApplyResources(btStatistic, "btStatistic");
            btStatistic.DropDownEnabled = false;
            btStatistic.Enabled         = false;
            btStatistic.Glyph           = Resources.statistics64;
            btStatistic.Id           = 2;
            btStatistic.MinSize      = new Size(115, 80);
            btStatistic.Name         = "btStatistic";
            btStatistic.PaintStyle   = BarItemPaintStyle.CaptionGlyph;
            btStatistic.ItemClick   += biJornal_ItemClick;
            btSettings.ActAsDropDown = true;
            btSettings.AllowAllUp    = true;
            btSettings.Border        = BorderStyles.Default;
            componentResourceManager.ApplyResources(btSettings, "btSettings");
            btSettings.DropDownEnabled = false;
            btSettings.Enabled         = false;
            btSettings.Glyph           = Resources.ProfileFaces48;
            btSettings.Id                 = 0;
            btSettings.ImageIndex         = 0;
            btSettings.ImageIndexDisabled = 0;
            btSettings.ItemAppearance.Normal.Options.UseTextOptions = true;
            btSettings.ItemAppearance.Normal.TextOptions.WordWrap   = WordWrap.Wrap;
            btSettings.LargeImageIndex         = 0;
            btSettings.LargeImageIndexDisabled = 0;
            btSettings.MinSize    = new Size(115, 80);
            btSettings.Name       = "btSettings";
            btSettings.PaintStyle = BarItemPaintStyle.CaptionGlyph;
            btSettings.Visibility = BarItemVisibility.Never;
            btSettings.ItemClick += btSettings_ItemClick;
            btUsers.ActAsDropDown = true;
            btUsers.AllowAllUp    = true;
            btUsers.Border        = BorderStyles.Default;
            componentResourceManager.ApplyResources(btUsers, "btUsers");
            btUsers.DropDownEnabled = false;
            btUsers.Enabled         = false;
            btUsers.Glyph           = Resources.user_info64;
            btUsers.Id                   = 27;
            btUsers.MinSize              = new Size(115, 80);
            btUsers.Name                 = "btUsers";
            btUsers.PaintStyle           = BarItemPaintStyle.CaptionGlyph;
            btUsers.ItemClick           += btUsers_ItemClick;
            btQueryTemplates.Border      = BorderStyles.Default;
            btQueryTemplates.ButtonStyle = BarButtonStyle.Check;
            componentResourceManager.ApplyResources(btQueryTemplates, "btQueryTemplates");
            btQueryTemplates.DropDownEnabled = false;
            btQueryTemplates.Enabled         = false;
            btQueryTemplates.Glyph           = Resources.SQL64;
            btQueryTemplates.Id                = 39;
            btQueryTemplates.MinSize           = new Size(100, 0);
            btQueryTemplates.Name              = "btQueryTemplates";
            btQueryTemplates.PaintStyle        = BarItemPaintStyle.CaptionGlyph;
            btQueryTemplates.Visibility        = BarItemVisibility.Never;
            btQueryTemplates.ItemClick        += btQueryTemplates_ItemClick;
            barDockControlTop.CausesValidation = false;
            componentResourceManager.ApplyResources(barDockControlTop, "barDockControlTop");
            barDockControlBottom.CausesValidation = false;
            componentResourceManager.ApplyResources(barDockControlBottom, "barDockControlBottom");
            barDockControlLeft.CausesValidation = false;
            componentResourceManager.ApplyResources(barDockControlLeft, "barDockControlLeft");
            barDockControlRight.CausesValidation = false;
            componentResourceManager.ApplyResources(barDockControlRight, "barDockControlRight");
            componentResourceManager.ApplyResources(repositoryItemImageEdit1, "repositoryItemImageEdit1");
            repositoryItemImageEdit1.Buttons.AddRange(new EditorButton[1]
            {
                new EditorButton((ButtonPredefines)componentResourceManager.GetObject("repositoryItemImageEdit1.Buttons"))
            });
            repositoryItemImageEdit1.Name = "repositoryItemImageEdit1";
            componentResourceManager.ApplyResources(repositoryItemButtonEdit1, "repositoryItemButtonEdit1");
            repositoryItemButtonEdit1.Buttons.AddRange(new EditorButton[1]
            {
                new EditorButton()
            });
            repositoryItemButtonEdit1.Name = "repositoryItemButtonEdit1";
            componentResourceManager.ApplyResources(repositoryItemTextEdit1, "repositoryItemTextEdit1");
            repositoryItemTextEdit1.Name = "repositoryItemTextEdit1";
            componentResourceManager.ApplyResources(repositoryItemDateEdit1, "repositoryItemDateEdit1");
            repositoryItemDateEdit1.Buttons.AddRange(new EditorButton[1]
            {
                new EditorButton((ButtonPredefines)componentResourceManager.GetObject("repositoryItemDateEdit1.Buttons"))
            });
            repositoryItemDateEdit1.CalendarTimeProperties.Buttons.AddRange(new EditorButton[1]
            {
                new EditorButton()
            });
            repositoryItemDateEdit1.Name              = "repositoryItemDateEdit1";
            bar1.BarAppearance.Normal.Font            = (Font)componentResourceManager.GetObject("bar1.BarAppearance.Normal.Font");
            bar1.BarAppearance.Normal.Options.UseFont = true;
            bar1.BarName   = "Main menu";
            bar1.DockCol   = 0;
            bar1.DockRow   = 0;
            bar1.DockStyle = BarDockStyle.Top;
            bar1.LinksPersistInfo.AddRange(new LinkPersistInfo[2]
            {
                new LinkPersistInfo(btSettings),
                new LinkPersistInfo(btStatistic)
            });
            bar1.OptionsBar.UseWholeRow = true;
            componentResourceManager.ApplyResources(bar1, "bar1");
            bar3.BarAppearance.Normal.Font            = (Font)componentResourceManager.GetObject("bar3.BarAppearance.Normal.Font");
            bar3.BarAppearance.Normal.Options.UseFont = true;
            bar3.BarName   = "Main menu";
            bar3.DockCol   = 0;
            bar3.DockRow   = 0;
            bar3.DockStyle = BarDockStyle.Top;
            bar3.OptionsBar.UseWholeRow = true;
            componentResourceManager.ApplyResources(bar3, "bar3");
            barManager2.AllowCustomization       = false;
            barManager2.AllowMoveBarOnToolbar    = false;
            barManager2.AllowShowToolbarsPopup   = false;
            barManager2.CloseButtonAffectAllTabs = false;
            barManager2.DockingEnabled           = false;
            barManager2.Form                    = this;
            barManager2.MaxItemId               = 0;
            barManager2.ShowCloseButton         = true;
            barManager2.ShowFullMenus           = true;
            barManager2.ShowFullMenusAfterDelay = false;
            barDockControl4.CausesValidation    = false;
            componentResourceManager.ApplyResources(barDockControl4, "barDockControl4");
            Appearance.Options.UseFont = true;
            componentResourceManager.ApplyResources(this, "$this");
            AutoScaleMode = AutoScaleMode.Font;
            Controls.Add(barDockControlLeft);
            Controls.Add(barDockControlRight);
            Controls.Add(barDockControlBottom);
            Controls.Add(barDockControlTop);
            IsMdiContainer = true;
            KeyPreview     = true;
            Name           = "MainForm";
            SizeGripStyle  = SizeGripStyle.Hide;
            WindowState    = FormWindowState.Maximized;
            FormClosing   += EmplooyersForm_FormClosing;
            Load          += EmplooyersForm_Load;
            barManager1.EndInit();
            repositoryItemImageEdit1.EndInit();
            repositoryItemButtonEdit1.EndInit();
            repositoryItemTextEdit1.EndInit();
            repositoryItemDateEdit1.CalendarTimeProperties.EndInit();
            repositoryItemDateEdit1.EndInit();
            barManager2.EndInit();
            ResumeLayout(false);
        }
示例#25
0
 public static void ChangeCaptionBarLargeButtonItem(string parent_name, string language, BarLargeButtonItem[] bar_large_button_items)
 {
     foreach (BarLargeButtonItem bar_large_button_item in bar_large_button_items)
         ChangeCaptionBarLargeButtonItem(parent_name, language, bar_large_button_item);
 }
示例#26
0
        private void InitializeComponent()
        {
            this.components = new Container();
            ComponentResourceManager manager = new ComponentResourceManager(typeof(FrmModule));

            this.barManager1          = new BarManager(this.components);
            this.bar2                 = new Bar();
            this.barLargeButtonItem1  = new BarLargeButtonItem();
            this.barLargeButtonItem2  = new BarLargeButtonItem();
            this.barLargeButtonItem3  = new BarLargeButtonItem();
            this.barLargeButtonItem4  = new BarLargeButtonItem();
            this.barDockControlTop    = new BarDockControl();
            this.barDockControlBottom = new BarDockControl();
            this.barDockControlLeft   = new BarDockControl();
            this.barDockControlRight  = new BarDockControl();
            this.gridControl1         = new GridControl();
            this.gridView1            = new GridView();
            this.gridColumn1          = new GridColumn();
            this.gridColumn2          = new GridColumn();
            this.gridColumn3          = new GridColumn();
            this.barManager1.BeginInit();
            this.gridControl1.BeginInit();
            this.gridView1.BeginInit();
            base.SuspendLayout();
            this.barManager1.AllowMoveBarOnToolbar   = false;
            this.barManager1.AllowQuickCustomization = false;
            this.barManager1.Bars.AddRange(new Bar[] { this.bar2 });
            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.barLargeButtonItem1, this.barLargeButtonItem2, this.barLargeButtonItem3, this.barLargeButtonItem4 });
            this.barManager1.MainMenu  = this.bar2;
            this.barManager1.MaxItemId = 8;
            this.bar2.BarName          = "Main menu";
            this.bar2.DockCol          = 0;
            this.bar2.DockRow          = 0;
            this.bar2.DockStyle        = BarDockStyle.Top;
            this.bar2.LinksPersistInfo.AddRange(new LinkPersistInfo[] { new LinkPersistInfo(this.barLargeButtonItem1), new LinkPersistInfo(this.barLargeButtonItem2), new LinkPersistInfo(this.barLargeButtonItem3), new LinkPersistInfo(this.barLargeButtonItem4, true) });
            this.bar2.OptionsBar.DrawDragBorder = false;
            this.bar2.OptionsBar.MultiLine      = true;
            this.bar2.OptionsBar.UseWholeRow    = true;
            this.bar2.Text = "Main menu";
            this.barLargeButtonItem1.Caption           = "增加模块";
            this.barLargeButtonItem1.Glyph             = (Image)manager.GetObject("barLargeButtonItem1.Glyph");
            this.barLargeButtonItem1.Id                = 4;
            this.barLargeButtonItem1.LargeGlyph        = (Image)manager.GetObject("barLargeButtonItem1.LargeGlyph");
            this.barLargeButtonItem1.Name              = "barLargeButtonItem1";
            this.barLargeButtonItem1.ItemClick        += new ItemClickEventHandler(this.barLargeButtonItem1_ItemClick);
            this.barLargeButtonItem2.Caption           = "编辑模块";
            this.barLargeButtonItem2.Glyph             = (Image)manager.GetObject("barLargeButtonItem2.Glyph");
            this.barLargeButtonItem2.Id                = 5;
            this.barLargeButtonItem2.LargeGlyph        = (Image)manager.GetObject("barLargeButtonItem2.LargeGlyph");
            this.barLargeButtonItem2.Name              = "barLargeButtonItem2";
            this.barLargeButtonItem2.ItemClick        += new ItemClickEventHandler(this.barLargeButtonItem2_ItemClick);
            this.barLargeButtonItem3.Caption           = "删除模块";
            this.barLargeButtonItem3.Glyph             = (Image)manager.GetObject("barLargeButtonItem3.Glyph");
            this.barLargeButtonItem3.Id                = 6;
            this.barLargeButtonItem3.LargeGlyph        = (Image)manager.GetObject("barLargeButtonItem3.LargeGlyph");
            this.barLargeButtonItem3.Name              = "barLargeButtonItem3";
            this.barLargeButtonItem3.ItemClick        += new ItemClickEventHandler(this.barLargeButtonItem3_ItemClick);
            this.barLargeButtonItem4.Caption           = "刷新";
            this.barLargeButtonItem4.Glyph             = (Image)manager.GetObject("barLargeButtonItem4.Glyph");
            this.barLargeButtonItem4.Id                = 7;
            this.barLargeButtonItem4.LargeGlyph        = (Image)manager.GetObject("barLargeButtonItem4.LargeGlyph");
            this.barLargeButtonItem4.Name              = "barLargeButtonItem4";
            this.barLargeButtonItem4.Visibility        = BarItemVisibility.Never;
            this.barLargeButtonItem4.ItemClick        += new ItemClickEventHandler(this.barLargeButtonItem4_ItemClick);
            this.barDockControlTop.CausesValidation    = false;
            this.barDockControlTop.Dock                = DockStyle.Top;
            this.barDockControlTop.Location            = new Point(0, 0);
            this.barDockControlTop.Size                = new Size(0x250, 60);
            this.barDockControlBottom.CausesValidation = false;
            this.barDockControlBottom.Dock             = DockStyle.Bottom;
            this.barDockControlBottom.Location         = new Point(0, 0x192);
            this.barDockControlBottom.Size             = new Size(0x250, 0);
            this.barDockControlLeft.CausesValidation   = false;
            this.barDockControlLeft.Dock               = DockStyle.Left;
            this.barDockControlLeft.Location           = new Point(0, 60);
            this.barDockControlLeft.Size               = new Size(0, 0x156);
            this.barDockControlRight.CausesValidation  = false;
            this.barDockControlRight.Dock              = DockStyle.Right;
            this.barDockControlRight.Location          = new Point(0x250, 60);
            this.barDockControlRight.Size              = new Size(0, 0x156);
            this.gridControl1.Dock        = DockStyle.Fill;
            this.gridControl1.Location    = new Point(0, 60);
            this.gridControl1.MainView    = this.gridView1;
            this.gridControl1.MenuManager = this.barManager1;
            this.gridControl1.Name        = "gridControl1";
            this.gridControl1.Size        = new Size(0x250, 0x156);
            this.gridControl1.TabIndex    = 4;
            this.gridControl1.ViewCollection.AddRange(new BaseView[] { this.gridView1 });
            this.gridView1.Columns.AddRange(new GridColumn[] { this.gridColumn1, this.gridColumn2, this.gridColumn3 });
            this.gridView1.FocusRectStyle           = DrawFocusRectStyle.RowFullFocus;
            this.gridView1.GridControl              = this.gridControl1;
            this.gridView1.Name                     = "gridView1";
            this.gridView1.OptionsBehavior.Editable = false;
            this.gridView1.OptionsCustomization.AllowColumnMoving = false;
            this.gridView1.OptionsCustomization.AllowFilter       = false;
            this.gridView1.OptionsView.ShowGroupPanel             = false;
            this.gridColumn1.Caption      = "编号";
            this.gridColumn1.FieldName    = "Id";
            this.gridColumn1.Name         = "gridColumn1";
            this.gridColumn1.Visible      = true;
            this.gridColumn1.VisibleIndex = 0;
            this.gridColumn1.Width        = 0x45;
            this.gridColumn2.Caption      = "模块名";
            this.gridColumn2.FieldName    = "ModuleName";
            this.gridColumn2.Name         = "gridColumn2";
            this.gridColumn2.Visible      = true;
            this.gridColumn2.VisibleIndex = 1;
            this.gridColumn2.Width        = 0x103;
            this.gridColumn3.Caption      = "台架名";
            this.gridColumn3.FieldName    = "CarClass";
            this.gridColumn3.Name         = "gridColumn3";
            this.gridColumn3.Visible      = true;
            this.gridColumn3.VisibleIndex = 2;
            this.gridColumn3.Width        = 0xf6;
            base.AutoScaleDimensions      = new SizeF(7f, 14f);
            base.AutoScaleMode            = AutoScaleMode.Font;
            base.ClientSize = new Size(0x250, 0x192);
            base.Controls.Add(this.gridControl1);
            base.Controls.Add(this.barDockControlLeft);
            base.Controls.Add(this.barDockControlRight);
            base.Controls.Add(this.barDockControlBottom);
            base.Controls.Add(this.barDockControlTop);
            base.Name  = "FrmModule";
            this.Text  = "系统模块";
            base.Load += new EventHandler(this.FrmModule_Load);
            this.barManager1.EndInit();
            this.gridControl1.EndInit();
            this.gridView1.EndInit();
            base.ResumeLayout(false);
        }
示例#27
0
 private bool isButtonPressed(BarLargeButtonItem _button)
 {
     if (_button.Border == BorderStyles.Simple)
     {
         return true;
     }
     else
     {
         return false;
     }
 }
示例#28
0
 protected void RefreshTool()
 {
     BaseBar.BeginUpdate();
     BaseTool.BeginUpdate();
     BaseTool.ItemLinks.Clear();
     BaseStatus.BeginUpdate();
     BaseStatus.ItemLinks.Clear();
     BaseBar.Items.Clear();
     foreach (Sys_Button sys_Button in ButtonList.OrderBy(b => b.Button_Parent).ThenBy(b => b.Button_Sort))
     {
         BarLargeButtonItem barButtonItem = null;
         if (barButtonItem == null)
         {
             barButtonItem             = new BarLargeButtonItem();
             barButtonItem.Name        = sys_Button.Button_Id;
             sys_Button.Button_BarItem = barButtonItem;
             RefreshTool(sys_Button);
             //按钮存在父级
             if (!string.IsNullOrEmpty(sys_Button.Button_Parent))
             {
                 BarLargeButtonItem parentBarItem = (BarLargeButtonItem)BaseBar.Items[sys_Button.Button_Parent];
                 if (parentBarItem != null)
                 {
                     PopupMenu popupMenu = (PopupMenu)parentBarItem.DropDownControl;
                     if (popupMenu == null)
                     {
                         popupMenu = new PopupMenu();
                         parentBarItem.DropDownControl = popupMenu;
                         popupMenu.Manager             = BaseBar; //没有这一行会导致按钮Enabled=false时候出错
                         parentBarItem.ActAsDropDown   = true;
                         parentBarItem.ButtonStyle     = BarButtonStyle.DropDown;
                     }
                     BarItemLink itemLink = popupMenu.AddItem(barButtonItem);
                     itemLink.BeginGroup = sys_Button.Button_BeginGroup;
                 }
             }
             else
             {
                 if (sys_Button.Button_Assign.Equals(0))
                 {
                     BarItemLink itemLink = BaseTool.AddItem(barButtonItem);
                     itemLink.BeginGroup = sys_Button.Button_BeginGroup;
                 }
                 else
                 {
                     BarItemLink itemLink = BaseStatus.AddItem(barButtonItem);
                     itemLink.BeginGroup = sys_Button.Button_BeginGroup;
                 }
             }
             barButtonItem.ItemClick += new ItemClickEventHandler(this.InitializeToolClick);
         }
     }
     if (BaseTool.ItemLinks.Count.Equals(0))
     {
         BaseTool.Visible = false;
     }
     else
     {
         BaseTool.Visible = true;
     }
     if (BaseStatus.ItemLinks.Count.Equals(0))
     {
         BaseStatus.Visible = false;
     }
     else
     {
         BaseStatus.Visible = true;
     }
     BaseTool.EndUpdate();
     BaseStatus.EndUpdate();
     BaseBar.EndUpdate();
 }
示例#29
0
        private void InitializeComponent()
        {
            this.components = new Container();
            ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(FrmModuleInfo));

            this.gridControl1         = new GridControl();
            this.gridView1            = new GridView();
            this.gridColumn2          = new GridColumn();
            this.gridColumn3          = new GridColumn();
            this.gridColumn4          = new GridColumn();
            this.gridColumn1          = new GridColumn();
            this.gridColumn5          = new GridColumn();
            this.gridColumn6          = new GridColumn();
            this.barManager1          = new BarManager(this.components);
            this.bar2                 = new Bar();
            this.barLargeButtonItem1  = new BarLargeButtonItem();
            this.barDockControlTop    = new BarDockControl();
            this.barDockControlBottom = new BarDockControl();
            this.barDockControlLeft   = new BarDockControl();
            this.barDockControlRight  = new BarDockControl();
            ((ISupportInitialize)this.gridControl1).BeginInit();
            ((ISupportInitialize)this.gridView1).BeginInit();
            ((ISupportInitialize)this.barManager1).BeginInit();
            base.SuspendLayout();
            this.gridControl1.Dock     = DockStyle.Fill;
            this.gridControl1.Location = new Point(0, 60);
            this.gridControl1.MainView = this.gridView1;
            this.gridControl1.Name     = "gridControl1";
            this.gridControl1.Size     = new Size(679, 374);
            this.gridControl1.TabIndex = 4;
            this.gridControl1.ViewCollection.AddRange(new BaseView[]
            {
                this.gridView1
            });
            this.gridView1.Columns.AddRange(new GridColumn[]
            {
                this.gridColumn2,
                this.gridColumn3,
                this.gridColumn4,
                this.gridColumn1,
                this.gridColumn5,
                this.gridColumn6
            });
            this.gridView1.FocusRectStyle           = DrawFocusRectStyle.RowFullFocus;
            this.gridView1.GridControl              = this.gridControl1;
            this.gridView1.Name                     = "gridView1";
            this.gridView1.OptionsBehavior.Editable = false;
            this.gridView1.OptionsCustomization.AllowColumnMoving = false;
            this.gridView1.OptionsCustomization.AllowFilter       = false;
            this.gridView1.OptionsView.ShowGroupPanel             = false;
            this.gridColumn2.Caption      = "编号";
            this.gridColumn2.FieldName    = "Id";
            this.gridColumn2.Name         = "gridColumn2";
            this.gridColumn2.Visible      = true;
            this.gridColumn2.VisibleIndex = 0;
            this.gridColumn2.Width        = 99;
            this.gridColumn3.Caption      = "故障点";
            this.gridColumn3.FieldName    = "Name";
            this.gridColumn3.Name         = "gridColumn3";
            this.gridColumn3.Visible      = true;
            this.gridColumn3.VisibleIndex = 1;
            this.gridColumn3.Width        = 186;
            this.gridColumn4.Caption      = "可设指令";
            this.gridColumn4.FieldName    = "Pattern";
            this.gridColumn4.Name         = "gridColumn4";
            this.gridColumn4.Visible      = true;
            this.gridColumn4.VisibleIndex = 2;
            this.gridColumn4.Width        = 186;
            this.gridColumn1.Caption      = "当前状态";
            this.gridColumn1.FieldName    = "PointState";
            this.gridColumn1.Name         = "gridColumn1";
            this.gridColumn1.Visible      = true;
            this.gridColumn1.VisibleIndex = 3;
            this.gridColumn1.Width        = 86;
            this.gridColumn5.Caption      = "备注说明";
            this.gridColumn5.FieldName    = "PointMemo";
            this.gridColumn5.Name         = "gridColumn5";
            this.gridColumn5.Visible      = true;
            this.gridColumn5.VisibleIndex = 5;
            this.gridColumn5.Width        = 190;
            this.gridColumn6.Caption      = "是否正常";
            this.gridColumn6.FieldName    = "IsNormal";
            this.gridColumn6.Name         = "gridColumn6";
            this.gridColumn6.Visible      = true;
            this.gridColumn6.VisibleIndex = 4;
            this.barManager1.Bars.AddRange(new Bar[]
            {
                this.bar2
            });
            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.barLargeButtonItem1
            });
            this.barManager1.MainMenu  = this.bar2;
            this.barManager1.MaxItemId = 1;
            this.bar2.BarName          = "Main menu";
            this.bar2.DockCol          = 0;
            this.bar2.DockRow          = 0;
            this.bar2.DockStyle        = BarDockStyle.Top;
            this.bar2.LinksPersistInfo.AddRange(new LinkPersistInfo[]
            {
                new LinkPersistInfo(this.barLargeButtonItem1)
            });
            this.bar2.OptionsBar.AllowQuickCustomization = false;
            this.bar2.OptionsBar.DrawBorder  = false;
            this.bar2.OptionsBar.MultiLine   = true;
            this.bar2.OptionsBar.UseWholeRow = true;
            this.bar2.Text = "Main menu";
            this.barLargeButtonItem1.Caption           = "读取故障";
            this.barLargeButtonItem1.Glyph             = (Image)componentResourceManager.GetObject("barLargeButtonItem1.Glyph");
            this.barLargeButtonItem1.Id                = 0;
            this.barLargeButtonItem1.LargeGlyph        = (Image)componentResourceManager.GetObject("barLargeButtonItem1.LargeGlyph");
            this.barLargeButtonItem1.Name              = "barLargeButtonItem1";
            this.barLargeButtonItem1.ItemClick        += new ItemClickEventHandler(this.barLargeButtonItem1_ItemClick);
            this.barDockControlTop.CausesValidation    = false;
            this.barDockControlTop.Dock                = DockStyle.Top;
            this.barDockControlTop.Location            = new Point(0, 0);
            this.barDockControlTop.Size                = new Size(679, 60);
            this.barDockControlBottom.CausesValidation = false;
            this.barDockControlBottom.Dock             = DockStyle.Bottom;
            this.barDockControlBottom.Location         = new Point(0, 434);
            this.barDockControlBottom.Size             = new Size(679, 0);
            this.barDockControlLeft.CausesValidation   = false;
            this.barDockControlLeft.Dock               = DockStyle.Left;
            this.barDockControlLeft.Location           = new Point(0, 60);
            this.barDockControlLeft.Size               = new Size(0, 374);
            this.barDockControlRight.CausesValidation  = false;
            this.barDockControlRight.Dock              = DockStyle.Right;
            this.barDockControlRight.Location          = new Point(679, 60);
            this.barDockControlRight.Size              = new Size(0, 374);
            base.AutoScaleDimensions = new SizeF(7f, 14f);
            base.AutoScaleMode       = AutoScaleMode.Font;
            base.ClientSize          = new Size(679, 434);
            base.Controls.Add(this.gridControl1);
            base.Controls.Add(this.barDockControlLeft);
            base.Controls.Add(this.barDockControlRight);
            base.Controls.Add(this.barDockControlBottom);
            base.Controls.Add(this.barDockControlTop);
            base.Name  = "FrmModuleInfo";
            this.Text  = "模块信息";
            base.Load += new EventHandler(this.FrmFault_Load);
            ((ISupportInitialize)this.gridControl1).EndInit();
            ((ISupportInitialize)this.gridView1).EndInit();
            ((ISupportInitialize)this.barManager1).EndInit();
            base.ResumeLayout(false);
        }
示例#30
0
 private void InitializeComponent()
 {
     this.components                = new System.ComponentModel.Container();
     this.barManager1               = new DevExpress.XtraBars.BarManager(this.components);
     this.bar2                      = new DevExpress.XtraBars.Bar();
     this.barLargeButtonItem1       = new DevExpress.XtraBars.BarLargeButtonItem();
     this.barLargeButtonItem2       = new DevExpress.XtraBars.BarLargeButtonItem();
     this.barLargeButtonItem3       = new DevExpress.XtraBars.BarLargeButtonItem();
     this.bar3                      = new DevExpress.XtraBars.Bar();
     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.gridControl1              = new DevExpress.XtraGrid.GridControl();
     this.gridView1                 = new DevExpress.XtraGrid.Views.Grid.GridView();
     this.gridColumn1               = new DevExpress.XtraGrid.Columns.GridColumn();
     this.gridColumn2               = new DevExpress.XtraGrid.Columns.GridColumn();
     this.gridColumn3               = new DevExpress.XtraGrid.Columns.GridColumn();
     this.gridColumn4               = new DevExpress.XtraGrid.Columns.GridColumn();
     this.gridColumn14              = new DevExpress.XtraGrid.Columns.GridColumn();
     this.gridColumn15              = new DevExpress.XtraGrid.Columns.GridColumn();
     this.gridColumn16              = new DevExpress.XtraGrid.Columns.GridColumn();
     this.gridColumn17              = new DevExpress.XtraGrid.Columns.GridColumn();
     this.gridColumn19              = new DevExpress.XtraGrid.Columns.GridColumn();
     this.repositoryItemButtonEdit1 = new DevExpress.XtraEditors.Repository.RepositoryItemButtonEdit();
     this.panelControl1             = new DevExpress.XtraEditors.PanelControl();
     this.panelControl4             = new DevExpress.XtraEditors.PanelControl();
     this.panelControl3             = new DevExpress.XtraEditors.PanelControl();
     this.simpleButton2             = new DevExpress.XtraEditors.SimpleButton();
     this.simpleButton1             = new DevExpress.XtraEditors.SimpleButton();
     this.textEdit1                 = new DevExpress.XtraEditors.TextEdit();
     this.labelControl2             = new DevExpress.XtraEditors.LabelControl();
     this.comboBoxEdit1             = new DevExpress.XtraEditors.ComboBoxEdit();
     this.labelControl1             = new DevExpress.XtraEditors.LabelControl();
     this.panelControl2             = new DevExpress.XtraEditors.PanelControl();
     this.gridControl2              = new DevExpress.XtraGrid.GridControl();
     this.gridView2                 = new DevExpress.XtraGrid.Views.Grid.GridView();
     this.gridColumn9               = 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.gridColumn5               = new DevExpress.XtraGrid.Columns.GridColumn();
     this.gridColumn6               = new DevExpress.XtraGrid.Columns.GridColumn();
     this.gridColumn7               = new DevExpress.XtraGrid.Columns.GridColumn();
     this.gridColumn8               = new DevExpress.XtraGrid.Columns.GridColumn();
     this.timer1                    = new System.Windows.Forms.Timer(this.components);
     ((System.ComponentModel.ISupportInitialize)(this.barManager1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.gridControl1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.gridView1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.repositoryItemButtonEdit1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.panelControl1)).BeginInit();
     this.panelControl1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.panelControl4)).BeginInit();
     this.panelControl4.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.panelControl3)).BeginInit();
     this.panelControl3.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.textEdit1.Properties)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.comboBoxEdit1.Properties)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.panelControl2)).BeginInit();
     this.panelControl2.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.gridControl2)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.gridView2)).BeginInit();
     this.SuspendLayout();
     //
     // barManager1
     //
     this.barManager1.AllowMoveBarOnToolbar   = false;
     this.barManager1.AllowQuickCustomization = false;
     this.barManager1.Bars.AddRange(new DevExpress.XtraBars.Bar[] {
         this.bar2,
         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 DevExpress.XtraBars.BarItem[] {
         this.barLargeButtonItem1,
         this.barLargeButtonItem2,
         this.barLargeButtonItem3
     });
     this.barManager1.MainMenu  = this.bar2;
     this.barManager1.MaxItemId = 11;
     this.barManager1.StatusBar = this.bar3;
     //
     // bar2
     //
     this.bar2.BarName       = "Main menu";
     this.bar2.DockCol       = 0;
     this.bar2.DockRow       = 0;
     this.bar2.DockStyle     = DevExpress.XtraBars.BarDockStyle.Top;
     this.bar2.FloatLocation = new System.Drawing.Point(422, 153);
     this.bar2.LinksPersistInfo.AddRange(new DevExpress.XtraBars.LinkPersistInfo[] {
         new DevExpress.XtraBars.LinkPersistInfo(this.barLargeButtonItem1),
         new DevExpress.XtraBars.LinkPersistInfo(this.barLargeButtonItem2),
         new DevExpress.XtraBars.LinkPersistInfo(this.barLargeButtonItem3)
     });
     this.bar2.OptionsBar.DrawDragBorder = false;
     this.bar2.OptionsBar.MultiLine      = true;
     this.bar2.OptionsBar.UseWholeRow    = true;
     this.bar2.Text = "Main menu";
     //
     // barLargeButtonItem1
     //
     this.barLargeButtonItem1.Caption    = "预览";
     this.barLargeButtonItem1.Id         = 8;
     this.barLargeButtonItem1.Name       = "barLargeButtonItem1";
     this.barLargeButtonItem1.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.barLargeButtonItem1_ItemClick);
     //
     // barLargeButtonItem2
     //
     this.barLargeButtonItem2.Caption    = "导出";
     this.barLargeButtonItem2.Id         = 9;
     this.barLargeButtonItem2.Name       = "barLargeButtonItem2";
     this.barLargeButtonItem2.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.barLargeButtonItem2_ItemClick);
     //
     // barLargeButtonItem3
     //
     this.barLargeButtonItem3.Caption    = "考核详情";
     this.barLargeButtonItem3.Id         = 10;
     this.barLargeButtonItem3.Name       = "barLargeButtonItem3";
     this.barLargeButtonItem3.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.barLargeButtonItem3_ItemClick);
     //
     // 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.OptionsBar.AllowQuickCustomization = false;
     this.bar3.OptionsBar.DrawDragBorder          = false;
     this.bar3.OptionsBar.UseWholeRow             = true;
     this.bar3.Text = "Status bar";
     //
     // barDockControlTop
     //
     this.barDockControlTop.CausesValidation = false;
     this.barDockControlTop.Dock             = System.Windows.Forms.DockStyle.Top;
     this.barDockControlTop.Location         = new System.Drawing.Point(0, 0);
     this.barDockControlTop.Manager          = this.barManager1;
     this.barDockControlTop.Size             = new System.Drawing.Size(801, 24);
     //
     // barDockControlBottom
     //
     this.barDockControlBottom.CausesValidation = false;
     this.barDockControlBottom.Dock             = System.Windows.Forms.DockStyle.Bottom;
     this.barDockControlBottom.Location         = new System.Drawing.Point(0, 442);
     this.barDockControlBottom.Manager          = this.barManager1;
     this.barDockControlBottom.Size             = new System.Drawing.Size(801, 23);
     //
     // barDockControlLeft
     //
     this.barDockControlLeft.CausesValidation = false;
     this.barDockControlLeft.Dock             = System.Windows.Forms.DockStyle.Left;
     this.barDockControlLeft.Location         = new System.Drawing.Point(0, 24);
     this.barDockControlLeft.Manager          = this.barManager1;
     this.barDockControlLeft.Size             = new System.Drawing.Size(0, 418);
     //
     // barDockControlRight
     //
     this.barDockControlRight.CausesValidation = false;
     this.barDockControlRight.Dock             = System.Windows.Forms.DockStyle.Right;
     this.barDockControlRight.Location         = new System.Drawing.Point(801, 24);
     this.barDockControlRight.Manager          = this.barManager1;
     this.barDockControlRight.Size             = new System.Drawing.Size(0, 418);
     //
     // gridControl1
     //
     this.gridControl1.Dock        = System.Windows.Forms.DockStyle.Fill;
     this.gridControl1.Location    = new System.Drawing.Point(2, 2);
     this.gridControl1.MainView    = this.gridView1;
     this.gridControl1.MenuManager = this.barManager1;
     this.gridControl1.Name        = "gridControl1";
     this.gridControl1.RepositoryItems.AddRange(new DevExpress.XtraEditors.Repository.RepositoryItem[] {
         this.repositoryItemButtonEdit1
     });
     this.gridControl1.Size     = new System.Drawing.Size(793, 373);
     this.gridControl1.TabIndex = 4;
     this.gridControl1.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
         this.gridView1
     });
     //
     // gridView1
     //
     this.gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] {
         this.gridColumn1,
         this.gridColumn2,
         this.gridColumn3,
         this.gridColumn4,
         this.gridColumn14,
         this.gridColumn15,
         this.gridColumn16,
         this.gridColumn17,
         this.gridColumn19
     });
     this.gridView1.FocusRectStyle           = DevExpress.XtraGrid.Views.Grid.DrawFocusRectStyle.RowFullFocus;
     this.gridView1.GridControl              = this.gridControl1;
     this.gridView1.Name                     = "gridView1";
     this.gridView1.OptionsBehavior.Editable = false;
     this.gridView1.OptionsCustomization.AllowColumnMoving     = false;
     this.gridView1.OptionsCustomization.AllowFilter           = false;
     this.gridView1.OptionsCustomization.AllowQuickHideColumns = false;
     this.gridView1.OptionsView.ShowGroupPanel  = false;
     this.gridView1.OptionsView.ShowViewCaption = true;
     this.gridView1.ViewCaption = "此次考核成绩";
     this.gridView1.RowClick   += new DevExpress.XtraGrid.Views.Grid.RowClickEventHandler(this.gridView1_RowClick);
     //
     // gridColumn1
     //
     this.gridColumn1.Caption      = "学号";
     this.gridColumn1.FieldName    = "StudyNO";
     this.gridColumn1.Name         = "gridColumn1";
     this.gridColumn1.Visible      = true;
     this.gridColumn1.VisibleIndex = 0;
     this.gridColumn1.Width        = 59;
     //
     // gridColumn2
     //
     this.gridColumn2.Caption      = "姓名";
     this.gridColumn2.FieldName    = "StudyName";
     this.gridColumn2.Name         = "gridColumn2";
     this.gridColumn2.Visible      = true;
     this.gridColumn2.VisibleIndex = 1;
     this.gridColumn2.Width        = 90;
     //
     // gridColumn3
     //
     this.gridColumn3.Caption      = "性别";
     this.gridColumn3.FieldName    = "IsMan";
     this.gridColumn3.Name         = "gridColumn3";
     this.gridColumn3.Visible      = true;
     this.gridColumn3.VisibleIndex = 2;
     this.gridColumn3.Width        = 43;
     //
     // gridColumn4
     //
     this.gridColumn4.Caption      = "用户名";
     this.gridColumn4.FieldName    = "UserName";
     this.gridColumn4.Name         = "gridColumn4";
     this.gridColumn4.Visible      = true;
     this.gridColumn4.VisibleIndex = 3;
     this.gridColumn4.Width        = 81;
     //
     // gridColumn14
     //
     this.gridColumn14.Caption      = "考核成绩";
     this.gridColumn14.FieldName    = "score";
     this.gridColumn14.Name         = "gridColumn14";
     this.gridColumn14.Visible      = true;
     this.gridColumn14.VisibleIndex = 4;
     this.gridColumn14.Width        = 103;
     //
     // gridColumn15
     //
     this.gridColumn15.Caption      = "答题次数";
     this.gridColumn15.FieldName    = "testtimes";
     this.gridColumn15.Name         = "gridColumn15";
     this.gridColumn15.Visible      = true;
     this.gridColumn15.VisibleIndex = 5;
     this.gridColumn15.Width        = 103;
     //
     // gridColumn16
     //
     this.gridColumn16.Caption      = "答题用时";
     this.gridColumn16.FieldName    = "usetime";
     this.gridColumn16.Name         = "gridColumn16";
     this.gridColumn16.Visible      = true;
     this.gridColumn16.VisibleIndex = 6;
     this.gridColumn16.Width        = 115;
     //
     // gridColumn17
     //
     this.gridColumn17.Caption      = "答题时间";
     this.gridColumn17.FieldName    = "begintime";
     this.gridColumn17.Name         = "gridColumn17";
     this.gridColumn17.Visible      = true;
     this.gridColumn17.VisibleIndex = 7;
     //
     // gridColumn19
     //
     this.gridColumn19.Caption      = "考核状态";
     this.gridColumn19.FieldName    = "CheckState";
     this.gridColumn19.Name         = "gridColumn19";
     this.gridColumn19.Visible      = true;
     this.gridColumn19.VisibleIndex = 8;
     //
     // repositoryItemButtonEdit1
     //
     this.repositoryItemButtonEdit1.AutoHeight = false;
     this.repositoryItemButtonEdit1.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
         new DevExpress.XtraEditors.Controls.EditorButton()
     });
     this.repositoryItemButtonEdit1.Name = "repositoryItemButtonEdit1";
     //
     // panelControl1
     //
     this.panelControl1.Controls.Add(this.panelControl4);
     this.panelControl1.Controls.Add(this.panelControl3);
     this.panelControl1.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.panelControl1.Location = new System.Drawing.Point(0, 24);
     this.panelControl1.Name     = "panelControl1";
     this.panelControl1.Size     = new System.Drawing.Size(801, 418);
     this.panelControl1.TabIndex = 5;
     //
     // panelControl4
     //
     this.panelControl4.Controls.Add(this.gridControl1);
     this.panelControl4.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.panelControl4.Location = new System.Drawing.Point(2, 39);
     this.panelControl4.Name     = "panelControl4";
     this.panelControl4.Size     = new System.Drawing.Size(797, 377);
     this.panelControl4.TabIndex = 6;
     //
     // panelControl3
     //
     this.panelControl3.Controls.Add(this.simpleButton2);
     this.panelControl3.Controls.Add(this.simpleButton1);
     this.panelControl3.Controls.Add(this.textEdit1);
     this.panelControl3.Controls.Add(this.labelControl2);
     this.panelControl3.Controls.Add(this.comboBoxEdit1);
     this.panelControl3.Controls.Add(this.labelControl1);
     this.panelControl3.Dock     = System.Windows.Forms.DockStyle.Top;
     this.panelControl3.Location = new System.Drawing.Point(2, 2);
     this.panelControl3.Name     = "panelControl3";
     this.panelControl3.Size     = new System.Drawing.Size(797, 37);
     this.panelControl3.TabIndex = 5;
     //
     // simpleButton2
     //
     this.simpleButton2.Location = new System.Drawing.Point(329, 3);
     this.simpleButton2.Name     = "simpleButton2";
     this.simpleButton2.Size     = new System.Drawing.Size(98, 30);
     this.simpleButton2.TabIndex = 5;
     this.simpleButton2.Text     = "全部显示";
     this.simpleButton2.Click   += new System.EventHandler(this.simpleButton2_Click);
     //
     // simpleButton1
     //
     this.simpleButton1.Location = new System.Drawing.Point(246, 3);
     this.simpleButton1.Name     = "simpleButton1";
     this.simpleButton1.Size     = new System.Drawing.Size(77, 30);
     this.simpleButton1.TabIndex = 4;
     this.simpleButton1.Text     = "查找";
     this.simpleButton1.Click   += new System.EventHandler(this.simpleButton1_Click);
     //
     // textEdit1
     //
     this.textEdit1.EditValue   = "";
     this.textEdit1.Location    = new System.Drawing.Point(139, 5);
     this.textEdit1.MenuManager = this.barManager1;
     this.textEdit1.Name        = "textEdit1";
     this.textEdit1.Size        = new System.Drawing.Size(82, 20);
     this.textEdit1.TabIndex    = 3;
     //
     // labelControl2
     //
     this.labelControl2.Location = new System.Drawing.Point(105, 8);
     this.labelControl2.Name     = "labelControl2";
     this.labelControl2.Size     = new System.Drawing.Size(28, 14);
     this.labelControl2.TabIndex = 2;
     this.labelControl2.Text     = "查找:";
     //
     // comboBoxEdit1
     //
     this.comboBoxEdit1.EditValue   = "学号";
     this.comboBoxEdit1.Location    = new System.Drawing.Point(24, 4);
     this.comboBoxEdit1.MenuManager = this.barManager1;
     this.comboBoxEdit1.Name        = "comboBoxEdit1";
     this.comboBoxEdit1.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
         new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)
     });
     this.comboBoxEdit1.Properties.Items.AddRange(new object[] {
         "学号",
         "姓名",
         "用户名"
     });
     this.comboBoxEdit1.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.DisableTextEditor;
     this.comboBoxEdit1.Size     = new System.Drawing.Size(75, 20);
     this.comboBoxEdit1.TabIndex = 1;
     //
     // labelControl1
     //
     this.labelControl1.Location = new System.Drawing.Point(6, 6);
     this.labelControl1.Name     = "labelControl1";
     this.labelControl1.Size     = new System.Drawing.Size(12, 14);
     this.labelControl1.TabIndex = 0;
     this.labelControl1.Text     = "按";
     //
     // panelControl2
     //
     this.panelControl2.Controls.Add(this.gridControl2);
     this.panelControl2.Dock     = System.Windows.Forms.DockStyle.Bottom;
     this.panelControl2.Location = new System.Drawing.Point(0, 243);
     this.panelControl2.Name     = "panelControl2";
     this.panelControl2.Size     = new System.Drawing.Size(801, 199);
     this.panelControl2.TabIndex = 6;
     //
     // gridControl2
     //
     this.gridControl2.Dock        = System.Windows.Forms.DockStyle.Fill;
     this.gridControl2.Location    = new System.Drawing.Point(2, 2);
     this.gridControl2.MainView    = this.gridView2;
     this.gridControl2.MenuManager = this.barManager1;
     this.gridControl2.Name        = "gridControl2";
     this.gridControl2.Size        = new System.Drawing.Size(797, 195);
     this.gridControl2.TabIndex    = 0;
     this.gridControl2.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
         this.gridView2
     });
     //
     // gridView2
     //
     this.gridView2.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] {
         this.gridColumn9,
         this.gridColumn10,
         this.gridColumn11,
         this.gridColumn12
     });
     this.gridView2.FocusRectStyle           = DevExpress.XtraGrid.Views.Grid.DrawFocusRectStyle.RowFullFocus;
     this.gridView2.GridControl              = this.gridControl2;
     this.gridView2.Name                     = "gridView2";
     this.gridView2.OptionsBehavior.Editable = false;
     this.gridView2.OptionsCustomization.AllowColumnMoving     = false;
     this.gridView2.OptionsCustomization.AllowFilter           = false;
     this.gridView2.OptionsCustomization.AllowQuickHideColumns = false;
     this.gridView2.OptionsView.ShowGroupPanel  = false;
     this.gridView2.OptionsView.ShowViewCaption = true;
     this.gridView2.ViewCaption = "历史考试成绩";
     //
     // gridColumn9
     //
     this.gridColumn9.Caption      = "学号";
     this.gridColumn9.FieldName    = "TesterNO";
     this.gridColumn9.Name         = "gridColumn9";
     this.gridColumn9.Visible      = true;
     this.gridColumn9.VisibleIndex = 0;
     //
     // gridColumn10
     //
     this.gridColumn10.Caption      = "姓名";
     this.gridColumn10.FieldName    = "TesterName";
     this.gridColumn10.Name         = "gridColumn10";
     this.gridColumn10.Visible      = true;
     this.gridColumn10.VisibleIndex = 1;
     //
     // gridColumn11
     //
     this.gridColumn11.Caption      = "考核成绩";
     this.gridColumn11.FieldName    = "score";
     this.gridColumn11.Name         = "gridColumn11";
     this.gridColumn11.Visible      = true;
     this.gridColumn11.VisibleIndex = 2;
     //
     // gridColumn12
     //
     this.gridColumn12.Caption      = "考核时间";
     this.gridColumn12.FieldName    = "begintime";
     this.gridColumn12.Name         = "gridColumn12";
     this.gridColumn12.Visible      = true;
     this.gridColumn12.VisibleIndex = 3;
     //
     // gridColumn5
     //
     this.gridColumn5.Caption      = "编号";
     this.gridColumn5.Name         = "gridColumn5";
     this.gridColumn5.Visible      = true;
     this.gridColumn5.VisibleIndex = 0;
     //
     // gridColumn6
     //
     this.gridColumn6.Caption      = "测量对象";
     this.gridColumn6.Name         = "gridColumn6";
     this.gridColumn6.Visible      = true;
     this.gridColumn6.VisibleIndex = 1;
     //
     // gridColumn7
     //
     this.gridColumn7.Caption      = "测量参数";
     this.gridColumn7.Name         = "gridColumn7";
     this.gridColumn7.Visible      = true;
     this.gridColumn7.VisibleIndex = 2;
     //
     // gridColumn8
     //
     this.gridColumn8.Caption      = "测量值";
     this.gridColumn8.Name         = "gridColumn8";
     this.gridColumn8.Visible      = true;
     this.gridColumn8.VisibleIndex = 3;
     //
     // timer1
     //
     this.timer1.Interval = 3000;
     this.timer1.Tick    += new System.EventHandler(this.timer1_Tick);
     //
     // FrmCheckScore
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize          = new System.Drawing.Size(801, 465);
     this.Controls.Add(this.panelControl2);
     this.Controls.Add(this.panelControl1);
     this.Controls.Add(this.barDockControlLeft);
     this.Controls.Add(this.barDockControlRight);
     this.Controls.Add(this.barDockControlBottom);
     this.Controls.Add(this.barDockControlTop);
     this.Name  = "FrmCheckScore";
     this.Text  = "考核成绩查询";
     this.Load += new System.EventHandler(this.FrmCheckScore_Load);
     ((System.ComponentModel.ISupportInitialize)(this.barManager1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.gridControl1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.gridView1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.repositoryItemButtonEdit1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.panelControl1)).EndInit();
     this.panelControl1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.panelControl4)).EndInit();
     this.panelControl4.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.panelControl3)).EndInit();
     this.panelControl3.ResumeLayout(false);
     this.panelControl3.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.textEdit1.Properties)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.comboBoxEdit1.Properties)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.panelControl2)).EndInit();
     this.panelControl2.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.gridControl2)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.gridView2)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
示例#31
0
        private void InitializeComponent()
        {
            this.components = new Container();
            ComponentResourceManager manager = new ComponentResourceManager(typeof(FrmManager));

            this.gridControl1         = new GridControl();
            this.gridView1            = new GridView();
            this.gridColumn1          = new GridColumn();
            this.gridColumn4          = new GridColumn();
            this.gridColumn2          = new GridColumn();
            this.gridColumn3          = new GridColumn();
            this.gridColumn5          = new GridColumn();
            this.barManager1          = new BarManager(this.components);
            this.bar2                 = new Bar();
            this.barLargeButtonItem4  = new BarLargeButtonItem();
            this.barLargeButtonItem5  = new BarLargeButtonItem();
            this.barLargeButtonItem6  = new BarLargeButtonItem();
            this.barDockControlTop    = new BarDockControl();
            this.barDockControlBottom = new BarDockControl();
            this.barDockControlLeft   = new BarDockControl();
            this.barDockControlRight  = new BarDockControl();
            this.gridControl1.BeginInit();
            this.gridView1.BeginInit();
            this.barManager1.BeginInit();
            base.SuspendLayout();
            this.gridControl1.Dock     = DockStyle.Fill;
            this.gridControl1.Location = new Point(0, 60);
            this.gridControl1.MainView = this.gridView1;
            this.gridControl1.Name     = "gridControl1";
            this.gridControl1.Size     = new Size(0x295, 0x13c);
            this.gridControl1.TabIndex = 4;
            this.gridControl1.ViewCollection.AddRange(new BaseView[] { this.gridView1 });
            this.gridView1.Columns.AddRange(new GridColumn[] { this.gridColumn1, this.gridColumn4, this.gridColumn2, this.gridColumn3, this.gridColumn5 });
            this.gridView1.FocusRectStyle = DrawFocusRectStyle.RowFullFocus;
            this.gridView1.GridControl    = this.gridControl1;
            this.gridView1.GroupSummary.AddRange(new GridSummaryItem[] { new GridGroupSummaryItem(SummaryItemType.None, "RoleId", null, "") });
            this.gridView1.Name = "gridView1";
            this.gridView1.OptionsBehavior.Editable = false;
            this.gridView1.OptionsCustomization.AllowColumnMoving = false;
            this.gridView1.OptionsCustomization.AllowFilter       = false;
            this.gridView1.OptionsView.ShowGroupPanel             = false;
            this.gridColumn1.Caption                 = "身份";
            this.gridColumn1.FieldName               = "RoleName";
            this.gridColumn1.Name                    = "gridColumn1";
            this.gridColumn1.Visible                 = true;
            this.gridColumn1.VisibleIndex            = 0;
            this.gridColumn1.Width                   = 0x5d;
            this.gridColumn4.Caption                 = "姓名";
            this.gridColumn4.FieldName               = "StudyName";
            this.gridColumn4.Name                    = "gridColumn4";
            this.gridColumn4.Visible                 = true;
            this.gridColumn4.VisibleIndex            = 1;
            this.gridColumn4.Width                   = 0x74;
            this.gridColumn2.Caption                 = "用户名";
            this.gridColumn2.FieldName               = "UserName";
            this.gridColumn2.Name                    = "gridColumn2";
            this.gridColumn2.Visible                 = true;
            this.gridColumn2.VisibleIndex            = 2;
            this.gridColumn2.Width                   = 0x8d;
            this.gridColumn3.Caption                 = "登录密码";
            this.gridColumn3.FieldName               = "PassWord";
            this.gridColumn3.Name                    = "gridColumn3";
            this.gridColumn3.Visible                 = true;
            this.gridColumn3.VisibleIndex            = 3;
            this.gridColumn3.Width                   = 0x8d;
            this.gridColumn5.Caption                 = "审核状态";
            this.gridColumn5.FieldName               = "Userable";
            this.gridColumn5.Name                    = "gridColumn5";
            this.gridColumn5.Visible                 = true;
            this.gridColumn5.VisibleIndex            = 4;
            this.gridColumn5.Width                   = 0x98;
            this.barManager1.AllowMoveBarOnToolbar   = false;
            this.barManager1.AllowQuickCustomization = false;
            this.barManager1.Bars.AddRange(new Bar[] { this.bar2 });
            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.barLargeButtonItem4, this.barLargeButtonItem5, this.barLargeButtonItem6 });
            this.barManager1.MainMenu  = this.bar2;
            this.barManager1.MaxItemId = 8;
            this.bar2.BarName          = "Main menu";
            this.bar2.DockCol          = 0;
            this.bar2.DockRow          = 0;
            this.bar2.DockStyle        = BarDockStyle.Top;
            this.bar2.LinksPersistInfo.AddRange(new LinkPersistInfo[] { new LinkPersistInfo(this.barLargeButtonItem4), new LinkPersistInfo(this.barLargeButtonItem5), new LinkPersistInfo(this.barLargeButtonItem6) });
            this.bar2.OptionsBar.DrawDragBorder = false;
            this.bar2.OptionsBar.MultiLine      = true;
            this.bar2.OptionsBar.UseWholeRow    = true;
            this.bar2.Text = "Main menu";
            this.barLargeButtonItem4.Caption           = "编辑用户信息";
            this.barLargeButtonItem4.Glyph             = (Image)manager.GetObject("barLargeButtonItem4.Glyph");
            this.barLargeButtonItem4.Id                = 5;
            this.barLargeButtonItem4.LargeGlyph        = (Image)manager.GetObject("barLargeButtonItem4.LargeGlyph");
            this.barLargeButtonItem4.Name              = "barLargeButtonItem4";
            this.barLargeButtonItem4.ItemClick        += new ItemClickEventHandler(this.barLargeButtonItem4_ItemClick);
            this.barLargeButtonItem5.Caption           = "注销用户";
            this.barLargeButtonItem5.Glyph             = (Image)manager.GetObject("barLargeButtonItem5.Glyph");
            this.barLargeButtonItem5.Id                = 6;
            this.barLargeButtonItem5.LargeGlyph        = (Image)manager.GetObject("barLargeButtonItem5.LargeGlyph");
            this.barLargeButtonItem5.Name              = "barLargeButtonItem5";
            this.barLargeButtonItem5.ItemClick        += new ItemClickEventHandler(this.barLargeButtonItem5_ItemClick);
            this.barLargeButtonItem6.Caption           = "刷新";
            this.barLargeButtonItem6.Glyph             = (Image)manager.GetObject("barLargeButtonItem6.Glyph");
            this.barLargeButtonItem6.Id                = 7;
            this.barLargeButtonItem6.LargeGlyph        = (Image)manager.GetObject("barLargeButtonItem6.LargeGlyph");
            this.barLargeButtonItem6.Name              = "barLargeButtonItem6";
            this.barLargeButtonItem6.Visibility        = BarItemVisibility.Never;
            this.barLargeButtonItem6.ItemClick        += new ItemClickEventHandler(this.barLargeButtonItem6_ItemClick);
            this.barDockControlTop.CausesValidation    = false;
            this.barDockControlTop.Dock                = DockStyle.Top;
            this.barDockControlTop.Location            = new Point(0, 0);
            this.barDockControlTop.Size                = new Size(0x295, 60);
            this.barDockControlBottom.CausesValidation = false;
            this.barDockControlBottom.Dock             = DockStyle.Bottom;
            this.barDockControlBottom.Location         = new Point(0, 0x178);
            this.barDockControlBottom.Size             = new Size(0x295, 0);
            this.barDockControlLeft.CausesValidation   = false;
            this.barDockControlLeft.Dock               = DockStyle.Left;
            this.barDockControlLeft.Location           = new Point(0, 60);
            this.barDockControlLeft.Size               = new Size(0, 0x13c);
            this.barDockControlRight.CausesValidation  = false;
            this.barDockControlRight.Dock              = DockStyle.Right;
            this.barDockControlRight.Location          = new Point(0x295, 60);
            this.barDockControlRight.Size              = new Size(0, 0x13c);
            base.AutoScaleDimensions = new SizeF(7f, 14f);
            base.AutoScaleMode       = AutoScaleMode.Font;
            base.ClientSize          = new Size(0x295, 0x178);
            base.Controls.Add(this.gridControl1);
            base.Controls.Add(this.barDockControlLeft);
            base.Controls.Add(this.barDockControlRight);
            base.Controls.Add(this.barDockControlBottom);
            base.Controls.Add(this.barDockControlTop);
            base.Name  = "FrmManager";
            this.Text  = "特殊用户";
            base.Load += new EventHandler(this.FrmManager_Load);
            this.gridControl1.EndInit();
            this.gridView1.EndInit();
            this.barManager1.EndInit();
            base.ResumeLayout(false);
        }
示例#32
0
 private void PressedButtonTrue(BarLargeButtonItem _button)
 {
     ClearPressedButtons();
     _button.Border = BorderStyles.Simple;
 }
示例#33
0
 private void PressedButtonTrue(BarLargeButtonItem _button)
 {
     ClearPressedButtons();
     _button.Border = BorderStyles.Simple;
 }
示例#34
0
        private void InitializeComponent()
        {
            this.components = new Container();
            ComponentResourceManager resources = new ComponentResourceManager(typeof(FrmUser));

            this.barManager1          = new BarManager(this.components);
            this.bar2                 = new Bar();
            this.barLargeButtonItem1  = new BarLargeButtonItem();
            this.barLargeButtonItem2  = new BarLargeButtonItem();
            this.barLargeButtonItem3  = new BarLargeButtonItem();
            this.barLargeButtonItem4  = new BarLargeButtonItem();
            this.barDockControlTop    = new BarDockControl();
            this.barDockControlBottom = new BarDockControl();
            this.barDockControlLeft   = new BarDockControl();
            this.barDockControlRight  = new BarDockControl();
            this.gridControl1         = new GridControl();
            this.gridView1            = new GridView();
            this.gridColumn1          = new GridColumn();
            this.gridColumn2          = new GridColumn();
            this.gridColumn3          = new GridColumn();
            this.gridColumn4          = new GridColumn();
            this.gridColumn5          = new GridColumn();
            this.gridColumn6          = new GridColumn();
            this.gridColumn7          = new GridColumn();
            this.panelControl1        = new PanelControl();
            this.simpleButton2        = new SimpleButton();
            this.simpleButton1        = new SimpleButton();
            this.textEdit2            = new TextEdit();
            this.labelControl2        = new LabelControl();
            this.textEdit1            = new TextEdit();
            this.labelControl1        = new LabelControl();
            this.panelControl2        = new PanelControl();
            this.timer1               = new Timer(this.components);
            ((ISupportInitialize)this.barManager1).BeginInit();
            ((ISupportInitialize)this.gridControl1).BeginInit();
            ((ISupportInitialize)this.gridView1).BeginInit();
            ((ISupportInitialize)this.panelControl1).BeginInit();
            this.panelControl1.SuspendLayout();
            ((ISupportInitialize)this.textEdit2.Properties).BeginInit();
            ((ISupportInitialize)this.textEdit1.Properties).BeginInit();
            ((ISupportInitialize)this.panelControl2).BeginInit();
            this.panelControl2.SuspendLayout();
            base.SuspendLayout();
            this.barManager1.AllowMoveBarOnToolbar   = false;
            this.barManager1.AllowQuickCustomization = false;
            this.barManager1.Bars.AddRange(new Bar[]
            {
                this.bar2
            });
            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.barLargeButtonItem1,
                this.barLargeButtonItem2,
                this.barLargeButtonItem3,
                this.barLargeButtonItem4
            });
            this.barManager1.MainMenu  = this.bar2;
            this.barManager1.MaxItemId = 8;
            this.bar2.BarName          = "Main menu";
            this.bar2.DockCol          = 0;
            this.bar2.DockRow          = 0;
            this.bar2.DockStyle        = BarDockStyle.Top;
            this.bar2.LinksPersistInfo.AddRange(new LinkPersistInfo[]
            {
                new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.barLargeButtonItem1, BarItemPaintStyle.CaptionGlyph),
                new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.barLargeButtonItem2, BarItemPaintStyle.CaptionGlyph),
                new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.barLargeButtonItem3, BarItemPaintStyle.CaptionGlyph),
                new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.barLargeButtonItem4, BarItemPaintStyle.CaptionGlyph)
            });
            this.bar2.OptionsBar.DrawDragBorder = false;
            this.bar2.OptionsBar.UseWholeRow    = true;
            this.bar2.Text = "Main menu";
            this.barLargeButtonItem1.Caption           = "增加";
            this.barLargeButtonItem1.Glyph             = (Image)resources.GetObject("barLargeButtonItem1.Glyph");
            this.barLargeButtonItem1.Id                = 2;
            this.barLargeButtonItem1.LargeGlyph        = (Image)resources.GetObject("barLargeButtonItem1.LargeGlyph");
            this.barLargeButtonItem1.Name              = "barLargeButtonItem1";
            this.barLargeButtonItem1.ItemClick        += new ItemClickEventHandler(this.barLargeButtonItem1_ItemClick);
            this.barLargeButtonItem2.Caption           = "修改";
            this.barLargeButtonItem2.Glyph             = (Image)resources.GetObject("barLargeButtonItem2.Glyph");
            this.barLargeButtonItem2.Id                = 3;
            this.barLargeButtonItem2.LargeGlyph        = (Image)resources.GetObject("barLargeButtonItem2.LargeGlyph");
            this.barLargeButtonItem2.Name              = "barLargeButtonItem2";
            this.barLargeButtonItem2.ItemClick        += new ItemClickEventHandler(this.barLargeButtonItem2_ItemClick);
            this.barLargeButtonItem3.Caption           = "删除";
            this.barLargeButtonItem3.Glyph             = (Image)resources.GetObject("barLargeButtonItem3.Glyph");
            this.barLargeButtonItem3.Id                = 4;
            this.barLargeButtonItem3.LargeGlyph        = (Image)resources.GetObject("barLargeButtonItem3.LargeGlyph");
            this.barLargeButtonItem3.Name              = "barLargeButtonItem3";
            this.barLargeButtonItem3.ItemClick        += new ItemClickEventHandler(this.barLargeButtonItem3_ItemClick);
            this.barLargeButtonItem4.Caption           = "刷新";
            this.barLargeButtonItem4.Glyph             = (Image)resources.GetObject("barLargeButtonItem4.Glyph");
            this.barLargeButtonItem4.Id                = 7;
            this.barLargeButtonItem4.LargeGlyph        = (Image)resources.GetObject("barLargeButtonItem4.LargeGlyph");
            this.barLargeButtonItem4.Name              = "barLargeButtonItem4";
            this.barLargeButtonItem4.Visibility        = BarItemVisibility.Never;
            this.barLargeButtonItem4.ItemClick        += new ItemClickEventHandler(this.barLargeButtonItem4_ItemClick);
            this.barDockControlTop.CausesValidation    = false;
            this.barDockControlTop.Dock                = DockStyle.Top;
            this.barDockControlTop.Location            = new Point(0, 0);
            this.barDockControlTop.Size                = new Size(716, 60);
            this.barDockControlBottom.CausesValidation = false;
            this.barDockControlBottom.Dock             = DockStyle.Bottom;
            this.barDockControlBottom.Location         = new Point(0, 457);
            this.barDockControlBottom.Size             = new Size(716, 0);
            this.barDockControlLeft.CausesValidation   = false;
            this.barDockControlLeft.Dock               = DockStyle.Left;
            this.barDockControlLeft.Location           = new Point(0, 60);
            this.barDockControlLeft.Size               = new Size(0, 397);
            this.barDockControlRight.CausesValidation  = false;
            this.barDockControlRight.Dock              = DockStyle.Right;
            this.barDockControlRight.Location          = new Point(716, 60);
            this.barDockControlRight.Size              = new Size(0, 397);
            this.gridControl1.Dock        = DockStyle.Fill;
            this.gridControl1.Location    = new Point(2, 2);
            this.gridControl1.MainView    = this.gridView1;
            this.gridControl1.MenuManager = this.barManager1;
            this.gridControl1.Name        = "gridControl1";
            this.gridControl1.Size        = new Size(712, 359);
            this.gridControl1.TabIndex    = 4;
            this.gridControl1.ViewCollection.AddRange(new BaseView[]
            {
                this.gridView1
            });
            this.gridView1.Columns.AddRange(new GridColumn[]
            {
                this.gridColumn1,
                this.gridColumn2,
                this.gridColumn3,
                this.gridColumn4,
                this.gridColumn5,
                this.gridColumn6,
                this.gridColumn7
            });
            this.gridView1.FocusRectStyle = DrawFocusRectStyle.RowFullFocus;
            this.gridView1.GridControl    = this.gridControl1;
            this.gridView1.Name           = "gridView1";
            this.gridView1.OptionsBehavior.AutoPopulateColumns = false;
            this.gridView1.OptionsBehavior.CopyToClipboardWithColumnHeaders = false;
            this.gridView1.OptionsBehavior.Editable = false;
            this.gridView1.OptionsCustomization.AllowColumnMoving = false;
            this.gridView1.OptionsCustomization.AllowFilter       = false;
            this.gridView1.OptionsView.ShowGroupPanel             = false;
            this.gridColumn1.Caption      = "编号";
            this.gridColumn1.FieldName    = "StudyNO";
            this.gridColumn1.Name         = "gridColumn1";
            this.gridColumn1.Visible      = true;
            this.gridColumn1.VisibleIndex = 0;
            this.gridColumn2.Caption      = "姓名";
            this.gridColumn2.FieldName    = "StudyName";
            this.gridColumn2.Name         = "gridColumn2";
            this.gridColumn2.Visible      = true;
            this.gridColumn2.VisibleIndex = 1;
            this.gridColumn3.Caption      = "性别";
            this.gridColumn3.FieldName    = "IsMan";
            this.gridColumn3.Name         = "gridColumn3";
            this.gridColumn3.Visible      = true;
            this.gridColumn3.VisibleIndex = 2;
            this.gridColumn4.Caption      = "用户名";
            this.gridColumn4.FieldName    = "UserName";
            this.gridColumn4.Name         = "gridColumn4";
            this.gridColumn4.Visible      = true;
            this.gridColumn4.VisibleIndex = 3;
            this.gridColumn5.Caption      = "密码";
            this.gridColumn5.FieldName    = "PassWord";
            this.gridColumn5.Name         = "gridColumn5";
            this.gridColumn5.Visible      = true;
            this.gridColumn5.VisibleIndex = 4;
            this.gridColumn6.Caption      = "邮箱";
            this.gridColumn6.FieldName    = "Mail";
            this.gridColumn6.Name         = "gridColumn6";
            this.gridColumn6.Visible      = true;
            this.gridColumn6.VisibleIndex = 5;
            this.gridColumn7.Caption      = "当前在线状态";
            this.gridColumn7.FieldName    = "IsOnline";
            this.gridColumn7.Name         = "gridColumn7";
            this.gridColumn7.Visible      = true;
            this.gridColumn7.VisibleIndex = 6;
            this.panelControl1.Controls.Add(this.simpleButton2);
            this.panelControl1.Controls.Add(this.simpleButton1);
            this.panelControl1.Controls.Add(this.textEdit2);
            this.panelControl1.Controls.Add(this.labelControl2);
            this.panelControl1.Controls.Add(this.textEdit1);
            this.panelControl1.Controls.Add(this.labelControl1);
            this.panelControl1.Dock          = DockStyle.Top;
            this.panelControl1.Location      = new Point(0, 60);
            this.panelControl1.Name          = "panelControl1";
            this.panelControl1.Size          = new Size(716, 34);
            this.panelControl1.TabIndex      = 5;
            this.simpleButton2.Image         = (Image)resources.GetObject("simpleButton2.Image");
            this.simpleButton2.Location      = new Point(529, 2);
            this.simpleButton2.Name          = "simpleButton2";
            this.simpleButton2.Size          = new Size(98, 30);
            this.simpleButton2.TabIndex      = 6;
            this.simpleButton2.Text          = "全部显示";
            this.simpleButton2.Click        += new EventHandler(this.simpleButton2_Click);
            this.simpleButton1.Image         = (Image)resources.GetObject("simpleButton1.Image");
            this.simpleButton1.ImageLocation = ImageLocation.MiddleLeft;
            this.simpleButton1.Location      = new Point(433, 0);
            this.simpleButton1.Name          = "simpleButton1";
            this.simpleButton1.Size          = new Size(76, 34);
            this.simpleButton1.TabIndex      = 4;
            this.simpleButton1.Text          = "查找";
            this.simpleButton1.Click        += new EventHandler(this.simpleButton1_Click);
            this.textEdit2.Location          = new Point(308, 7);
            this.textEdit2.MenuManager       = this.barManager1;
            this.textEdit2.Name         = "textEdit2";
            this.textEdit2.Size         = new Size(100, 20);
            this.textEdit2.TabIndex     = 3;
            this.labelControl2.Location = new Point(225, 9);
            this.labelControl2.Name     = "labelControl2";
            this.labelControl2.Size     = new Size(72, 14);
            this.labelControl2.TabIndex = 2;
            this.labelControl2.Text     = "按姓名查找:";
            this.textEdit1.Location     = new Point(92, 6);
            this.textEdit1.MenuManager  = this.barManager1;
            this.textEdit1.Name         = "textEdit1";
            this.textEdit1.Size         = new Size(100, 20);
            this.textEdit1.TabIndex     = 1;
            this.labelControl1.Location = new Point(13, 6);
            this.labelControl1.Name     = "labelControl1";
            this.labelControl1.Size     = new Size(72, 14);
            this.labelControl1.TabIndex = 0;
            this.labelControl1.Text     = "按编号查找:";
            this.panelControl2.Controls.Add(this.gridControl1);
            this.panelControl2.Dock     = DockStyle.Fill;
            this.panelControl2.Location = new Point(0, 94);
            this.panelControl2.Name     = "panelControl2";
            this.panelControl2.Size     = new Size(716, 363);
            this.panelControl2.TabIndex = 6;
            this.timer1.Interval        = 3000;
            this.timer1.Tick           += new EventHandler(this.timer1_Tick);
            base.AutoScaleDimensions    = new SizeF(7f, 14f);
            base.AutoScaleMode          = AutoScaleMode.Font;
            base.ClientSize             = new Size(716, 457);
            base.Controls.Add(this.panelControl2);
            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.Name  = "FrmUser";
            this.Text  = "普通用户信息表";
            base.Load += new EventHandler(this.FrmUser_Load);
            ((ISupportInitialize)this.barManager1).EndInit();
            ((ISupportInitialize)this.gridControl1).EndInit();
            ((ISupportInitialize)this.gridView1).EndInit();
            ((ISupportInitialize)this.panelControl1).EndInit();
            this.panelControl1.ResumeLayout(false);
            this.panelControl1.PerformLayout();
            ((ISupportInitialize)this.textEdit2.Properties).EndInit();
            ((ISupportInitialize)this.textEdit1.Properties).EndInit();
            ((ISupportInitialize)this.panelControl2).EndInit();
            this.panelControl2.ResumeLayout(false);
            base.ResumeLayout(false);
        }
示例#35
0
 public static void ChangeCaptionBarLargeButtonItem(string parent_name, string language, BarLargeButtonItem bar_large_button_item)
 {
     bar_large_button_item.Caption = CaptionEngine.GetControlCaption(parent_name, bar_large_button_item.Name, BaseConstant.CONTROL_TEXT, language);
 }
 private void LoadReportsMenu()
 {
     int x = 0;
     foreach (MyCL.ReportTypeStr item in MyCL.RepTyps)
     {
         BarLargeButtonItem BI = new BarLargeButtonItem() { Name = item.RepName, Caption = item.RepCaption, Tag = x.ToString(), Id = 101 + x};
         BI.ItemClick += mbTest_ItemClick;
         x ++;
         barManager.Items.Add(BI);
         //mReports.LinksPersistInfo.AddRange(new LinkPersistInfo[] { new LinkPersistInfo(BI) });
     }
 }
示例#37
0
 public static void ChangeCaptionBarLargeButtonItem(string parent_name, string language, BarLargeButtonItem bar_large_button_item)
 {
     bar_large_button_item.Caption = CaptionEngine.GetControlCaption(parent_name, bar_large_button_item.Name, BaseConstant.CONTROL_TEXT, language);
 }