public void sendButtonEvent(int eventID) { SimpleButton b = new SimpleButton(); b.timestamp = UbiMeasurementUtils.getUbitrackTimeStamp(); b._event = eventID; m_button.receiveButton(b); }
protected override object CreateControlCore() { var button = new SimpleButton {Text = Caption}; button.Image = DevExpress.ExpressApp.Utils.ImageLoader.Instance.GetImageInfo((this.Model as IModelActionButton).ActionId.ImageName).Image; button.Click += (sender, args) => InvokeExecuted(args); return button; }
/// <summary>Adds a button to the form.</summary> /// <param name="caption">The caption to display on the button.</param> /// <param name="clickHandler">The click event handler.</param> /// <param name="buttonWidth">Width of the button.</param> public SimpleButton AddButton(string caption, MultiControlEventHandler clickHandler, int buttonWidth = -1) { var btn = new Button() { Dock = DockStyle.Left, Text = caption, TextAlign = ContentAlignment.MiddleCenter }; // set the button's width if (buttonWidth > 0) { btn.Width = buttonWidth; } else { btn.AutoSize = true; btn.AutoSizeMode = AutoSizeMode.GrowOnly; btn.MinimumSize = new Size(Math.Max(btn.Size.Width, btn.PreferredSize.Width), 0); btn.MaximumSize = new Size(0, Math.Max(btn.Size.Height, btn.PreferredSize.Height)); } this.Form.AddToControls(btn); var sbtn = new SimpleButton(btn); if (clickHandler != null) btn.Click += (o, e) => clickHandler.Invoke(sbtn); return sbtn; }
public FrmXuatMauGiaKeToan() { InitializeComponent(); BtnPrint = new SimpleButton(); btnSearch.Image = HelpImage.getImage2020("Search.png"); btnExportData.Image = HelpImage.getImage2020("exportdata.png"); btnExportEmty.Image = HelpImage.getImage2020("exportempty.png"); HelpGridColumn.CotTextLeft(Col_CT_CodeCT, "CODE_CT"); HelpGridColumn.CotTextLeft(Col_CT_TenCT, "TEN_CT"); HelpGridColumn.CotTextLeft(Col_CT_TM, "TIET_MUC"); HelpGridColumn.CotTextLeft(Col_CT_NSX, "NUOC_SX"); HelpGridColumn.CotTextCenter(Col_CT_NamSX, "NAM_SX"); HelpGridColumn.CotTextLeft(ColPM, "POST_MASTER"); HelpGridColumn.CotTextCenter(Col_CT_TapSo, "TAP_SO"); HelpGridColumn.CotTextLeft(ColTenTap, "TEN_TAP"); HelpGridColumn.CotTextLeft(Col_CT_Run, "RUN"); HelpGridColumn.CotTextLeft(Col_CT_Gia, "GIA_TIEN"); Search(true); InitBasic(); Load += frmXuatMauGiaKeToan_Load; gridViewDetail.ColumnPositionChanged += gridViewDetail_ColumnPositionChanged; HelpGrid.SetReadOnlyHaveMemoCtrl(gridViewDetail); gridViewDetail.OptionsView.NewItemRowPosition = NewItemRowPosition.None; gridViewDetail._SetPermissionElement(BtnPrint, btnExportData); }
public StartMenu(EventHandler callback) : base(callback) { viewport = GraphicsDevice.Viewport; if (!contentLoaded) { buttonFont = Content.Load<SpriteFont>("buttonFont"); contentLoaded = true; } loadButton = new SimpleButton(new Rectangle(viewport.Width / 10 * 4 - buttonWidth / 2, viewport.Height / 2 - buttonHeight / 2, buttonWidth, buttonHeight), ColorTexture.Black, null, null); SimpleButton.AddButton(loadButton); newButton = new SimpleButton(new Rectangle(viewport.Width / 10 * 6 - buttonWidth / 2, viewport.Height / 2 - buttonHeight / 2, buttonWidth, buttonHeight), ColorTexture.Black, null, null); SimpleButton.AddButton(newButton); int width = buttonWidth / 4; int height = buttonHeight / 4; widthUpButton = new SimpleButton(new Rectangle(newButton.X + newButton.Width, newButton.Y, width, height), ColorTexture.Black, null, null); SimpleButton.AddButton(widthUpButton); widthDownButton = new SimpleButton(new Rectangle(newButton.X + newButton.Width, newButton.Y + height, width, height), ColorTexture.Black, null, null); SimpleButton.AddButton(widthDownButton); heightUpButton = new SimpleButton(new Rectangle(newButton.X + newButton.Width, newButton.Y + height * 2, width, height), ColorTexture.Black, null, null); SimpleButton.AddButton(heightUpButton); heightDownButton = new SimpleButton(new Rectangle(newButton.X + newButton.Width, newButton.Y + height * 3, width, height), ColorTexture.Black, null, null); SimpleButton.AddButton(heightDownButton); }
public LoadMenu(EventHandler callback) : base(callback) { viewport = GraphicsDevice.Viewport; if (!contentLoaded) { buttonFont = Content.Load<SpriteFont>("buttonFont"); contentLoaded = true; } readMapFiles(); int posY = 5; if (files.Count > 0) buttonHeight = (int)MathHelper.Min(40, viewport.Height / files.Count - 5); foreach (string file in files) { Vector2 stringSize = buttonFont.MeasureString(file.Substring(12)); buttonWidth = (int)(stringSize.X + 15); SimpleButton button = new SimpleButton(new Rectangle(viewport.Width / 2 - buttonWidth / 2, posY, buttonWidth, buttonHeight), ColorTexture.Black, null, null); SimpleButton.AddButton(button); posY += buttonHeight + 5; } }
public void AddAction(string text, DialogResult result, Image image = null, bool isDefault = false) { int width = this.ClientSize.Width-20; var button = new SimpleButton(); button.Text = text; button.Appearance.TextOptions.HAlignment = HorzAlignment.Near; button.Image = image; button.Width = width; button.Left = 10; button.Height = ButtonHeight; button.Anchor = AnchorStyles.Left | AnchorStyles.Top | AnchorStyles.Right; button.Tag = result; button.Click += button_Click; this.Controls.Add(button); if (isDefault) this.AcceptButton = button; button.DialogResult = result; if (result == DialogResult.Cancel) { this.CancelButton = button; this.ControlBox = true; this.SelectedAction = result; } }
private void gridControl_HandleCreated(object sender, EventArgs e) { var gridControl = sender as GridControl; filterControl = new Editors.FilterControl { Height = 150, Dock = View.Info.GetAttributeEnumValue(FilterControlPosition, DockStyle.None), SourceControl = gridControl }; InvokeFilterActivated(e); gridControl = filterControl.SourceControl as GridControl; if (gridControl != null ) { if (!gridControl.FormsUseDefaultLookAndFeel) filterControl.LookAndFeel.Assign(gridControl.LookAndFeel); setCriteriaFromView(filterControl); } var accept = new SimpleButton {Text = "Accept filter"}; accept.Click += ((o, args) => filterControl.ApplyFilter()); accept.Dock = DockStyle.Bottom; filterControl.Controls.Add(accept); ((Control) sender).Parent.Controls.Add(filterControl); }
public ButtonStyleKind GetStyle(SimpleButton button) { if (this.list.ContainsKey(button)) { return list[button].ButtonStyleKind; } return ButtonStyleKind.AddWithLargeImage; }
public AddAnswerForm(int questionid, GridView sender, SimpleButton btnSchedule) { InitializeComponent(); question_id = questionid; gridviewSender = sender; createSchedule = btnSchedule; BPContext = new BrightPlatformEntities(UserSession.EntityConnection); }
public bool GetEnableStyle(SimpleButton button) { if (this.list.ContainsKey(button)) { return list[button].EnableStyle; } return false; }
// protected DevExpress.XtraGrid.Views.BandedGrid.BandedGridView gridViewDetail; public FrmTNSRptCppBase() { InitializeComponent(); btnPrint = new SimpleButton(); InitGrid(); Init(); SheetName = "Sheet1"; _exportData = new ExportData(); }
public frmXuatDSChuongTrinh() { InitializeComponent(); btnPrint = new SimpleButton(); DMTietMuc.InitCtrl(TietMuc, true); DMPostMaster.InitCtrl(NuocSX, true); AppCtrl.InitCtrlPhongBan(PhongBan, true); AppCtrl.InitAutocompleteCategory(Category); DMNuocSanXuat.InitCtrl(NuocSX, true); // NgayTao.SelectedType = ProtocolVN.Framework.Win.Trial.SelectionTypes.None; btnSearch.Image = HelpImage.getImage2020("Search.png"); btnExportData.Image = HelpImage.getImage2020("exportdata.png"); btnImportCode.Image = HelpImage.getImage2020("import.png"); btnSave.Image = FWImageDic.SAVE_IMAGE20; btnInput.Image = HelpImage.getImage2020("write.png"); // btnExportEmty.Image = HelpImage.getImage2020("exportempty.png"); PhongBan._SelectedIDs = new long[] { FrameworkParams.LoginCompanyID }; HelpGridColumn.CotTextLeft(ColCodeCT, CHUONG_TRINH.CODE_CT); HelpGridColumn.CotTextLeft(ColTenCT, CHUONG_TRINH.NOI_DUNG); DMTietMuc.InitCot(ColTM, CHUONG_TRINH.TIET_MUC,true); DMNuocSanXuat.InitCotMulti(ColNSX, CHUONG_TRINH.NUOC_SAN_XUAT, true); HelpGridColumn.CotTextCenter(ColNamSX, CHUONG_TRINH.NAM_SAN_XUAT); HelpGridColumn.CotTextLeft(ColMACT, CHUONG_TRINH.MA_CT); HelpGridColumn.CotTextLeft(ColCagory, CHUONG_TRINH.CATEGORY); HelpGridColumn.CotTextLeft(ColTenGoc, CHUONG_TRINH.TEN_GOC); //HelpGridColumn.CotTextCenter(ColTapSo, "TAP_SO"); //HelpGridColumn.CotTextLeft(ColTenTap, "TEN_TAP"); //HelpGridColumn.CotTextLeft(ColRun, "RUN"); //HelpGridColumn.CotTextLeft(ColGia, "GIA_TIEN"); HelpGridColumn.CotTextLeft(Col_I_CodeOld, "CODE_CT_OLD"); HelpGridColumn.CotTextLeft(Col_I_ColdNew, CHUONG_TRINH.CODE_CT); HelpGridColumn.CotTextLeft(Col_I_TenCT, CHUONG_TRINH.NOI_DUNG); DMTietMuc.InitCot(Col_I_TietMuc, CHUONG_TRINH.TIET_MUC,true); DMNuocSanXuat.InitCotMulti(Col_I_NuocSx, CHUONG_TRINH.NUOC_SAN_XUAT, true); HelpGridColumn.CotTextCenter(Col_I_NamSX, CHUONG_TRINH.NAM_SAN_XUAT); HelpGridColumn.CotTextLeft(Col_I_MaCT, CHUONG_TRINH.MA_CT); HelpGridColumn.CotTextLeft(Col_I_Category, CHUONG_TRINH.CATEGORY); HelpGridColumn.CotTextLeft(Col_I_TenGoc, CHUONG_TRINH.TEN_GOC); Search(true); gridViewImport.OptionsView.NewItemRowPosition = DevExpress.XtraGrid.Views.Grid.NewItemRowPosition.None; gridViewDetail.OptionsBehavior.Editable = false; gridViewDetail.OptionsView.NewItemRowPosition = DevExpress.XtraGrid.Views.Grid.NewItemRowPosition.None; gridViewDetail._SetPermissionElement(btnPrint, btnExportData); gridViewImport._SetPermissionElement(btnPrint, btnExportData); this.Load += new EventHandler(frmXuatMauGiaKeToan_Load); gridViewDetail.ColumnPositionChanged += new EventHandler(gridViewDetail_ColumnPositionChanged); this.panelControl1.BackColor = this.BackColor; this.panelControl2.BackColor = this.BackColor; HelpXtraForm.SetCloseForm(this, null, true); }
public void iniUsualCtrl() { UsuaslPanel.Controls.Clear(); int xstart = 0, ystart = 10, ispan = 30,jspan=10,firstlincount=0; Hashtable hs = new Hashtable(); IList<mUserModule> mlist = MainHelper.PlatformSqlMap.GetList<mUserModule>("SelectmUserModuleList", "where UserID='" + MainHelper.User.UserID + "' order by SortID"); labelWid.Visible = true; foreach (mUserModule umodule in mlist) { SimpleButton bt = new SimpleButton(); bt.Text = umodule.mMouleName; labelWid.Text = bt.Text; bt.Width = labelWid.Width + 20; if (bt.Width < 100) bt.Width = 100; bt.Tag = umodule; bt.Click += new EventHandler(runButtonEvent); if (xstart + bt.Width + ispan <= UsuaslPanel.Width) { bt.Left = xstart + ispan; bt.Top = ystart; xstart = bt.Left + bt.Width; firstlincount++; } else { xstart = 0; firstlincount=1; ystart = ystart + bt.Height + jspan; bt.Left = xstart + ispan; bt.Top = ystart; xstart = bt.Left + bt.Width; } if (ystart == 10) { hs.Add(firstlincount, bt.Width); } else if (ystart > 10) { if (Convert.ToInt32(hs[firstlincount]) > bt.Width) { bt.Width = Convert.ToInt32(hs[firstlincount]); xstart = bt.Left + bt.Width; } } UsuaslPanel.Controls.Add(bt); } labelWid.Visible = false; }
private void Init() { btnPrint = new SimpleButton(); btnExport = new SimpleButton(); gridViewDetail._SetPermissionElement(btnPrint, btnExport); gridViewMaster._SetPermissionElement(btnPrint, btnExport); barButtonItemClose.Glyph = FWImageDic.CLOSE_IMAGE20; barButtonItemRefresh.Glyph = HelpImage.getImage2020("view-refresh.png"); barButtonItemSelect.Glyph = FWImageDic.CHOICE_IMAGE20; InitGridMaster(); InitGridDetail(); LoadMaster(); }
static Bitmap GetSkinImage(SimpleButton button, int width, int height, int indent) { Bitmap image = new Bitmap(width, height); using(Graphics g = Graphics.FromImage(image)) { StyleObjectInfoArgs info = new StyleObjectInfoArgs(new GraphicsCache(g)); info.Bounds = new Rectangle(0, 0, width, height); button.LookAndFeel.Painter.GroupPanel.DrawObject(info); button.LookAndFeel.Painter.Border.DrawObject(info); info.Bounds = new Rectangle(indent, indent, width - indent * 2, height - indent * 2); button.LookAndFeel.Painter.Button.DrawObject(info); } return image; }
protected override void UpdateControlPositionsCore() { base.UpdateControlPositionsCore(); listBox.Bounds = ViewInfo.ContentRect; listBox.Width = listBox.Width - listBox.Left * 2; var btn = new SimpleButton { Size = new Size(OkButton.Size.Width * 2, OkButton.Size.Height), Location = new Point(10, OkButton.Location.Y), Anchor = AnchorStyles.Left | AnchorStyles.Bottom, Text = @"По алфавиту" }; btn.Click += AbcSortButtonClick; Controls.Add(btn); }
public TitleScreen(EventHandler callback, bool startMusic) : base(callback) { // initialize startTime = DateTime.Now; Game1.Game.Window.Title = "Welcome to Bill's lair."; Game1.Game.IsMouseVisible = true; isaac = new BaseObject(new Rectangle(0, 0, 100, 100), new Vector2(0, 0)); isaac.CenterPoint = new Vector2(Graphics.GraphicsDevice.Viewport.Width / 2, Graphics.GraphicsDevice.Viewport.Height / 2); startButton = new SimpleButton(new Rectangle(0, 0, STARTBUTTONWIDTH, STARTBUTTONHEIGHT), button1Texture, button1Texture, button2Texture); startButton.CenterPoint = new Vector2(Graphics.GraphicsDevice.Viewport.Width / 2, isaac.Y - 40); SimpleButton.AddButton(startButton); physicsButton = new BaseObject(new Rectangle(0, 0, INSTRUCTIONSBUTTONWIDTH, INSTRUCTIONSBUTTONHEIGHT), new Vector2(0, 0)); physicsButton.CenterPoint = new Vector2(Graphics.GraphicsDevice.Viewport.Width / 2, isaac.Y + isaac.Height + 40); exitButton = new BaseObject(new Rectangle(0, 0, EXITBUTTONWIDTH, EXITBUTTONHEIGHT), new Vector2(0, 0)); exitButton.CenterPoint = new Vector2(Graphics.GraphicsDevice.Viewport.Width / 2, physicsButton.Y + physicsButton.Height + 40); // load content if (!contentLoaded) { button1Texture = Content.Load<Texture2D>("titlebutton1"); button2Texture = Content.Load<Texture2D>("titlebutton2"); isaacTexture = Content.Load<Texture2D>("isaac"); isaac1 = Content.Load<Texture2D>("isaacswirl1"); isaac2 = Content.Load<Texture2D>("isaacswirl2"); isaac3 = Content.Load<Texture2D>("isaacswirl3"); isaac4 = Content.Load<Texture2D>("isaacswirl4"); isaac5 = Content.Load<Texture2D>("isaacswirl5"); titleFont1 = Content.Load<SpriteFont>("TitleFont1"); titleFont2 = Content.Load<SpriteFont>("TitleFont2"); titleTheme = Content.Load<Song>("titletheme"); contentLoaded = true; } isaacAnimation = new Animation(1.5f, 6f, isaac1 , isaac2, isaac3, isaac4, isaac5, isaac4, isaac3, isaac2, isaac1); //isaacAnimation.Start(); // play music if (startMusic) { MediaPlayer.Play(titleTheme); MediaPlayer.IsRepeating = true; MediaPlayer.Volume = .25f; } }
private void InitControl() { btnPrint = new SimpleButton(); btnExport = new SimpleButton(); gridViewBienMuc._SetPermissionElement(btnPrint, btnExport); SoMaBangThucTe.Value = DABienMuc.GetNumberOfMaBang(); string deletedMaBang = DABienMuc.GetRealyDeletedMaBang(); if (deletedMaBang == "") labelControlDelete.Text = 0 + ""; else labelControlDelete.Text = deletedMaBang.Split(',').Length.ToString(); SoMaBangDaXoa.Text = deletedMaBang; string[] notInDataMaBang = DABienMuc.GetMaBangNotInData(); labelControlNoUse.Text = notInDataMaBang.Length.ToString(); SoMaBangKhongDung.Text = string.Join(",", notInDataMaBang); }
/// <summary>Khởi tạo các nút trên phiếu /// </summary> public static void InitBtnPhieu(XtraForm frm, bool? IsAdd, DropDownButton NghiepVu, DropDownButton InPhieu, DropDownButton Chon, SimpleButton Save, SimpleButton Delete, SimpleButton Close) { if (Save != null) Save.Image = FWImageDic.SAVE_IMAGE16; if (Delete != null) Delete.Image = FWImageDic.DELETE_IMAGE16; if (Close != null) Close.Image = FWImageDic.CLOSE_IMAGE16; if (NghiepVu != null) { NghiepVu.Size = new System.Drawing.Size(101, 23); NghiepVu.Image = FWImageDic.BUSINESS_IMAGE16; } if (InPhieu != null) { InPhieu.Size = new System.Drawing.Size(84, 23); InPhieu.Image = FWImageDic.PRINT_IMAGE16; } if (Chon != null) { Chon.Size = new System.Drawing.Size(130, 23); Chon.Image = FWImageDic.CHOICE_POPUP_IMAGE16; } if (IsAdd == null) { if (Delete != null) Delete.Visible = false; if (Save != null) Save.Visible = false; if (NghiepVu != null) NghiepVu.Enabled = true; if (InPhieu != null) InPhieu.Enabled = true; if (Chon != null) Chon.Enabled = false; } else if (IsAdd == true) { if (Delete != null) Delete.Enabled = false; if (Save != null) Save.Enabled = true; if (NghiepVu != null) NghiepVu.Enabled = false; if (InPhieu != null) InPhieu.Enabled = false; if (Chon != null) Chon.Enabled = true; } else { if (Delete != null) Delete.Enabled = true; if (Save != null) Save.Enabled = true; if (NghiepVu != null) NghiepVu.Enabled = true; if (InPhieu != null) InPhieu.Enabled = true; if (Chon != null) Chon.Enabled = true; } }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { components = new System.ComponentModel.Container(); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.Boton = new SimpleButton(); base.SuspendLayout(); this.Boton.Image = Resources.prompt; this.Boton.Location = new System.Drawing.Point(0, 0); this.Boton.Name = "Boton"; this.Boton.Size = new System.Drawing.Size(0x19, 0x17); this.Boton.TabIndex = 0; base.AutoScaleDimensions = new System.Drawing.SizeF(6f, 13f); base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; base.Controls.Add(this.Boton); base.Name = "PlantillaBoton"; base.Size = new System.Drawing.Size(0x19, 0x17); base.ResumeLayout(false); }
void FillImages() { SimpleButton imageButton = new SimpleButton(); foreach(SkinContainer cnt in SkinManager.Default.Skins) { imageButton.LookAndFeel.SetSkinStyle(cnt.SkinName); GalleryItem gItem = new GalleryItem(); int groupIndex = 0; if(cnt.SkinName.IndexOf("Office") > -1) groupIndex = 1; else if(!cnt.IsEmbedded) groupIndex = 2; ribbonGallerySkins.Gallery.Groups[groupIndex].Items.Add(gItem); gItem.Caption = cnt.SkinName; gItem.Image = GetSkinImage(imageButton, 32, 17, 2); gItem.HoverImage = GetSkinImage(imageButton, 70, 36, 5); gItem.Caption = cnt.SkinName; } }
private void InitAdditional() { SimpleButton additional = new SimpleButton() { Text = "Изменение навыков", Location = new Point(5, 5), AutoSize = true }; additional.Click += (sender, e) => { using (AddAdditional adds = new AddAdditional()) { adds.Initialize(Context.t_post.ToList(), this.detailGridControl1.DataSource as List<t_post>, "t_postName"); var res = adds.ShowDialog(); if (res == DialogResult.OK) { var col = (adds.listBoxInEntity.DataSource as List<t_post>).Except((Entity as t_skill).t_skillPosts.ToList()); if (col.Count() > 0) { foreach (var post in col) { (Entity as t_skill).t_skillPosts.Add(post); } } else { col = (Entity as t_skill).t_skillPosts.ToList().Except((adds.listBoxInEntity.DataSource as List<t_post>)); foreach (var post in col) { (Entity as t_skill).t_skillPosts.Remove(post); } } Context.SaveChangesAsync(); this.detailGridControl1.DataSource = (Entity as t_skill).t_skillPosts.ToList(); } } }; this.panelAditionalButtons.Controls.Add(additional); }
public static void CreateGallery(RibbonGalleryBarItem ribbonGalleryBarItemThemes) { if (_ribbonGalleryBarItemThemes == null) _ribbonGalleryBarItemThemes = ribbonGalleryBarItemThemes; var imageButton = new SimpleButton(); foreach (SkinContainer cnt in SkinManager.Default.Skins) { imageButton.LookAndFeel.SetSkinStyle(cnt.SkinName); var gItem = new GalleryItem(); int groupIndex = 0; ribbonGalleryBarItemThemes.Gallery.Groups[groupIndex].Items.Add(gItem); gItem.Caption = cnt.SkinName; gItem.Image = GetSkinImage(imageButton, 17, 17, 2); gItem.HoverImage = GetSkinImage(imageButton, 41, 41, 5); gItem.Caption = cnt.SkinName; gItem.Hint = cnt.SkinName; } ribbonGalleryBarItemThemes.Gallery.InitDropDownGallery += Gallery_InitDropDownGallery; ribbonGalleryBarItemThemes.Gallery.ItemClick += Gallery_ItemClick; }
private void InitializeComponent() { this.pictureBox1 = new PictureBox(); this.label1 = new Label(); this.simpleButton1 = new SimpleButton(); ((ISupportInitialize) this.pictureBox1).BeginInit(); base.SuspendLayout(); this.pictureBox1.BorderStyle = BorderStyle.FixedSingle; this.pictureBox1.Dock = DockStyle.Top; this.pictureBox1.Location = new Point(0, 0); this.pictureBox1.Name = "pictureBox1"; this.pictureBox1.Size = new Size(0x1e2, 0x108); this.pictureBox1.TabIndex = 0; this.pictureBox1.TabStop = false; this.label1.Anchor = AnchorStyles.Left | AnchorStyles.Bottom; this.label1.Location = new Point(8, 280); this.label1.Name = "label1"; this.label1.Size = new Size(400, 0x38); this.label1.TabIndex = 1; this.label1.Text = "警告:本计算机程序受版权法与国际条约保护。如未经授权复制或传播本软件(或其中任何部分),都将受到严厉的刑事与民事制裁,并将在法律许可的最大限度内受到起诉。"; this.simpleButton1.Anchor = AnchorStyles.Right | AnchorStyles.Bottom; this.simpleButton1.Location = new Point(0x1a8, 0x138); this.simpleButton1.Name = "simpleButton1"; this.simpleButton1.Size = new Size(0x38, 0x17); this.simpleButton1.TabIndex = 2; this.simpleButton1.Text = "确定"; this.simpleButton1.Click += new EventHandler(this.simpleButton1_Click); this.AutoScaleBaseSize = new Size(6, 15); base.ClientSize = new Size(0x1e2, 0x15f); base.Controls.Add(this.simpleButton1); base.Controls.Add(this.label1); base.Controls.Add(this.pictureBox1); base.FormBorderStyle = FormBorderStyle.FixedSingle; base.MaximizeBox = false; base.MinimizeBox = false; base.Name = "CommonAboutDialog"; ((ISupportInitialize) this.pictureBox1).EndInit(); base.ResumeLayout(false); }
public void UpdateModule(NavBarGroup group) { this.SuspendLayout(); flowLayoutPanel1.Controls.Clear(); int cellNum = 0; if (group != null) { NavBarItem item; foreach (NavBarItemLink itemLink in group.VisibleItemLinks) { item = itemLink.Item; SimpleButton btn = new SimpleButton(); btn.Text = item.Caption; btn.Appearance.Options.UseTextOptions = true; btn.Appearance.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap; btn.ImageLocation = DevExpress.XtraEditors.ImageLocation.TopCenter; btn.Image = _GZFramework.Demo.Library.MyClass.LoadUIImage.LoadFunctionButtonImg((item.Tag as ModuleFunction).FunctionPng); btn.Margin = new System.Windows.Forms.Padding(5); btn.Padding = new System.Windows.Forms.Padding(3, 1, 3, 1); btn.Size = new System.Drawing.Size(btnWidth, btnHeight); btn.Tag = item.Tag; btn.Click += btn_Click; flowLayoutPanel1.Controls.Add(btn); } this.Text = group.Caption; } this.Activate(); this.ResumeLayout(); }
public void renderBuildingButton() { bttViewAll.Text = MainForm.getLanguage("_viewRoomAll"); DataTable BuildingDataTable = new DataTable(); BuildingDataTable = BusinessLogicBridge.DataStore.getBuilding(); for (int i = 0; i < BuildingDataTable.Rows.Count; i++) { SimpleButton BuildingButton = new SimpleButton(); BuildingButton.AutoWidthInLayoutControl = true; string BuildingTxt = ""; BuildingButton.Text = BuildingTxt + (string)BuildingDataTable.Rows[i]["building_label"]; BuildingButton.Name = Convert.ToString(BuildingDataTable.Rows[i]["building_id"]); BuildingButton.MouseClick += new MouseEventHandler(BuildingButton_MouseClick); flowLayoutPanel2.Controls.Add(BuildingButton); } }
/// <summary> /// 设计器支持所需的方法 - 不要使用代码编辑器修改 /// 此方法的内容。 /// </summary> private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmStaticByGeometry)); this.label1 = new Label(); this.cboLayers = new ComboBoxEdit(); this.label3 = new Label(); this.groupBox1 = new GroupBox(); this.btnDelete = new SimpleButton(); this.btnSelectField = new SimpleButton(); this.cboFields = new ComboBoxEdit(); this.label4 = new Label(); this.listView1 = new EditListView(); this.columnHeader1 = new LVColumnHeader(); this.columnHeader2 = new LVColumnHeader(); this.cboClassField = new ComboBoxEdit(); this.btnCancel = new SimpleButton(); this.btnOK = new SimpleButton(); this.listView2 = new ListView(); ((ISupportInitialize)this.cboLayers.Properties).BeginInit(); this.groupBox1.SuspendLayout(); ((ISupportInitialize)this.cboFields.Properties).BeginInit(); ((ISupportInitialize)this.cboClassField.Properties).BeginInit(); base.SuspendLayout(); this.label1.AutoSize = true; this.label1.Location = new System.Drawing.Point(8, 16); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(29, 12); this.label1.TabIndex = 0; this.label1.Text = "图层"; this.cboLayers.EditValue = ""; this.cboLayers.Location = new System.Drawing.Point(64, 8); this.cboLayers.Name = "cboLayers"; this.cboLayers.Properties.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) }); this.cboLayers.Size = new System.Drawing.Size(224, 21); this.cboLayers.TabIndex = 1; this.cboLayers.SelectedIndexChanged += new EventHandler(this.cboLayers_SelectedIndexChanged); this.label3.AutoSize = true; this.label3.Location = new System.Drawing.Point(8, 48); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(53, 12); this.label3.TabIndex = 10; this.label3.Text = "分类字段"; this.groupBox1.Controls.Add(this.btnDelete); this.groupBox1.Controls.Add(this.btnSelectField); this.groupBox1.Controls.Add(this.cboFields); this.groupBox1.Controls.Add(this.label4); this.groupBox1.Controls.Add(this.listView1); this.groupBox1.Location = new System.Drawing.Point(8, 72); this.groupBox1.Name = "groupBox1"; this.groupBox1.Size = new System.Drawing.Size(296, 152); this.groupBox1.TabIndex = 11; this.groupBox1.TabStop = false; this.groupBox1.Text = "统计字段"; this.btnDelete.Enabled = false; this.btnDelete.Image = (Image)resources.GetObject("btnDelete.Image"); this.btnDelete.Location = new System.Drawing.Point(256, 88); this.btnDelete.Name = "btnDelete"; this.btnDelete.Size = new System.Drawing.Size(24, 24); this.btnDelete.TabIndex = 13; this.btnDelete.Click += new EventHandler(this.btnDelete_Click); this.btnSelectField.Enabled = false; this.btnSelectField.Image = (Image)resources.GetObject("btnSelectField.Image"); this.btnSelectField.Location = new System.Drawing.Point(256, 56); this.btnSelectField.Name = "btnSelectField"; this.btnSelectField.Size = new System.Drawing.Size(24, 24); this.btnSelectField.TabIndex = 12; this.btnSelectField.Click += new EventHandler(this.btnSelectField_Click); this.cboFields.EditValue = ""; this.cboFields.Location = new System.Drawing.Point(56, 24); this.cboFields.Name = "cboFields"; this.cboFields.Properties.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) }); this.cboFields.Size = new System.Drawing.Size(192, 21); this.cboFields.TabIndex = 11; this.cboFields.SelectedIndexChanged += new EventHandler(this.cboFields_SelectedIndexChanged); this.label4.AutoSize = true; this.label4.Location = new System.Drawing.Point(8, 24); this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size(29, 12); this.label4.TabIndex = 10; this.label4.Text = "字段"; this.listView1.Columns.AddRange(new ColumnHeader[] { this.columnHeader1, this.columnHeader2 }); this.listView1.ComboBoxBgColor = Color.White; this.listView1.ComboBoxFont = new System.Drawing.Font("宋体", 9f, FontStyle.Regular, GraphicsUnit.Point, 134); this.listView1.EditBgColor = Color.White; this.listView1.EditFont = new System.Drawing.Font("宋体", 9f, FontStyle.Regular, GraphicsUnit.Point, 134); this.listView1.FullRowSelect = true; this.listView1.GridLines = true; this.listView1.Location = new System.Drawing.Point(8, 56); this.listView1.LockRowCount = 0; this.listView1.Name = "listView1"; this.listView1.Size = new System.Drawing.Size(240, 88); this.listView1.TabIndex = 9; this.listView1.UseCompatibleStateImageBehavior = false; this.listView1.View = View.Details; this.listView1.SelectedIndexChanged += new EventHandler(this.listView1_SelectedIndexChanged); this.columnHeader1.ColumnStyle = ListViewColumnStyle.ReadOnly; this.columnHeader1.Text = "字段"; this.columnHeader1.Width = 109; this.columnHeader2.ColumnStyle = ListViewColumnStyle.ReadOnly; this.columnHeader2.Text = "统计类型"; this.columnHeader2.Width = 125; this.cboClassField.EditValue = ""; this.cboClassField.Location = new System.Drawing.Point(64, 40); this.cboClassField.Name = "cboClassField"; this.cboClassField.Properties.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) }); this.cboClassField.Size = new System.Drawing.Size(224, 21); this.cboClassField.TabIndex = 9; this.cboClassField.SelectedIndexChanged += new EventHandler(this.cboClassField_SelectedIndexChanged); this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.btnCancel.Location = new System.Drawing.Point(264, 344); this.btnCancel.Name = "btnCancel"; this.btnCancel.Size = new System.Drawing.Size(48, 24); this.btnCancel.TabIndex = 22; this.btnCancel.Text = "关闭"; this.btnOK.Enabled = false; this.btnOK.Location = new System.Drawing.Point(32, 344); this.btnOK.Name = "btnOK"; this.btnOK.Size = new System.Drawing.Size(48, 24); this.btnOK.TabIndex = 21; this.btnOK.Text = "统计"; this.btnOK.Click += new EventHandler(this.btnOK_Click); this.listView2.Location = new System.Drawing.Point(8, 232); this.listView2.Name = "listView2"; this.listView2.Size = new System.Drawing.Size(296, 96); this.listView2.TabIndex = 23; this.listView2.UseCompatibleStateImageBehavior = false; this.listView2.View = View.Details; this.AutoScaleBaseSize = new System.Drawing.Size(6, 14); base.ClientSize = new System.Drawing.Size(320, 373); base.Controls.Add(this.listView2); base.Controls.Add(this.btnCancel); base.Controls.Add(this.btnOK); base.Controls.Add(this.label3); base.Controls.Add(this.label1); base.Controls.Add(this.groupBox1); base.Controls.Add(this.cboClassField); base.Controls.Add(this.cboLayers); base.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; base.MaximizeBox = false; base.MinimizeBox = false; base.Name = "frmStaticByGeometry"; this.Text = "统计"; base.Load += new EventHandler(this.frmStaticByGeometry_Load); ((ISupportInitialize)this.cboLayers.Properties).EndInit(); this.groupBox1.ResumeLayout(false); this.groupBox1.PerformLayout(); ((ISupportInitialize)this.cboFields.Properties).EndInit(); ((ISupportInitialize)this.cboClassField.Properties).EndInit(); base.ResumeLayout(false); base.PerformLayout(); }
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(); }
private void updateEnableButtonAndResetValueOfControl(ref SimpleButton _btnControl) { switch (_btnControl.Name) { case "btnAdd": { servicesMulitiSelect.ClearSelection(); // btnAdd.Visible = false; btnCancel.Visible = true; // btnSave.Enabled = true; btnUpdate.Enabled = false; btnDelete.Enabled = false; // txtServicesId.Text = "DV0000**"; txtServicesName.Text = null; txtServicesName.Focus(); txtServicesName.Properties.ReadOnly = false; spPrice.EditValue = 0; spPrice.ReadOnly = false; lkUnit.Properties.ReadOnly = false; lkServicesType.Properties.ReadOnly = false; // grdvListServices.OptionsSelection.EnableAppearanceFocusedRow = false; grdvListServices.Columns["CheckMarkSelection"].OptionsColumn.AllowEdit = false; // m_IsAdd = true; break; } case "btnCancel": { // m_IsAdd = false; // btnAdd.Visible = true; btnCancel.Visible = false; btnCancelOfUpdate.Visible = false; btnUpdate.Visible = true; // btnUpdate.Enabled = true; btnDelete.Enabled = true; btnAdd.Enabled = true; btnSave.Enabled = false; // txtServicesName.Properties.ReadOnly = true; spPrice.ReadOnly = true; lkUnit.Properties.ReadOnly = true; lkServicesType.Properties.ReadOnly = true; // grdvListServices.OptionsSelection.EnableAppearanceFocusedRow = true; grdvListServices.Columns["CheckMarkSelection"].OptionsColumn.AllowEdit = true; // servicesDataTable = servicesBUS.GetAllServices(); grdListServices.DataSource = servicesDataTable; grdvListServices.FocusedRowHandle = -1; grdvListServices.FocusedRowHandle = 0; // dxErrorProvider.ClearErrors(); break; } case "btnCancelOfUpdate": { // btnAdd.Visible = true; btnCancel.Visible = false; btnCancelOfUpdate.Visible = false; btnUpdate.Visible = true; // btnUpdate.Enabled = true; btnDelete.Enabled = true; btnAdd.Enabled = true; btnSave.Enabled = false; // txtServicesName.Properties.ReadOnly = true; spPrice.ReadOnly = true; lkUnit.Properties.ReadOnly = true; lkServicesType.Properties.ReadOnly = true; // grdvListServices.OptionsSelection.EnableAppearanceFocusedRow = true; grdvListServices.Columns["CheckMarkSelection"].OptionsColumn.AllowEdit = true; // servicesDataTable = servicesBUS.GetAllServices(); grdListServices.DataSource = servicesDataTable; grdvListServices.FocusedRowHandle = -1; grdvListServices.FocusedRowHandle = 0; // dxErrorProvider.ClearErrors(); break; } case "btnDelete": { txtServicesName.Properties.ReadOnly = true;; servicesDataTable = new DataTable(); servicesDataTable = servicesBUS.GetAllServices(); grdListServices.DataSource = servicesDataTable; grdvListServices.FocusedRowHandle = 0; servicesMulitiSelect.ClearSelection(); InitControlByData(); break; } case "btnUpdate": { servicesMulitiSelect.ClearSelection(); m_IsAdd = false; // btnUpdate.Visible = false; btnCancelOfUpdate.Visible = true; // txtServicesName.Focus(); txtServicesName.Properties.ReadOnly = false; // spPrice.ReadOnly = false; lkUnit.Properties.ReadOnly = false; lkServicesType.Properties.ReadOnly = false; // grdvListServices.OptionsSelection.EnableAppearanceFocusedRow = true; grdvListServices.Columns["CheckMarkSelection"].OptionsColumn.AllowEdit = false; // btnDelete.Enabled = false; btnAdd.Enabled = false; btnSave.Enabled = true; break; } case "btnSave": { m_IsAdd = false; btnAdd.Enabled = true; btnDelete.Enabled = true; btnUpdate.Enabled = true; btnSave.Enabled = false; // btnUpdate.Visible = true; btnAdd.Visible = true; btnCancel.Visible = false; btnCancelOfUpdate.Visible = false; // txtServicesName.Properties.ReadOnly = true; // spPrice.ReadOnly = true; lkUnit.Properties.ReadOnly = true; lkServicesType.Properties.ReadOnly = true; // grdvListServices.OptionsSelection.EnableAppearanceFocusedRow = true; grdvListServices.Columns["CheckMarkSelection"].OptionsColumn.AllowEdit = true; // servicesDataTable = servicesBUS.GetAllServices(); grdListServices.DataSource = servicesDataTable; grdvListServices.FocusedRowHandle = grdvListServices.DataRowCount - 1; break; } } }
private void InitializeComponent() { DevExpress.XtraEditors.Controls.EditorButtonImageOptions editorButtonImageOptions1 = new DevExpress.XtraEditors.Controls.EditorButtonImageOptions(); DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject1 = new DevExpress.Utils.SerializableAppearanceObject(); DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject2 = new DevExpress.Utils.SerializableAppearanceObject(); DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject3 = new DevExpress.Utils.SerializableAppearanceObject(); DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject4 = new DevExpress.Utils.SerializableAppearanceObject(); this.gridControl1 = new DevExpress.XtraGrid.GridControl(); this.gridView1 = new DevExpress.XtraGrid.Views.Grid.GridView(); this.gridColumn5 = new DevExpress.XtraGrid.Columns.GridColumn(); this.gridColumn1 = new DevExpress.XtraGrid.Columns.GridColumn(); this.gridColumn2 = new DevExpress.XtraGrid.Columns.GridColumn(); this.gridColumn3 = new DevExpress.XtraGrid.Columns.GridColumn(); this.repositoryItemComboBox1 = new DevExpress.XtraEditors.Repository.RepositoryItemComboBox(); this.gridColumn4 = new DevExpress.XtraGrid.Columns.GridColumn(); this.repositoryItemButtonEdit1 = new DevExpress.XtraEditors.Repository.RepositoryItemButtonEdit(); this.gridColumn6 = new DevExpress.XtraGrid.Columns.GridColumn(); this.repositoryItemComboBox2 = new DevExpress.XtraEditors.Repository.RepositoryItemComboBox(); this.panelControl1 = new DevExpress.XtraEditors.PanelControl(); this.panelControl3 = new DevExpress.XtraEditors.PanelControl(); this.panelControl5 = new DevExpress.XtraEditors.PanelControl(); this.panelControl4 = new DevExpress.XtraEditors.PanelControl(); this.simpleButton2 = new DevExpress.XtraEditors.SimpleButton(); this.labelControl3 = new DevExpress.XtraEditors.LabelControl(); this.simpleButton1 = new DevExpress.XtraEditors.SimpleButton(); this.panelControl2 = new DevExpress.XtraEditors.PanelControl(); this.labelControl2 = new DevExpress.XtraEditors.LabelControl(); this.labelControl1 = new DevExpress.XtraEditors.LabelControl(); this.timer1 = new System.Windows.Forms.Timer(); ((System.ComponentModel.ISupportInitialize)(this.gridControl1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.gridView1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemComboBox1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemButtonEdit1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemComboBox2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.panelControl1)).BeginInit(); this.panelControl1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.panelControl3)).BeginInit(); this.panelControl3.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.panelControl5)).BeginInit(); this.panelControl5.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.panelControl4)).BeginInit(); this.panelControl4.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.panelControl2)).BeginInit(); this.panelControl2.SuspendLayout(); this.SuspendLayout(); // // 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.Name = "gridControl1"; this.gridControl1.RepositoryItems.AddRange(new DevExpress.XtraEditors.Repository.RepositoryItem[] { this.repositoryItemComboBox1, this.repositoryItemComboBox2, this.repositoryItemButtonEdit1 }); this.gridControl1.Size = new System.Drawing.Size(711, 496); this.gridControl1.TabIndex = 0; this.gridControl1.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { this.gridView1 }); // // gridView1 // this.gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { this.gridColumn5, this.gridColumn1, this.gridColumn2, this.gridColumn3, this.gridColumn4, this.gridColumn6 }); this.gridView1.FocusRectStyle = DevExpress.XtraGrid.Views.Grid.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; // // gridColumn5 // this.gridColumn5.Caption = "选择"; this.gridColumn5.FieldName = "Checked"; this.gridColumn5.Name = "gridColumn5"; this.gridColumn5.Visible = true; this.gridColumn5.VisibleIndex = 0; this.gridColumn5.Width = 55; // // gridColumn1 // this.gridColumn1.Caption = "编号"; this.gridColumn1.FieldName = "Id"; this.gridColumn1.Name = "gridColumn1"; this.gridColumn1.OptionsColumn.AllowEdit = false; this.gridColumn1.Visible = true; this.gridColumn1.VisibleIndex = 1; this.gridColumn1.Width = 58; // // gridColumn2 // this.gridColumn2.Caption = "故障点"; this.gridColumn2.FieldName = "Name"; this.gridColumn2.Name = "gridColumn2"; this.gridColumn2.OptionsColumn.AllowEdit = false; this.gridColumn2.Visible = true; this.gridColumn2.VisibleIndex = 2; this.gridColumn2.Width = 277; // // gridColumn3 // this.gridColumn3.Caption = "故障指令"; this.gridColumn3.ColumnEdit = this.repositoryItemComboBox1; this.gridColumn3.FieldName = "FaultPattern"; this.gridColumn3.Name = "gridColumn3"; this.gridColumn3.Visible = true; this.gridColumn3.VisibleIndex = 3; this.gridColumn3.Width = 110; // // repositoryItemComboBox1 // this.repositoryItemComboBox1.AutoHeight = false; this.repositoryItemComboBox1.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo) }); this.repositoryItemComboBox1.Name = "repositoryItemComboBox1"; this.repositoryItemComboBox1.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.DisableTextEditor; // // gridColumn4 // this.gridColumn4.Caption = "确定"; this.gridColumn4.ColumnEdit = this.repositoryItemButtonEdit1; this.gridColumn4.FieldName = "Sure"; this.gridColumn4.Name = "gridColumn4"; this.gridColumn4.Visible = true; this.gridColumn4.VisibleIndex = 4; this.gridColumn4.Width = 91; // // repositoryItemButtonEdit1 // this.repositoryItemButtonEdit1.AutoHeight = false; serializableAppearanceObject1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(128))))); serializableAppearanceObject1.Options.UseBackColor = true; serializableAppearanceObject2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(128))))); serializableAppearanceObject2.Options.UseBackColor = true; serializableAppearanceObject3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(128))))); serializableAppearanceObject3.Options.UseBackColor = true; serializableAppearanceObject4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(128))))); serializableAppearanceObject4.Options.UseBackColor = true; this.repositoryItemButtonEdit1.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Glyph, "", -1, true, true, false, editorButtonImageOptions1, new DevExpress.Utils.KeyShortcut(System.Windows.Forms.Keys.None), serializableAppearanceObject1, serializableAppearanceObject2, serializableAppearanceObject3, serializableAppearanceObject4, "", null, null, DevExpress.Utils.ToolTipAnchor.Default) }); this.repositoryItemButtonEdit1.ButtonsStyle = DevExpress.XtraEditors.Controls.BorderStyles.Style3D; this.repositoryItemButtonEdit1.Name = "repositoryItemButtonEdit1"; this.repositoryItemButtonEdit1.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.HideTextEditor; this.repositoryItemButtonEdit1.ButtonClick += new DevExpress.XtraEditors.Controls.ButtonPressedEventHandler(this.repositoryItemButtonEdit1_ButtonClick); // // gridColumn6 // this.gridColumn6.Caption = "答题结果"; this.gridColumn6.FieldName = "Result"; this.gridColumn6.Name = "gridColumn6"; this.gridColumn6.OptionsColumn.AllowEdit = false; this.gridColumn6.Visible = true; this.gridColumn6.VisibleIndex = 5; this.gridColumn6.Width = 98; // // repositoryItemComboBox2 // this.repositoryItemComboBox2.Name = "repositoryItemComboBox2"; // // panelControl1 // this.panelControl1.Controls.Add(this.panelControl3); this.panelControl1.Controls.Add(this.panelControl2); this.panelControl1.Dock = System.Windows.Forms.DockStyle.Fill; this.panelControl1.Location = new System.Drawing.Point(0, 0); this.panelControl1.Name = "panelControl1"; this.panelControl1.Size = new System.Drawing.Size(723, 559); this.panelControl1.TabIndex = 1; // // panelControl3 // this.panelControl3.Controls.Add(this.panelControl5); this.panelControl3.Controls.Add(this.panelControl4); this.panelControl3.Dock = System.Windows.Forms.DockStyle.Fill; this.panelControl3.Location = new System.Drawing.Point(2, 24); this.panelControl3.Name = "panelControl3"; this.panelControl3.Size = new System.Drawing.Size(719, 533); this.panelControl3.TabIndex = 2; // // panelControl5 // this.panelControl5.Controls.Add(this.gridControl1); this.panelControl5.Dock = System.Windows.Forms.DockStyle.Fill; this.panelControl5.Location = new System.Drawing.Point(2, 2); this.panelControl5.Name = "panelControl5"; this.panelControl5.Size = new System.Drawing.Size(715, 500); this.panelControl5.TabIndex = 4; // // panelControl4 // this.panelControl4.Controls.Add(this.simpleButton2); this.panelControl4.Controls.Add(this.labelControl3); this.panelControl4.Controls.Add(this.simpleButton1); this.panelControl4.Dock = System.Windows.Forms.DockStyle.Bottom; this.panelControl4.Location = new System.Drawing.Point(2, 502); this.panelControl4.Name = "panelControl4"; this.panelControl4.Size = new System.Drawing.Size(715, 29); this.panelControl4.TabIndex = 3; // // simpleButton2 // this.simpleButton2.Dock = System.Windows.Forms.DockStyle.Right; this.simpleButton2.Enabled = false; this.simpleButton2.Location = new System.Drawing.Point(582, 2); this.simpleButton2.Name = "simpleButton2"; this.simpleButton2.Size = new System.Drawing.Size(72, 25); this.simpleButton2.TabIndex = 3; this.simpleButton2.Text = "考核结果"; this.simpleButton2.Click += new System.EventHandler(this.simpleButton2_Click); // // labelControl3 // this.labelControl3.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); this.labelControl3.Appearance.Options.UseFont = true; this.labelControl3.Dock = System.Windows.Forms.DockStyle.Left; this.labelControl3.LineVisible = true; this.labelControl3.Location = new System.Drawing.Point(2, 2); this.labelControl3.Name = "labelControl3"; this.labelControl3.Size = new System.Drawing.Size(42, 17); this.labelControl3.TabIndex = 2; this.labelControl3.Text = "提示:"; // // simpleButton1 // this.simpleButton1.Dock = System.Windows.Forms.DockStyle.Right; this.simpleButton1.Location = new System.Drawing.Point(654, 2); this.simpleButton1.Name = "simpleButton1"; this.simpleButton1.Size = new System.Drawing.Size(59, 25); this.simpleButton1.TabIndex = 1; this.simpleButton1.Text = "提交"; this.simpleButton1.Click += new System.EventHandler(this.simpleButton1_Click); // // panelControl2 // this.panelControl2.Controls.Add(this.labelControl2); this.panelControl2.Controls.Add(this.labelControl1); this.panelControl2.Dock = System.Windows.Forms.DockStyle.Top; this.panelControl2.Location = new System.Drawing.Point(2, 2); this.panelControl2.Name = "panelControl2"; this.panelControl2.Size = new System.Drawing.Size(719, 22); this.panelControl2.TabIndex = 1; // // labelControl2 // this.labelControl2.Dock = System.Windows.Forms.DockStyle.Left; this.labelControl2.Location = new System.Drawing.Point(2, 2); this.labelControl2.Name = "labelControl2"; this.labelControl2.Size = new System.Drawing.Size(36, 14); this.labelControl2.TabIndex = 3; this.labelControl2.Text = "次数:"; // // labelControl1 // this.labelControl1.Dock = System.Windows.Forms.DockStyle.Right; this.labelControl1.Location = new System.Drawing.Point(693, 2); this.labelControl1.Name = "labelControl1"; this.labelControl1.Size = new System.Drawing.Size(24, 14); this.labelControl1.TabIndex = 2; this.labelControl1.Text = "时间"; // // timer1 // this.timer1.Interval = 1000; this.timer1.Tick += new System.EventHandler(this.timer1_Tick); // // FrmCheck // this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScroll = true; this.AutoScrollMinSize = new System.Drawing.Size(100, 0); this.ClientSize = new System.Drawing.Size(723, 559); this.Controls.Add(this.panelControl1); this.Name = "FrmCheck"; this.Text = "考核答题"; this.Load += new System.EventHandler(this.FrmCheck_Load); ((System.ComponentModel.ISupportInitialize)(this.gridControl1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.gridView1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemComboBox1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemButtonEdit1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemComboBox2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.panelControl1)).EndInit(); this.panelControl1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.panelControl3)).EndInit(); this.panelControl3.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.panelControl5)).EndInit(); this.panelControl5.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.panelControl4)).EndInit(); this.panelControl4.ResumeLayout(false); this.panelControl4.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.panelControl2)).EndInit(); this.panelControl2.ResumeLayout(false); this.panelControl2.PerformLayout(); this.ResumeLayout(false); }
private void InitializeComponent() { this.layoutControl1 = new DevExpress.XtraLayout.LayoutControl(); this.dateEdit1 = new DevExpress.XtraEditors.DateEdit(); this.btnOK = new DevExpress.XtraEditors.SimpleButton(); this.simpleButton2 = new DevExpress.XtraEditors.SimpleButton(); this.layoutControlGroup1 = new DevExpress.XtraLayout.LayoutControlGroup(); this.layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem(); this.layoutControlItem4 = new DevExpress.XtraLayout.LayoutControlItem(); this.layoutControlItem3 = new DevExpress.XtraLayout.LayoutControlItem(); this.emptySpaceItem1 = new DevExpress.XtraLayout.EmptySpaceItem(); this.emptySpaceItem2 = new DevExpress.XtraLayout.EmptySpaceItem(); this.emptySpaceItem3 = new DevExpress.XtraLayout.EmptySpaceItem(); ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).BeginInit(); this.layoutControl1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.dateEdit1.Properties.CalendarTimeProperties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.dateEdit1.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem3)).BeginInit(); this.SuspendLayout(); // // layoutControl1 // this.layoutControl1.Controls.Add(this.dateEdit1); this.layoutControl1.Controls.Add(this.btnOK); this.layoutControl1.Controls.Add(this.simpleButton2); this.layoutControl1.Dock = System.Windows.Forms.DockStyle.Fill; this.layoutControl1.Location = new System.Drawing.Point(0, 0); this.layoutControl1.Name = "layoutControl1"; this.layoutControl1.Root = this.layoutControlGroup1; this.layoutControl1.Size = new System.Drawing.Size(305, 73); this.layoutControl1.TabIndex = 0; this.layoutControl1.Text = "layoutControl1"; // // dateEdit1 // this.dateEdit1.EditValue = new System.DateTime(2018, 1, 31, 0, 0, 0, 0); this.dateEdit1.Location = new System.Drawing.Point(75, 12); this.dateEdit1.Name = "dateEdit1"; this.dateEdit1.Properties.AllowNullInput = DevExpress.Utils.DefaultBoolean.False; this.dateEdit1.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo) }); this.dateEdit1.Properties.CalendarTimeEditing = DevExpress.Utils.DefaultBoolean.True; this.dateEdit1.Properties.CalendarTimeProperties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton() }); this.dateEdit1.Properties.CalendarView = DevExpress.XtraEditors.Repository.CalendarView.Vista; this.dateEdit1.Properties.DisplayFormat.FormatString = "F"; this.dateEdit1.Properties.DisplayFormat.FormatType = DevExpress.Utils.FormatType.DateTime; this.dateEdit1.Properties.EditFormat.FormatString = "F"; this.dateEdit1.Properties.EditFormat.FormatType = DevExpress.Utils.FormatType.DateTime; this.dateEdit1.Properties.Mask.EditMask = "F"; this.dateEdit1.Properties.VistaDisplayMode = DevExpress.Utils.DefaultBoolean.True; this.dateEdit1.Size = new System.Drawing.Size(218, 22); this.dateEdit1.StyleController = this.layoutControl1; this.dateEdit1.TabIndex = 7; // // btnOK // this.btnOK.Location = new System.Drawing.Point(48, 38); this.btnOK.Name = "btnOK"; this.btnOK.Size = new System.Drawing.Size(103, 22); this.btnOK.StyleController = this.layoutControl1; this.btnOK.TabIndex = 5; this.btnOK.Text = "确定"; this.btnOK.Click += new System.EventHandler(this.btnOK_Click); // // simpleButton2 // this.simpleButton2.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.simpleButton2.Location = new System.Drawing.Point(175, 38); this.simpleButton2.Name = "simpleButton2"; this.simpleButton2.Size = new System.Drawing.Size(108, 22); this.simpleButton2.StyleController = this.layoutControl1; this.simpleButton2.TabIndex = 6; this.simpleButton2.Text = "取消"; this.simpleButton2.Click += new System.EventHandler(this.simpleButton2_Click); // // layoutControlGroup1 // this.layoutControlGroup1.CustomizationFormText = "layoutControlGroup1"; this.layoutControlGroup1.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True; this.layoutControlGroup1.GroupBordersVisible = false; this.layoutControlGroup1.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { this.layoutControlItem2, this.layoutControlItem4, this.layoutControlItem3, this.emptySpaceItem1, this.emptySpaceItem2, this.emptySpaceItem3 }); this.layoutControlGroup1.Location = new System.Drawing.Point(0, 0); this.layoutControlGroup1.Name = "layoutControlGroup1"; this.layoutControlGroup1.Size = new System.Drawing.Size(305, 73); this.layoutControlGroup1.Text = "layoutControlGroup1"; this.layoutControlGroup1.TextVisible = false; // // layoutControlItem2 // this.layoutControlItem2.Control = this.btnOK; this.layoutControlItem2.CustomizationFormText = "layoutControlItem2"; this.layoutControlItem2.Location = new System.Drawing.Point(36, 26); this.layoutControlItem2.Name = "layoutControlItem2"; this.layoutControlItem2.Size = new System.Drawing.Size(107, 27); this.layoutControlItem2.Text = "layoutControlItem2"; this.layoutControlItem2.TextSize = new System.Drawing.Size(0, 0); this.layoutControlItem2.TextToControlDistance = 0; this.layoutControlItem2.TextVisible = false; // // layoutControlItem4 // this.layoutControlItem4.Control = this.dateEdit1; this.layoutControlItem4.CustomizationFormText = "layoutControlItem4"; this.layoutControlItem4.Location = new System.Drawing.Point(0, 0); this.layoutControlItem4.Name = "layoutControlItem4"; this.layoutControlItem4.Size = new System.Drawing.Size(285, 26); this.layoutControlItem4.Text = "设置时间:"; this.layoutControlItem4.TextSize = new System.Drawing.Size(60, 14); // // layoutControlItem3 // this.layoutControlItem3.Control = this.simpleButton2; this.layoutControlItem3.CustomizationFormText = "layoutControlItem3"; this.layoutControlItem3.Location = new System.Drawing.Point(163, 26); this.layoutControlItem3.Name = "layoutControlItem3"; this.layoutControlItem3.Size = new System.Drawing.Size(112, 27); this.layoutControlItem3.Text = "layoutControlItem3"; this.layoutControlItem3.TextSize = new System.Drawing.Size(0, 0); this.layoutControlItem3.TextToControlDistance = 0; this.layoutControlItem3.TextVisible = false; // // emptySpaceItem1 // this.emptySpaceItem1.AllowHotTrack = false; this.emptySpaceItem1.CustomizationFormText = "emptySpaceItem1"; this.emptySpaceItem1.Location = new System.Drawing.Point(275, 26); this.emptySpaceItem1.Name = "emptySpaceItem1"; this.emptySpaceItem1.Size = new System.Drawing.Size(10, 27); this.emptySpaceItem1.Text = "emptySpaceItem1"; this.emptySpaceItem1.TextSize = new System.Drawing.Size(0, 0); // // emptySpaceItem2 // this.emptySpaceItem2.AllowHotTrack = false; this.emptySpaceItem2.CustomizationFormText = "emptySpaceItem2"; this.emptySpaceItem2.Location = new System.Drawing.Point(0, 26); this.emptySpaceItem2.Name = "emptySpaceItem2"; this.emptySpaceItem2.Size = new System.Drawing.Size(36, 27); this.emptySpaceItem2.Text = "emptySpaceItem2"; this.emptySpaceItem2.TextSize = new System.Drawing.Size(0, 0); // // emptySpaceItem3 // this.emptySpaceItem3.AllowHotTrack = false; this.emptySpaceItem3.CustomizationFormText = "emptySpaceItem3"; this.emptySpaceItem3.Location = new System.Drawing.Point(143, 26); this.emptySpaceItem3.Name = "emptySpaceItem3"; this.emptySpaceItem3.Size = new System.Drawing.Size(20, 27); this.emptySpaceItem3.Text = "emptySpaceItem3"; this.emptySpaceItem3.TextSize = new System.Drawing.Size(0, 0); // // DateSettingDialog // this.AcceptButton = this.btnOK; this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.CancelButton = this.simpleButton2; this.ClientSize = new System.Drawing.Size(305, 73); this.ControlBox = false; this.Controls.Add(this.layoutControl1); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow; this.MaximizeBox = false; this.MinimizeBox = false; this.Name = "DateSettingDialog"; this.ShowInTaskbar = false; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "时间设置"; ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).EndInit(); this.layoutControl1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.dateEdit1.Properties.CalendarTimeProperties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.dateEdit1.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem3)).EndInit(); this.ResumeLayout(false); }
private void btn_Click(object sender, EventArgs e) { SimpleButton btn = (SimpleButton)sender; //Discount if (objName.Equals("txtDiscount")) { if (txtDiscount.Text.Equals("0.00") || txtDiscount.Text.Equals("0.0") || txtDiscount.Text.Equals("0") || string.IsNullOrEmpty(txtDiscount.Text)) { txtDiscount.Text = btn.Text; } else { if (txtDiscount.Text.EndsWith("%")) { txtDiscount.Text = txtDiscount.Text.Substring(0, txtDiscount.Text.Length - 1) + btn.Text + "%"; } else { txtDiscount.Text += btn.Text; } } } else if (objName.Equals("txtDelivery")) { if (txtDelivery.Text.Equals("0.00") || txtDelivery.Text.Equals("0.0") || txtDelivery.Text.Equals("0") || string.IsNullOrEmpty(txtDelivery.Text)) { txtDelivery.Text = btn.Text; } else { if (txtDelivery.Text.EndsWith("%")) { txtDelivery.Text = txtDelivery.Text.Substring(0, txtDelivery.Text.Length - 1) + btn.Text + "%"; } else { txtDelivery.Text += btn.Text; } } } else if (objName.Equals("txtPay")) { if (txtPay.Text.Equals("0.00") || txtPay.Text.Equals("0.0") || txtPay.Text.Equals("0") || string.IsNullOrEmpty(txtPay.Text)) { txtPay.Text = btn.Text; } else { if (txtPay.Text.EndsWith("%")) { txtPay.Text = txtPay.Text.Substring(0, txtPay.Text.Length - 1) + btn.Text + "%"; } else { txtPay.Text += btn.Text; } } } }
private void updateEnableButtonAndResetValueOfControl(ref SimpleButton _btnControl) { switch (_btnControl.Name) { case "btnAdd": { m_PublisherMulitSelect.ClearSelection(); // btnAdd.Visible = false; btnCancel.Visible = true; // btnSave.Enabled = true; btnUpdate.Enabled = false; btnDelete.Enabled = false; // txtPublisherId.Text = "NXB0000**"; txtPublisherName.Text = null; txtPublisherAddress.Text = null; txtPublisherAddress.Properties.ReadOnly = false; txtPublisherName.Properties.ReadOnly = false; // grdvListPublisher.OptionsSelection.EnableAppearanceFocusedRow = false; grdvListPublisher.Columns["CheckMarkSelection"].OptionsColumn.AllowEdit = false; // m_IsAdd = true; break; } case "btnCancel": { // m_IsAdd = false; // btnAdd.Visible = true; btnCancel.Visible = false; btnCancelOfUpdate.Visible = false; btnUpdate.Visible = true; // btnUpdate.Enabled = true; btnDelete.Enabled = true; btnAdd.Enabled = true; btnSave.Enabled = false; // txtPublisherName.Properties.ReadOnly = true; txtPublisherAddress.Properties.ReadOnly = true; // grdvListPublisher.OptionsSelection.EnableAppearanceFocusedRow = true; grdvListPublisher.Columns["CheckMarkSelection"].OptionsColumn.AllowEdit = true; // m_PublisherData = m_PublisherExecute.getPublisherDataFromDatabase(); grdListPublisher.DataSource = m_PublisherData; grdvListPublisher.FocusedRowHandle = -1; grdvListPublisher.FocusedRowHandle = 0; break; } case "btnCancelOfUpdate": { // btnAdd.Visible = true; btnCancel.Visible = false; btnCancelOfUpdate.Visible = false; btnUpdate.Visible = true; // btnUpdate.Enabled = true; btnDelete.Enabled = true; btnAdd.Enabled = true; btnSave.Enabled = false; // txtPublisherName.Properties.ReadOnly = true; txtPublisherAddress.Properties.ReadOnly = true; // grdvListPublisher.OptionsSelection.EnableAppearanceFocusedRow = true; grdvListPublisher.Columns["CheckMarkSelection"].OptionsColumn.AllowEdit = true; // m_PublisherData = m_PublisherExecute.getPublisherDataFromDatabase(); grdListPublisher.DataSource = m_PublisherData; grdvListPublisher.FocusedRowHandle = -1; grdvListPublisher.FocusedRowHandle = 0; break; } case "btnDelete": { txtPublisherName.Properties.ReadOnly = true; txtPublisherAddress.Properties.ReadOnly = true; // m_PublisherData = m_PublisherExecute.getPublisherDataFromDatabase(); grdListPublisher.DataSource = m_PublisherData; // grdvListPublisher.FocusedRowHandle = -1; grdvListPublisher.FocusedRowHandle = 0; // m_PublisherMulitSelect.ClearSelection(); break; } case "btnUpdate": { m_PublisherMulitSelect.ClearSelection(); m_IsAdd = false; // btnUpdate.Visible = false; btnCancelOfUpdate.Visible = true; // txtPublisherName.Properties.ReadOnly = false; txtPublisherAddress.Properties.ReadOnly = false; // grdvListPublisher.OptionsSelection.EnableAppearanceFocusedRow = true; grdvListPublisher.Columns["CheckMarkSelection"].OptionsColumn.AllowEdit = false; // btnDelete.Enabled = false; btnAdd.Enabled = false; btnSave.Enabled = true; break; } case "btnSave": { m_IsAdd = false; btnAdd.Enabled = true; btnDelete.Enabled = true; btnUpdate.Enabled = true; btnSave.Enabled = false; // btnUpdate.Visible = true; btnAdd.Visible = true; btnCancel.Visible = false; btnCancelOfUpdate.Visible = false; // txtPublisherName.Properties.ReadOnly = true; txtPublisherAddress.Properties.ReadOnly = true; // grdvListPublisher.OptionsSelection.EnableAppearanceFocusedRow = true; grdvListPublisher.Columns["CheckMarkSelection"].OptionsColumn.AllowEdit = true; // m_PublisherData = m_PublisherExecute.getPublisherDataFromDatabase(); grdListPublisher.DataSource = m_PublisherData; grdvListPublisher.FocusedRowHandle = grdvListPublisher.DataRowCount - 1; break; } } }
private void InitializeComponent() { ComponentResourceManager manager = new ComponentResourceManager(typeof(ФормаВыбораТеста)); this.layoutControl1 = new LayoutControl(); this.button_отмена = new SimpleButton(); this.gridControl_тесты = new GridControl(); this.gridView = new GridView(); this.gridColumn_Наименование = new GridColumn(); this.gridColumn_проверить = new GridColumn(); this.repositoryItemCheckEdit_выбрать = new RepositoryItemCheckEdit(); this.button_ok = new SimpleButton(); this.layoutControlGroup1 = new LayoutControlGroup(); this.layoutControlItem1 = new LayoutControlItem(); this.emptySpaceItem1 = new EmptySpaceItem(); this.layoutControlItem3 = new LayoutControlItem(); this.layoutControlItem2 = new LayoutControlItem(); this.emptySpaceItem2 = new EmptySpaceItem(); this.layoutControl1.BeginInit(); this.layoutControl1.SuspendLayout(); this.gridControl_тесты.BeginInit(); this.gridView.BeginInit(); this.repositoryItemCheckEdit_выбрать.BeginInit(); this.layoutControlGroup1.BeginInit(); this.layoutControlItem1.BeginInit(); this.emptySpaceItem1.BeginInit(); this.layoutControlItem3.BeginInit(); this.layoutControlItem2.BeginInit(); this.emptySpaceItem2.BeginInit(); base.SuspendLayout(); this.layoutControl1.Controls.Add(this.button_отмена); this.layoutControl1.Controls.Add(this.gridControl_тесты); this.layoutControl1.Controls.Add(this.button_ok); this.layoutControl1.Dock = DockStyle.Fill; this.layoutControl1.Location = new Point(0, 0); this.layoutControl1.Name = "layoutControl1"; this.layoutControl1.Root = this.layoutControlGroup1; this.layoutControl1.Size = new Size(0x25a, 0x169); this.layoutControl1.TabIndex = 0; this.layoutControl1.Text = "layoutControl1"; this.button_отмена.DialogResult = DialogResult.Cancel; this.button_отмена.Location = new Point(0x1ec, 0x14d); this.button_отмена.Name = "button_отмена"; this.button_отмена.Size = new Size(0x68, 0x16); this.button_отмена.StyleController = this.layoutControl1; this.button_отмена.TabIndex = 7; this.button_отмена.Text = "Отмена"; this.gridControl_тесты.EmbeddedNavigator.Name = ""; this.gridControl_тесты.Location = new Point(7, 0x24); this.gridControl_тесты.MainView = this.gridView; this.gridControl_тесты.Name = "gridControl_тесты"; this.gridControl_тесты.RepositoryItems.AddRange(new RepositoryItem[] { this.repositoryItemCheckEdit_выбрать }); this.gridControl_тесты.Size = new Size(0x24d, 0x11e); this.gridControl_тесты.TabIndex = 4; this.gridControl_тесты.ViewCollection.AddRange(new BaseView[] { this.gridView }); this.gridView.Columns.AddRange(new GridColumn[] { this.gridColumn_Наименование, this.gridColumn_проверить }); this.gridView.GridControl = this.gridControl_тесты; this.gridView.Name = "gridView"; this.gridView.OptionsCustomization.AllowFilter = false; this.gridView.OptionsCustomization.AllowGroup = false; this.gridView.OptionsCustomization.AllowRowSizing = true; this.gridView.OptionsDetail.EnableMasterViewMode = false; this.gridView.OptionsView.ShowIndicator = false; this.gridView.CustomUnboundColumnData += new CustomColumnDataEventHandler(this.gridView_CustomUnboundColumnData); this.gridColumn_Наименование.Caption = "Наименование"; this.gridColumn_Наименование.FieldName = "Наименование"; this.gridColumn_Наименование.Name = "gridColumn_Наименование"; this.gridColumn_Наименование.OptionsColumn.AllowEdit = false; this.gridColumn_Наименование.OptionsColumn.ReadOnly = true; this.gridColumn_Наименование.Visible = true; this.gridColumn_Наименование.VisibleIndex = 1; this.gridColumn_Наименование.Width = 0x3a1; this.gridColumn_проверить.Caption = "Проверить"; this.gridColumn_проверить.ColumnEdit = this.repositoryItemCheckEdit_выбрать; this.gridColumn_проверить.FieldName = "gridColumn_проверить"; this.gridColumn_проверить.Name = "gridColumn_проверить"; this.gridColumn_проверить.UnboundType = UnboundColumnType.Boolean; this.gridColumn_проверить.Visible = true; this.gridColumn_проверить.VisibleIndex = 0; this.gridColumn_проверить.Width = 0x97; this.repositoryItemCheckEdit_выбрать.AutoHeight = false; this.repositoryItemCheckEdit_выбрать.Name = "repositoryItemCheckEdit_выбрать"; this.repositoryItemCheckEdit_выбрать.NullStyle = StyleIndeterminate.Inactive; this.button_ok.DialogResult = DialogResult.OK; this.button_ok.Location = new Point(0x179, 0x14d); this.button_ok.Name = "button_ok"; this.button_ok.Size = new Size(0x68, 0x16); this.button_ok.StyleController = this.layoutControl1; this.button_ok.TabIndex = 6; this.button_ok.Text = "OK"; this.layoutControlGroup1.CustomizationFormText = "layoutControlGroup1"; this.layoutControlGroup1.Items.AddRange(new BaseLayoutItem[] { this.layoutControlItem1, this.emptySpaceItem1, this.layoutControlItem3, this.layoutControlItem2, this.emptySpaceItem2 }); this.layoutControlGroup1.Location = new Point(0, 0); this.layoutControlGroup1.Name = "layoutControlGroup1"; this.layoutControlGroup1.Size = new Size(0x25a, 0x169); this.layoutControlGroup1.Spacing = new DevExpress.XtraLayout.Utils.Padding(0, 0, 0, 0); this.layoutControlGroup1.Text = "layoutControlGroup1"; this.layoutControlGroup1.TextVisible = false; this.layoutControlItem1.Control = this.gridControl_тесты; this.layoutControlItem1.CustomizationFormText = "layoutControlItem1"; this.layoutControlItem1.Location = new Point(0, 0x1d); this.layoutControlItem1.Name = "layoutControlItem1"; this.layoutControlItem1.Size = new Size(600, 0x129); this.layoutControlItem1.Text = "layoutControlItem1"; this.layoutControlItem1.TextLocation = Locations.Left; this.layoutControlItem1.TextSize = new Size(0, 0); this.layoutControlItem1.TextToControlDistance = 0; this.layoutControlItem1.TextVisible = false; this.emptySpaceItem1.CustomizationFormText = "emptySpaceItem1"; this.emptySpaceItem1.Location = new Point(0, 0x146); this.emptySpaceItem1.Name = "emptySpaceItem1"; this.emptySpaceItem1.Size = new Size(370, 0x21); this.emptySpaceItem1.Text = "emptySpaceItem1"; this.emptySpaceItem1.TextSize = new Size(0, 0); this.layoutControlItem3.Control = this.button_ok; this.layoutControlItem3.CustomizationFormText = "layoutControlItem3"; this.layoutControlItem3.Location = new Point(370, 0x146); this.layoutControlItem3.MaxSize = new Size(0x73, 0x21); this.layoutControlItem3.MinSize = new Size(0x73, 0x21); this.layoutControlItem3.Name = "layoutControlItem3"; this.layoutControlItem3.Size = new Size(0x73, 0x21); this.layoutControlItem3.SizeConstraintsType = SizeConstraintsType.Custom; this.layoutControlItem3.Text = "layoutControlItem3"; this.layoutControlItem3.TextLocation = Locations.Left; this.layoutControlItem3.TextSize = new Size(0, 0); this.layoutControlItem3.TextToControlDistance = 0; this.layoutControlItem3.TextVisible = false; this.layoutControlItem2.Control = this.button_отмена; this.layoutControlItem2.CustomizationFormText = "layoutControlItem2"; this.layoutControlItem2.Location = new Point(0x1e5, 0x146); this.layoutControlItem2.MaxSize = new Size(0x73, 0x21); this.layoutControlItem2.MinSize = new Size(0x73, 0x21); this.layoutControlItem2.Name = "layoutControlItem2"; this.layoutControlItem2.Size = new Size(0x73, 0x21); this.layoutControlItem2.SizeConstraintsType = SizeConstraintsType.Custom; this.layoutControlItem2.Text = "layoutControlItem2"; this.layoutControlItem2.TextLocation = Locations.Left; this.layoutControlItem2.TextSize = new Size(0, 0); this.layoutControlItem2.TextToControlDistance = 0; this.layoutControlItem2.TextVisible = false; this.emptySpaceItem2.CustomizationFormText = "Выберите тест для проверки :"; this.emptySpaceItem2.Location = new Point(0, 0); this.emptySpaceItem2.MaxSize = new Size(0, 0x1d); this.emptySpaceItem2.MinSize = new Size(10, 0x1d); this.emptySpaceItem2.Name = "emptySpaceItem2"; this.emptySpaceItem2.Size = new Size(600, 0x1d); this.emptySpaceItem2.SizeConstraintsType = SizeConstraintsType.Custom; this.emptySpaceItem2.Text = "Выберите один или несколько тестов для проверки :"; this.emptySpaceItem2.TextSize = new Size(0, 20); this.emptySpaceItem2.TextVisible = true; base.AcceptButton = this.button_ok; base.AutoScaleDimensions = new SizeF(6f, 13f); base.AutoScaleMode = AutoScaleMode.Font; base.CancelButton = this.button_отмена; base.ClientSize = new Size(0x25a, 0x169); base.Controls.Add(this.layoutControl1); base.Icon = (Icon)manager.GetObject("$this.Icon"); base.Name = "ФормаВыбораТеста"; base.StartPosition = FormStartPosition.CenterParent; this.Text = "Выбор теста формы"; base.FormClosing += new FormClosingEventHandler(this.ФормаВыбораТеста_FormClosing); base.Load += new EventHandler(this.ФормаВыбораТеста_Load); this.layoutControl1.EndInit(); this.layoutControl1.ResumeLayout(false); this.gridControl_тесты.EndInit(); this.gridView.EndInit(); this.repositoryItemCheckEdit_выбрать.EndInit(); this.layoutControlGroup1.EndInit(); this.layoutControlItem1.EndInit(); this.emptySpaceItem1.EndInit(); this.layoutControlItem3.EndInit(); this.layoutControlItem2.EndInit(); this.emptySpaceItem2.EndInit(); base.ResumeLayout(false); }
private void InitializeComponent() { this.panel1 = new Panel(); this.simpleButtonExit2 = new SimpleButton(); this.simpleButtonSelect = new SimpleButton(); this.gridControlPollAnswer = new GridControl(); this.gridViewPollAnswer = new GridView(); this.gridColumn1 = new GridColumn(); this.gridColumn3 = new GridColumn(); this.gridColumn4 = new GridColumn(); this.panel1.SuspendLayout(); this.gridControlPollAnswer.BeginInit(); this.gridViewPollAnswer.BeginInit(); this.SuspendLayout(); this.panel1.Controls.Add((Control)this.simpleButtonExit2); this.panel1.Controls.Add((Control)this.simpleButtonSelect); this.panel1.Dock = DockStyle.Bottom; this.panel1.Location = new Point(0, 428); this.panel1.Name = "panel1"; this.panel1.Size = new Size(798, 33); this.panel1.TabIndex = 2; this.simpleButtonExit2.Anchor = AnchorStyles.Bottom | AnchorStyles.Right; this.simpleButtonExit2.ButtonStyle = BorderStyles.Simple; this.simpleButtonExit2.DialogResult = DialogResult.Cancel; this.simpleButtonExit2.Location = new Point(720, 6); this.simpleButtonExit2.LookAndFeel.Style = LookAndFeelStyle.Flat; this.simpleButtonExit2.LookAndFeel.UseDefaultLookAndFeel = false; this.simpleButtonExit2.Name = "simpleButtonExit2"; this.simpleButtonExit2.Size = new Size(75, 23); this.simpleButtonExit2.TabIndex = 3; this.simpleButtonExit2.Text = "Отменить"; this.simpleButtonExit2.Click += new EventHandler(this.simpleButtonExit2_Click); this.simpleButtonSelect.Anchor = AnchorStyles.Bottom | AnchorStyles.Right; this.simpleButtonSelect.ButtonStyle = BorderStyles.Simple; this.simpleButtonSelect.DialogResult = DialogResult.OK; this.simpleButtonSelect.Location = new Point(639, 6); this.simpleButtonSelect.LookAndFeel.Style = LookAndFeelStyle.Flat; this.simpleButtonSelect.LookAndFeel.UseDefaultLookAndFeel = false; this.simpleButtonSelect.Name = "simpleButtonSelect"; this.simpleButtonSelect.Size = new Size(75, 23); this.simpleButtonSelect.TabIndex = 1; this.simpleButtonSelect.Text = "Выбрать"; this.simpleButtonSelect.Click += new EventHandler(this.simpleButtonSelect_Click); this.gridControlPollAnswer.Dock = DockStyle.Fill; this.gridControlPollAnswer.EmbeddedNavigator.Name = ""; this.gridControlPollAnswer.Location = new Point(0, 0); this.gridControlPollAnswer.LookAndFeel.Style = LookAndFeelStyle.Flat; this.gridControlPollAnswer.LookAndFeel.UseDefaultLookAndFeel = false; this.gridControlPollAnswer.MainView = (BaseView)this.gridViewPollAnswer; this.gridControlPollAnswer.Name = "gridControlPollAnswer"; this.gridControlPollAnswer.Size = new Size(798, 428); this.gridControlPollAnswer.TabIndex = 3; this.gridControlPollAnswer.ViewCollection.AddRange(new BaseView[1] { (BaseView)this.gridViewPollAnswer }); this.gridViewPollAnswer.Appearance.FocusedRow.BackColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridViewPollAnswer.Appearance.FocusedRow.BackColor2 = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridViewPollAnswer.Appearance.FocusedRow.ForeColor = Color.Black; this.gridViewPollAnswer.Appearance.FocusedRow.Options.UseBackColor = true; this.gridViewPollAnswer.Appearance.FocusedRow.Options.UseForeColor = true; this.gridViewPollAnswer.Appearance.HideSelectionRow.BackColor = Color.FromArgb(192, 192, (int)byte.MaxValue); this.gridViewPollAnswer.Appearance.HideSelectionRow.BackColor2 = Color.FromArgb(192, 192, (int)byte.MaxValue); this.gridViewPollAnswer.Appearance.HideSelectionRow.ForeColor = Color.Black; this.gridViewPollAnswer.Appearance.HideSelectionRow.Options.UseBackColor = true; this.gridViewPollAnswer.Appearance.HideSelectionRow.Options.UseForeColor = true; this.gridViewPollAnswer.Appearance.SelectedRow.BackColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridViewPollAnswer.Appearance.SelectedRow.BackColor2 = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridViewPollAnswer.Appearance.SelectedRow.ForeColor = Color.Black; this.gridViewPollAnswer.Appearance.SelectedRow.Options.UseBackColor = true; this.gridViewPollAnswer.Appearance.SelectedRow.Options.UseForeColor = true; this.gridViewPollAnswer.BorderStyle = BorderStyles.Simple; this.gridViewPollAnswer.Columns.AddRange(new GridColumn[3] { this.gridColumn1, this.gridColumn3, this.gridColumn4 }); this.gridViewPollAnswer.GridControl = this.gridControlPollAnswer; this.gridViewPollAnswer.Name = "gridViewPollAnswer"; this.gridViewPollAnswer.OptionsView.ShowDetailButtons = false; this.gridViewPollAnswer.OptionsView.ShowFilterPanelMode = ShowFilterPanelMode.Never; this.gridViewPollAnswer.OptionsView.ShowGroupPanel = false; this.gridViewPollAnswer.OptionsView.ShowIndicator = false; this.gridColumn1.Caption = "#"; this.gridColumn1.FieldName = "idpollanswer"; this.gridColumn1.Name = "gridColumn1"; this.gridColumn1.OptionsColumn.AllowEdit = false; this.gridColumn1.Visible = true; this.gridColumn1.VisibleIndex = 0; this.gridColumn3.Caption = "Ответ"; this.gridColumn3.FieldName = "answer"; this.gridColumn3.Name = "gridColumn3"; this.gridColumn3.OptionsColumn.AllowEdit = false; this.gridColumn3.Visible = true; this.gridColumn3.VisibleIndex = 1; this.gridColumn4.Caption = "Вес ответа"; this.gridColumn4.FieldName = "weightanswer"; this.gridColumn4.Name = "gridColumn4"; this.gridColumn4.OptionsColumn.AllowEdit = false; this.gridColumn4.Visible = true; this.gridColumn4.VisibleIndex = 2; this.AutoScaleDimensions = new SizeF(6f, 13f); this.AutoScaleMode = AutoScaleMode.Font; this.Controls.Add((Control)this.gridControlPollAnswer); this.Controls.Add((Control)this.panel1); this.Name = "PollAnswerSelectForm"; this.Size = new Size(798, 461); this.Text = "Выбор существующего ответа"; this.panel1.ResumeLayout(false); this.gridControlPollAnswer.EndInit(); this.gridViewPollAnswer.EndInit(); this.ResumeLayout(false); }
private void InitializeComponent() { this.layoutControl1 = new DevExpress.XtraLayout.LayoutControl(); this.simpleButton2 = new DevExpress.XtraEditors.SimpleButton(); this.simpleButton1 = new DevExpress.XtraEditors.SimpleButton(); 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.gridColumn5 = new DevExpress.XtraGrid.Columns.GridColumn(); this.layoutControlGroup1 = new DevExpress.XtraLayout.LayoutControlGroup(); this.layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem(); this.emptySpaceItem1 = new DevExpress.XtraLayout.EmptySpaceItem(); this.layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem(); this.layoutControlItem3 = new DevExpress.XtraLayout.LayoutControlItem(); ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).BeginInit(); this.layoutControl1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.gridControl1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.gridView1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).BeginInit(); this.SuspendLayout(); // // layoutControl1 // this.layoutControl1.Controls.Add(this.simpleButton2); this.layoutControl1.Controls.Add(this.simpleButton1); this.layoutControl1.Controls.Add(this.gridControl1); this.layoutControl1.Dock = System.Windows.Forms.DockStyle.Fill; this.layoutControl1.Location = new System.Drawing.Point(0, 0); this.layoutControl1.Name = "layoutControl1"; this.layoutControl1.Root = this.layoutControlGroup1; this.layoutControl1.Size = new System.Drawing.Size(970, 509); this.layoutControl1.TabIndex = 0; this.layoutControl1.Text = "layoutControl1"; // // simpleButton2 // this.simpleButton2.Location = new System.Drawing.Point(869, 475); this.simpleButton2.Name = "simpleButton2"; this.simpleButton2.Size = new System.Drawing.Size(89, 22); this.simpleButton2.StyleController = this.layoutControl1; this.simpleButton2.TabIndex = 6; this.simpleButton2.Text = "报表输出"; // // simpleButton1 // this.simpleButton1.Location = new System.Drawing.Point(776, 475); this.simpleButton1.Name = "simpleButton1"; this.simpleButton1.Size = new System.Drawing.Size(89, 22); this.simpleButton1.StyleController = this.layoutControl1; this.simpleButton1.TabIndex = 5; this.simpleButton1.Text = "统计图表"; this.simpleButton1.Click += new System.EventHandler(this.simpleButton1_Click); // // gridControl1 // this.gridControl1.Location = new System.Drawing.Point(12, 12); this.gridControl1.MainView = this.gridView1; this.gridControl1.Name = "gridControl1"; this.gridControl1.Size = new System.Drawing.Size(946, 459); 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.gridColumn5 }); this.gridView1.GridControl = this.gridControl1; this.gridView1.Name = "gridView1"; this.gridView1.OptionsBehavior.Editable = false; this.gridView1.OptionsView.AllowCellMerge = true; this.gridView1.CellMerge += new DevExpress.XtraGrid.Views.Grid.CellMergeEventHandler(this.gridView1_CellMerge); // // gridColumn1 // this.gridColumn1.Caption = "管线类型"; this.gridColumn1.FieldName = "PIPELINETYPE"; this.gridColumn1.Name = "gridColumn1"; this.gridColumn1.Visible = true; this.gridColumn1.VisibleIndex = 0; // // gridColumn2 // this.gridColumn2.Caption = "属性"; this.gridColumn2.FieldName = "FIELDNAME"; this.gridColumn2.Name = "gridColumn2"; this.gridColumn2.Visible = true; this.gridColumn2.VisibleIndex = 1; // // gridColumn3 // this.gridColumn3.Caption = "道路名称"; this.gridColumn3.FieldName = "PVALUE"; this.gridColumn3.Name = "gridColumn3"; this.gridColumn3.Visible = true; this.gridColumn3.VisibleIndex = 2; // // gridColumn4 // this.gridColumn4.Caption = "长度"; this.gridColumn4.FieldName = "LENGTH"; this.gridColumn4.Name = "gridColumn4"; this.gridColumn4.Visible = true; this.gridColumn4.VisibleIndex = 3; // // gridColumn5 // this.gridColumn5.Caption = "总长度"; this.gridColumn5.FieldName = "TOTALLENGTH"; this.gridColumn5.Name = "gridColumn5"; this.gridColumn5.Visible = true; this.gridColumn5.VisibleIndex = 4; // // layoutControlGroup1 // this.layoutControlGroup1.CustomizationFormText = "layoutControlGroup1"; this.layoutControlGroup1.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True; this.layoutControlGroup1.GroupBordersVisible = false; this.layoutControlGroup1.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { this.layoutControlItem1, this.emptySpaceItem1, this.layoutControlItem2, this.layoutControlItem3 }); this.layoutControlGroup1.Location = new System.Drawing.Point(0, 0); this.layoutControlGroup1.Name = "layoutControlGroup1"; this.layoutControlGroup1.Size = new System.Drawing.Size(970, 509); this.layoutControlGroup1.Text = "layoutControlGroup1"; this.layoutControlGroup1.TextVisible = false; // // layoutControlItem1 // this.layoutControlItem1.Control = this.gridControl1; this.layoutControlItem1.CustomizationFormText = "layoutControlItem1"; this.layoutControlItem1.Location = new System.Drawing.Point(0, 0); this.layoutControlItem1.Name = "layoutControlItem1"; this.layoutControlItem1.Size = new System.Drawing.Size(950, 463); this.layoutControlItem1.Text = "layoutControlItem1"; this.layoutControlItem1.TextSize = new System.Drawing.Size(0, 0); this.layoutControlItem1.TextToControlDistance = 0; this.layoutControlItem1.TextVisible = false; // // emptySpaceItem1 // this.emptySpaceItem1.AllowHotTrack = false; this.emptySpaceItem1.CustomizationFormText = "emptySpaceItem1"; this.emptySpaceItem1.Location = new System.Drawing.Point(0, 463); this.emptySpaceItem1.Name = "emptySpaceItem1"; this.emptySpaceItem1.Size = new System.Drawing.Size(764, 26); this.emptySpaceItem1.Text = "emptySpaceItem1"; this.emptySpaceItem1.TextSize = new System.Drawing.Size(0, 0); // // layoutControlItem2 // this.layoutControlItem2.Control = this.simpleButton1; this.layoutControlItem2.CustomizationFormText = "layoutControlItem2"; this.layoutControlItem2.Location = new System.Drawing.Point(764, 463); this.layoutControlItem2.Name = "layoutControlItem2"; this.layoutControlItem2.Size = new System.Drawing.Size(93, 26); this.layoutControlItem2.Text = "layoutControlItem2"; this.layoutControlItem2.TextSize = new System.Drawing.Size(0, 0); this.layoutControlItem2.TextToControlDistance = 0; this.layoutControlItem2.TextVisible = false; // // layoutControlItem3 // this.layoutControlItem3.Control = this.simpleButton2; this.layoutControlItem3.CustomizationFormText = "layoutControlItem3"; this.layoutControlItem3.Location = new System.Drawing.Point(857, 463); this.layoutControlItem3.Name = "layoutControlItem3"; this.layoutControlItem3.Size = new System.Drawing.Size(93, 26); this.layoutControlItem3.Text = "layoutControlItem3"; this.layoutControlItem3.TextSize = new System.Drawing.Size(0, 0); this.layoutControlItem3.TextToControlDistance = 0; this.layoutControlItem3.TextVisible = false; // // FrmStatsByRoadOutput2D // this.ClientSize = new System.Drawing.Size(970, 509); this.Controls.Add(this.layoutControl1); this.Name = "FrmStatsByRoadOutput2D"; this.ShowIcon = false; this.Load += new System.EventHandler(this.FrmStatsByRoadOutput2D_Load); ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).EndInit(); this.layoutControl1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.gridControl1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.gridView1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).EndInit(); this.ResumeLayout(false); }
private void InitializeComponent() { this.layoutControl1 = new DevExpress.XtraLayout.LayoutControl(); this.btn_close = new DevExpress.XtraEditors.SimpleButton(); this.btn_Loc = new DevExpress.XtraEditors.SimpleButton(); this.te_sheetName = new DevExpress.XtraEditors.TextEdit(); this.cb_sheetList = new DevExpress.XtraEditors.ComboBoxEdit(); this.layoutControlGroup1 = new DevExpress.XtraLayout.LayoutControlGroup(); this.layoutControlGroup2 = new DevExpress.XtraLayout.LayoutControlGroup(); this.layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem(); this.layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem(); this.layoutControlItem3 = new DevExpress.XtraLayout.LayoutControlItem(); this.layoutControlItem4 = new DevExpress.XtraLayout.LayoutControlItem(); ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).BeginInit(); this.layoutControl1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.te_sheetName.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.cb_sheetList.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).BeginInit(); this.SuspendLayout(); // // layoutControl1 // this.layoutControl1.Controls.Add(this.btn_close); this.layoutControl1.Controls.Add(this.btn_Loc); this.layoutControl1.Controls.Add(this.te_sheetName); this.layoutControl1.Controls.Add(this.cb_sheetList); this.layoutControl1.Dock = System.Windows.Forms.DockStyle.Fill; this.layoutControl1.Location = new System.Drawing.Point(0, 0); this.layoutControl1.Name = "layoutControl1"; this.layoutControl1.Root = this.layoutControlGroup1; this.layoutControl1.Size = new System.Drawing.Size(284, 88); this.layoutControl1.TabIndex = 0; this.layoutControl1.Text = "layoutControl1"; // // btn_close // this.btn_close.Location = new System.Drawing.Point(144, 57); this.btn_close.Name = "btn_close"; this.btn_close.Size = new System.Drawing.Size(135, 22); this.btn_close.StyleController = this.layoutControl1; this.btn_close.TabIndex = 7; this.btn_close.Text = "关闭"; this.btn_close.Click += new System.EventHandler(this.btn_close_Click); // // btn_Loc // this.btn_Loc.Location = new System.Drawing.Point(5, 57); this.btn_Loc.Name = "btn_Loc"; this.btn_Loc.Size = new System.Drawing.Size(135, 22); this.btn_Loc.StyleController = this.layoutControl1; this.btn_Loc.TabIndex = 6; this.btn_Loc.Text = "定位"; this.btn_Loc.Click += new System.EventHandler(this.btn_Loc_Click); // // te_sheetName // this.te_sheetName.Location = new System.Drawing.Point(68, 31); this.te_sheetName.Name = "te_sheetName"; this.te_sheetName.Size = new System.Drawing.Size(211, 22); this.te_sheetName.StyleController = this.layoutControl1; this.te_sheetName.TabIndex = 5; // // cb_sheetList // this.cb_sheetList.Location = new System.Drawing.Point(68, 5); this.cb_sheetList.Name = "cb_sheetList"; this.cb_sheetList.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo) }); this.cb_sheetList.Size = new System.Drawing.Size(211, 22); this.cb_sheetList.StyleController = this.layoutControl1; this.cb_sheetList.TabIndex = 4; this.cb_sheetList.SelectedIndexChanged += new System.EventHandler(this.cb_sheetList_SelectedIndexChanged); // // layoutControlGroup1 // this.layoutControlGroup1.CustomizationFormText = "layoutControlGroup1"; this.layoutControlGroup1.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True; this.layoutControlGroup1.GroupBordersVisible = false; this.layoutControlGroup1.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { this.layoutControlGroup2 }); this.layoutControlGroup1.Location = new System.Drawing.Point(0, 0); this.layoutControlGroup1.Name = "layoutControlGroup1"; this.layoutControlGroup1.Padding = new DevExpress.XtraLayout.Utils.Padding(0, 0, 0, 0); this.layoutControlGroup1.Size = new System.Drawing.Size(284, 88); this.layoutControlGroup1.Text = "layoutControlGroup1"; this.layoutControlGroup1.TextVisible = false; // // layoutControlGroup2 // this.layoutControlGroup2.CustomizationFormText = "layoutControlGroup2"; this.layoutControlGroup2.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { this.layoutControlItem1, this.layoutControlItem2, this.layoutControlItem3, this.layoutControlItem4 }); this.layoutControlGroup2.Location = new System.Drawing.Point(0, 0); this.layoutControlGroup2.Name = "layoutControlGroup2"; this.layoutControlGroup2.Padding = new DevExpress.XtraLayout.Utils.Padding(0, 0, 0, 0); this.layoutControlGroup2.Size = new System.Drawing.Size(284, 88); this.layoutControlGroup2.Text = "layoutControlGroup2"; this.layoutControlGroup2.TextVisible = false; // // layoutControlItem1 // this.layoutControlItem1.Control = this.cb_sheetList; this.layoutControlItem1.CustomizationFormText = "图幅列表:"; this.layoutControlItem1.Location = new System.Drawing.Point(0, 0); this.layoutControlItem1.MaxSize = new System.Drawing.Size(278, 26); this.layoutControlItem1.MinSize = new System.Drawing.Size(278, 26); this.layoutControlItem1.Name = "layoutControlItem1"; this.layoutControlItem1.Size = new System.Drawing.Size(278, 26); this.layoutControlItem1.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom; this.layoutControlItem1.Text = "图幅列表:"; this.layoutControlItem1.TextSize = new System.Drawing.Size(60, 14); // // layoutControlItem2 // this.layoutControlItem2.Control = this.te_sheetName; this.layoutControlItem2.CustomizationFormText = "图幅名称:"; this.layoutControlItem2.Location = new System.Drawing.Point(0, 26); this.layoutControlItem2.MaxSize = new System.Drawing.Size(278, 26); this.layoutControlItem2.MinSize = new System.Drawing.Size(278, 26); this.layoutControlItem2.Name = "layoutControlItem2"; this.layoutControlItem2.Size = new System.Drawing.Size(278, 26); this.layoutControlItem2.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom; this.layoutControlItem2.Text = "图幅名称:"; this.layoutControlItem2.TextSize = new System.Drawing.Size(60, 14); // // layoutControlItem3 // this.layoutControlItem3.Control = this.btn_Loc; this.layoutControlItem3.CustomizationFormText = "layoutControlItem3"; this.layoutControlItem3.Location = new System.Drawing.Point(0, 52); this.layoutControlItem3.Name = "layoutControlItem3"; this.layoutControlItem3.Size = new System.Drawing.Size(139, 30); this.layoutControlItem3.Text = "layoutControlItem3"; this.layoutControlItem3.TextSize = new System.Drawing.Size(0, 0); this.layoutControlItem3.TextToControlDistance = 0; this.layoutControlItem3.TextVisible = false; // // layoutControlItem4 // this.layoutControlItem4.Control = this.btn_close; this.layoutControlItem4.CustomizationFormText = "layoutControlItem4"; this.layoutControlItem4.Location = new System.Drawing.Point(139, 52); this.layoutControlItem4.Name = "layoutControlItem4"; this.layoutControlItem4.Size = new System.Drawing.Size(139, 30); this.layoutControlItem4.Text = "layoutControlItem4"; this.layoutControlItem4.TextSize = new System.Drawing.Size(0, 0); this.layoutControlItem4.TextToControlDistance = 0; this.layoutControlItem4.TextVisible = false; // // FrmSheetLoc // this.ClientSize = new System.Drawing.Size(284, 88); this.Controls.Add(this.layoutControl1); this.Name = "FrmSheetLoc"; this.ShowIcon = false; this.Text = "图幅定位"; this.TopMost = true; this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.FrmSheetLoc_FormClosed); this.Load += new System.EventHandler(this.FrmSheetLoc_Load); ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).EndInit(); this.layoutControl1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.te_sheetName.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.cb_sheetList.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).EndInit(); this.ResumeLayout(false); }
private void updateEnableButtonAndResetValueOfControl(ref SimpleButton _btnControl) { switch (_btnControl.Name) { case "btnAdd": { m_BookTitlesMulitSelect.ClearSelection(); // m_IsAdd = true; // btnAdd.Visible = false; btnCancel.Visible = true; // btnSave.Enabled = true; btnUpdate.Enabled = false; btnDelete.Enabled = false; //grdListBookTitles.Enabled = false; // txtBookTitlesId.Text = "DS0000**"; txtBookTitlesName.Text = null; lkBookGenreName.EditValue = null; chkCmbAuthorName.SetEditValue(null); // grdvListBookTitles.OptionsSelection.EnableAppearanceFocusedRow = false; grdvListBookTitles.Columns["CheckMarkSelection"].OptionsColumn.AllowEdit = false; // txtBookTitlesName.Properties.ReadOnly = false; lkBookGenreName.Properties.ReadOnly = false; chkCmbAuthorName.Properties.ReadOnly = false; // break; } case "btnCancel": { m_IsAdd = false; // btnAdd.Visible = true; btnCancel.Visible = false; btnCancelOfUpdate.Visible = false; btnUpdate.Visible = true; // btnUpdate.Enabled = true; btnDelete.Enabled = true; btnAdd.Enabled = true; btnSave.Enabled = false; // txtBookTitlesName.Properties.ReadOnly = true; lkBookGenreName.Properties.ReadOnly = true; chkCmbAuthorName.Properties.ReadOnly = true; // grdvListBookTitles.OptionsSelection.EnableAppearanceFocusedRow = true; grdvListBookTitles.Columns["CheckMarkSelection"].OptionsColumn.AllowEdit = true; // dxErrorProvider.ClearErrors(); // m_BookTitlesData = m_BookTitlesExecute.getBookTitlesDataFromDatabase(); grdListBookTitles.DataSource = m_BookTitlesData; grdvListBookTitles.FocusedRowHandle = -1; grdvListBookTitles.FocusedRowHandle = 0; break; } case "btnCacelOfUpdate": { // btnAdd.Visible = true; btnCancel.Visible = false; btnCancelOfUpdate.Visible = false; btnUpdate.Visible = true; // btnUpdate.Enabled = true; btnDelete.Enabled = true; btnAdd.Enabled = true; btnSave.Enabled = false; // txtBookTitlesName.Properties.ReadOnly = true; lkBookGenreName.Properties.ReadOnly = true; chkCmbAuthorName.Properties.ReadOnly = true; // grdvListBookTitles.OptionsSelection.EnableAppearanceFocusedRow = true; grdvListBookTitles.Columns["CheckMarkSelection"].OptionsColumn.AllowEdit = true; // dxErrorProvider.ClearErrors(); // m_BookTitlesData = m_BookTitlesExecute.getBookTitlesDataFromDatabase(); grdListBookTitles.DataSource = m_BookTitlesData; grdvListBookTitles.FocusedRowHandle = -1; grdvListBookTitles.FocusedRowHandle = 0; break; } case "btnDelete": { txtBookTitlesName.Properties.ReadOnly = true; lkBookGenreName.Properties.ReadOnly = true; chkCmbAuthorName.Properties.ReadOnly = true; // m_BookTitlesData = m_BookTitlesExecute.getBookTitlesDataFromDatabase(); grdListBookTitles.DataSource = m_BookTitlesData; grdvListBookTitles.FocusedRowHandle = -1; grdvListBookTitles.FocusedRowHandle = 0; m_BookTitlesMulitSelect.ClearSelection(); break; } case "btnUpdate": { m_IsAdd = false; // m_BookTitlesMulitSelect.ClearSelection(); // btnUpdate.Visible = false; btnCancelOfUpdate.Visible = true; // txtBookTitlesName.Properties.ReadOnly = false; lkBookGenreName.Properties.ReadOnly = false; chkCmbAuthorName.Properties.ReadOnly = false; // grdvListBookTitles.OptionsSelection.EnableAppearanceFocusedRow = true; grdvListBookTitles.Columns["CheckMarkSelection"].OptionsColumn.AllowEdit = true; // btnDelete.Enabled = false; btnAdd.Enabled = false; btnSave.Enabled = true; break; } case "btnSave": { m_IsAdd = false; // btnAdd.Enabled = true; btnDelete.Enabled = true; btnUpdate.Enabled = true; btnSave.Enabled = false; // btnUpdate.Visible = true; btnAdd.Visible = true; btnCancel.Visible = false; btnCancelOfUpdate.Visible = false; // txtBookTitlesName.Properties.ReadOnly = true; lkBookGenreName.Properties.ReadOnly = true; chkCmbAuthorName.Properties.ReadOnly = true; // m_BookTitlesData = m_BookTitlesExecute.getBookTitlesDataFromDatabase(); grdListBookTitles.DataSource = m_BookTitlesData; grdvListBookTitles.FocusedRowHandle = grdvListBookTitles.DataRowCount - 1; // grdvListBookTitles.OptionsSelection.EnableAppearanceFocusedRow = true; grdvListBookTitles.Columns["CheckMarkSelection"].OptionsColumn.AllowEdit = true; // dxErrorProvider.ClearErrors(); // break; } } }
private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Login)); this.pictureEdit2 = new DevExpress.XtraEditors.PictureEdit(); this.pictureEdit1 = new DevExpress.XtraEditors.PictureEdit(); this.checkRemenber = new DevExpress.XtraEditors.CheckEdit(); this.comboBoxEdit1 = new DevExpress.XtraEditors.ComboBoxEdit(); this.selectUser = new DevExpress.XtraEditors.ComboBoxEdit(); this.btnReg = new DevExpress.XtraEditors.SimpleButton(); this.textPwd = new DevExpress.XtraEditors.TextEdit(); this.pictureEdit3 = new DevExpress.XtraEditors.PictureEdit(); this.pictureEdit4 = new DevExpress.XtraEditors.PictureEdit(); this.imageCollection1 = new DevExpress.Utils.ImageCollection(this.components); this.pictureEdit5 = new DevExpress.XtraEditors.PictureEdit(); this.panelControl1 = new DevExpress.XtraEditors.PanelControl(); this.linkLabel1 = new System.Windows.Forms.LinkLabel(); ((System.ComponentModel.ISupportInitialize)(this.pictureEdit2.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.pictureEdit1.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.checkRemenber.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.comboBoxEdit1.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.selectUser.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.textPwd.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.pictureEdit3.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.pictureEdit4.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.imageCollection1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.pictureEdit5.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.panelControl1)).BeginInit(); this.panelControl1.SuspendLayout(); this.SuspendLayout(); // // pictureEdit2 // this.pictureEdit2.Enabled = false; this.pictureEdit2.Location = new System.Drawing.Point(149, 219); this.pictureEdit2.Name = "pictureEdit2"; this.pictureEdit2.Properties.Appearance.BackColor = System.Drawing.Color.Transparent; this.pictureEdit2.Properties.Appearance.Options.UseBackColor = true; this.pictureEdit2.Properties.SizeMode = DevExpress.XtraEditors.Controls.PictureSizeMode.Stretch; this.pictureEdit2.Size = new System.Drawing.Size(42, 25); this.pictureEdit2.TabIndex = 10; // // pictureEdit1 // this.pictureEdit1.Enabled = false; this.pictureEdit1.Location = new System.Drawing.Point(149, 171); this.pictureEdit1.Name = "pictureEdit1"; this.pictureEdit1.Properties.Appearance.BackColor = System.Drawing.Color.Transparent; this.pictureEdit1.Properties.Appearance.Options.UseBackColor = true; this.pictureEdit1.Properties.SizeMode = DevExpress.XtraEditors.Controls.PictureSizeMode.Stretch; this.pictureEdit1.Size = new System.Drawing.Size(42, 26); this.pictureEdit1.TabIndex = 9; // // checkRemenber // this.checkRemenber.EditValue = true; this.checkRemenber.Location = new System.Drawing.Point(147, 263); this.checkRemenber.Name = "checkRemenber"; this.checkRemenber.Properties.Caption = "记住密码?"; this.checkRemenber.Size = new System.Drawing.Size(87, 19); this.checkRemenber.TabIndex = 6; // // comboBoxEdit1 // this.comboBoxEdit1.Location = new System.Drawing.Point(207, 177); 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.Size = new System.Drawing.Size(133, 20); this.comboBoxEdit1.TabIndex = 8; this.comboBoxEdit1.SelectedValueChanged += new System.EventHandler(this.comboBoxEdit1_SelectedValueChanged); // // selectUser // this.selectUser.EditValue = "教师"; this.selectUser.Location = new System.Drawing.Point(361, 177); this.selectUser.Name = "selectUser"; this.selectUser.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo) }); this.selectUser.Properties.Items.AddRange(new object[] { "管理员", "教师" }); this.selectUser.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.DisableTextEditor; this.selectUser.Size = new System.Drawing.Size(64, 20); this.selectUser.TabIndex = 7; // // btnReg // this.btnReg.Appearance.BackColor = System.Drawing.Color.White; this.btnReg.Appearance.ForeColor = System.Drawing.Color.White; this.btnReg.Appearance.Options.UseBackColor = true; this.btnReg.Appearance.Options.UseForeColor = true; this.btnReg.Location = new System.Drawing.Point(337, 258); this.btnReg.Name = "btnReg"; this.btnReg.Size = new System.Drawing.Size(88, 27); this.btnReg.TabIndex = 5; this.btnReg.Click += new System.EventHandler(this.btnReg_Click); // // textPwd // this.textPwd.Location = new System.Drawing.Point(207, 224); this.textPwd.Name = "textPwd"; this.textPwd.Properties.UseSystemPasswordChar = true; this.textPwd.Size = new System.Drawing.Size(133, 20); this.textPwd.TabIndex = 1; // // pictureEdit3 // this.pictureEdit3.Location = new System.Drawing.Point(491, 4); this.pictureEdit3.Name = "pictureEdit3"; this.pictureEdit3.Properties.Appearance.BackColor = System.Drawing.Color.Transparent; this.pictureEdit3.Properties.Appearance.Options.UseBackColor = true; this.pictureEdit3.Properties.SizeMode = DevExpress.XtraEditors.Controls.PictureSizeMode.Stretch; this.pictureEdit3.Size = new System.Drawing.Size(46, 33); this.pictureEdit3.TabIndex = 1; this.pictureEdit3.Click += new System.EventHandler(this.pictureEdit3_Click); this.pictureEdit3.MouseEnter += new System.EventHandler(this.pictureEdit3_MouseEnter); this.pictureEdit3.MouseLeave += new System.EventHandler(this.pictureEdit3_MouseLeave); // // pictureEdit4 // this.pictureEdit4.Location = new System.Drawing.Point(541, 4); this.pictureEdit4.Name = "pictureEdit4"; this.pictureEdit4.Properties.Appearance.BackColor = System.Drawing.Color.Transparent; this.pictureEdit4.Properties.Appearance.Options.UseBackColor = true; this.pictureEdit4.Properties.SizeMode = DevExpress.XtraEditors.Controls.PictureSizeMode.Stretch; this.pictureEdit4.Size = new System.Drawing.Size(46, 33); this.pictureEdit4.TabIndex = 2; this.pictureEdit4.Click += new System.EventHandler(this.pictureEdit4_Click); this.pictureEdit4.MouseEnter += new System.EventHandler(this.pictureEdit4_MouseEnter); this.pictureEdit4.MouseLeave += new System.EventHandler(this.pictureEdit4_MouseLeave); // // imageCollection1 // this.imageCollection1.ImageStream = ((DevExpress.Utils.ImageCollectionStreamer)(resources.GetObject("imageCollection1.ImageStream"))); // // pictureEdit5 // this.pictureEdit5.Location = new System.Drawing.Point(149, 312); this.pictureEdit5.Name = "pictureEdit5"; this.pictureEdit5.Size = new System.Drawing.Size(276, 38); this.pictureEdit5.TabIndex = 11; this.pictureEdit5.Click += new System.EventHandler(this.pictureEdit5_Click); // // panelControl1 // this.panelControl1.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.Style3D; this.panelControl1.Controls.Add(this.linkLabel1); this.panelControl1.Controls.Add(this.pictureEdit1); this.panelControl1.Controls.Add(this.pictureEdit4); this.panelControl1.Controls.Add(this.pictureEdit5); this.panelControl1.Controls.Add(this.pictureEdit3); this.panelControl1.Controls.Add(this.btnReg); this.panelControl1.Controls.Add(this.pictureEdit2); this.panelControl1.Controls.Add(this.textPwd); this.panelControl1.Controls.Add(this.selectUser); this.panelControl1.Controls.Add(this.comboBoxEdit1); this.panelControl1.Controls.Add(this.checkRemenber); this.panelControl1.Dock = System.Windows.Forms.DockStyle.Fill; this.panelControl1.Location = new System.Drawing.Point(0, 0); this.panelControl1.Name = "panelControl1"; this.panelControl1.Size = new System.Drawing.Size(590, 431); this.panelControl1.TabIndex = 12; // // linkLabel1 // this.linkLabel1.AutoSize = true; this.linkLabel1.BackColor = System.Drawing.Color.Transparent; this.linkLabel1.Location = new System.Drawing.Point(361, 229); this.linkLabel1.Name = "linkLabel1"; this.linkLabel1.Size = new System.Drawing.Size(55, 14); this.linkLabel1.TabIndex = 12; this.linkLabel1.TabStop = true; this.linkLabel1.Text = "修改密码"; this.linkLabel1.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel1_LinkClicked); // // Login // this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(590, 431); this.Controls.Add(this.panelControl1); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; this.MaximizeBox = false; this.MinimizeBox = false; this.Name = "Login"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "Login"; this.Load += new System.EventHandler(this.Login_Load); ((System.ComponentModel.ISupportInitialize)(this.pictureEdit2.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.pictureEdit1.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.checkRemenber.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.comboBoxEdit1.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.selectUser.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.textPwd.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.pictureEdit3.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.pictureEdit4.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.imageCollection1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.pictureEdit5.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.panelControl1)).EndInit(); this.panelControl1.ResumeLayout(false); this.panelControl1.PerformLayout(); this.ResumeLayout(false); }
private void HesapKapat_Load(object sender, EventArgs e) { lblCari.Text = anaForm.GetCariAdi(); blueParams.fatEvrakSeri = "P"; dtAdisyon.Columns.Add("TARIH"); dtAdisyon.Columns.Add("STOK_ISIM"); dtAdisyon.Columns.Add("MIKTAR"); dtAdisyon.Columns.Add("BIRIM_FIYAT"); dtAdisyon.Columns.Add("TUTAR"); dtAdisyon.Columns.Add("GENEL_TOPLAM"); dtAdisyon.Columns.Add("MASA_TANIMI"); ISKONTO.Setup(); ISKONTO.DecimalCount = 2; grdAdisyon.SQLText = "SELECT STOK.STOK_KODU, STOK_ADI, SATIS_FIYAT, HAR.MIKTAR - ISNULL(ODENEN_MIKTAR, 0) AS MIKTAR, (SATIS_FIYAT * (HAR.MIKTAR - ISNULL(ODENEN_MIKTAR, 0))) AS TUTAR " + "FROM [TBLBLUEADISYON] ADISYON, TBLBLUEADISYONHAR HAR, TBLSTOK STOK " + "WHERE /*WS*/ADISYON.REC_ID = " + adisyonRecID + " " + "AND ADISYON.REC_ID = HAR.ADISYON_RECID " + "AND HAR.STOK_KODU = STOK.STOK_KODU " + "AND HAR.MIKTAR - ISNULL(ODENEN_MIKTAR, 0) <> 0/*WE*/"; grdAdisyon.Open(); ArsSQLQry qryKasa = new ArsSQLQry(); qryKasa.SQLText = "SELECT KASA_KODU, KASA_ADI FROM [TBLKASA]"; qryKasa.Open(); if (qryKasa.Found()) { for (int i = 0; i < qryKasa.DataCount(); i++) { SimpleButton btnKasa = new SimpleButton(); btnKasa.Text = qryKasa.GetString("KASA_ADI"); btnKasa.Tag = "ks_" + qryKasa.GetString("KASA_KODU"); pnlOdemeYeri.Controls.Add(btnKasa); btnKasa.Size = new Size(pnlOdemeYeri.Size.Width - 25, 75); btnKasa.Location = new Point(3, i * 78); btnKasa.Click += OdemeClick; qryKasa.Next(); } } ArsSQLQry qryBanka = new ArsSQLQry(); qryBanka.SQLText = "SELECT HESAP_KODU, HESAP_ADI FROM [TBLBANKA]"; qryBanka.Open(); if (qryBanka.Found()) { for (int i = 0; i < qryBanka.DataCount(); i++) { SimpleButton btnBanka = new SimpleButton(); btnBanka.Text = qryBanka.GetString("HESAP_ADI"); btnBanka.Tag = "bn_" + qryBanka.GetString("HESAP_KODU"); pnlOdemeYeri.Controls.Add(btnBanka); btnBanka.Size = new Size(pnlOdemeYeri.Size.Width - 25, 75); btnBanka.Location = new Point(3, (qryKasa.DataCount() + i) * 78); btnBanka.Click += OdemeClick; qryBanka.Next(); } } }
/// <summary> /// Инициализирует карточку по заданным данным. /// </summary> /// <param name="ClassBase">Скрипт карточки.</param> public MarketingFilesCard(ScriptClassBase ClassBase) : base(ClassBase) { try { /* Назначение прав */ NeedAssign = CardScript.CardControl.ActivateFlags.HasFlag(ActivateFlags.New) || CardScript.CardControl.ActivateFlags.HasFlag(ActivateFlags.NewFromTemplate); NeedSynchronize = false; Boolean Open = true; if (!NeedAssign) { if (CardScript.CardControl.ModeId == RefMarketingFilesCard.Modes.OpenFiles || CardScript.CardControl.ModeId.IsEmpty()) { if (MyHelper.OpenFolder(FolderPath).HasValue) { Open = false; CardScript.CardFrame.Close(); } } else if (CardScript.CardControl.ModeId == RefMarketingFilesCard.Modes.OpenCardAndFiles) { MyHelper.OpenFolder(FolderPath); } } if (Open) { /* Получение рабочих объектов */ _Control_Categories = ICardControl.FindPropertyItem <CollectionControlView>(RefMarketingFilesCard.Categories.Alias); _Button_Upload = ICardControl.FindPropertyItem <SimpleButton>(RefMarketingFilesCard.Buttons.Upload); _Edit_Files = ICardControl.FindPropertyItem <TextEdit>(RefMarketingFilesCard.MainInfo.Files); ArchiveTempPath = CardScript.Session.GetArchiveTempPath(); if (ICardControl.ContainsControl(RefMarketingFilesCard.EquipmentSorts.Alias)) { Control_EquipmentSorts = ICardControl.FindPropertyItem <CollectionControlView>(RefMarketingFilesCard.EquipmentSorts.Alias); } if (ICardControl.ContainsControl(RefMarketingFilesCard.EquipmentTypes.Alias)) { Control_EquipmentTypes = ICardControl.FindPropertyItem <CollectionControlView>(RefMarketingFilesCard.EquipmentTypes.Alias); } if (ICardControl.ContainsControl(RefMarketingFilesCard.Manufacturers.Alias)) { Control_Manufacturers = ICardControl.FindPropertyItem <CollectionControlView>(RefMarketingFilesCard.Manufacturers.Alias); } if (!Control_EquipmentSorts.IsNull() && !Control_EquipmentTypes.IsNull()) { Selector_EquipmentTypes = new SelectHelper(Context, SelectionType.BaseUniversalItem, Control_EquipmentTypes.TypeIds[0].NodeId, false, new List <String>() { Dynamic.CardBaseUniversalItem.EquipmentDirectory.ID + "\t" + Dynamic.CardBaseUniversalItem.EquipmentDirectory.Sort }, new List <String>() { Control_EquipmentSorts.SelectedItems.Select(item => item.ObjectId.ToUpper()).Aggregate("\t") }, false); } /* Привязка методов */ if (!IsReadOnly) { CardScript.CardControl.CardClosed -= CardControl_CardClosed; CardScript.CardControl.CardClosed += CardControl_CardClosed; CardScript.CardControl.Saved -= CardControl_Saved; CardScript.CardControl.Saved += CardControl_Saved; CardScript.CardControl.Saving -= CardControl_Saving; CardScript.CardControl.Saving += CardControl_Saving; _Button_Upload.Click -= Button_Upload_Click; _Button_Upload.Click += Button_Upload_Click; _Edit_Files.DoubleClick -= Edit_Files_DoubleClick; _Edit_Files.DoubleClick += Edit_Files_DoubleClick; if (!Control_EquipmentSorts.IsNull() && !Control_EquipmentTypes.IsNull()) { Control_EquipmentSorts.ValueChanged -= Control_EquipmentSorts_ValueChanged; Control_EquipmentSorts.ValueChanged += Control_EquipmentSorts_ValueChanged; Control_EquipmentTypes.CustomChoosingValue -= Control_EquipmentTypes_CustomChoosingValue; Control_EquipmentTypes.CustomChoosingValue += Control_EquipmentTypes_CustomChoosingValue; Control_EquipmentTypes.CustomizeTypeSearchQuery -= Control_EquipmentTypes_CustomizeTypeSearchQuery; Control_EquipmentTypes.CustomizeTypeSearchQuery += Control_EquipmentTypes_CustomizeTypeSearchQuery; } } Customize(); RefreshChanges(); } } catch (Exception Ex) { CallError(Ex); } }
private void InitUI() { if (!GlobalObject.UserRoles.Any(p => p.RoleName == "admin")) { for (int i = 0; i < this.panelSave.Controls.Count; i++) { SimpleButton sb = this.panelSave.Controls[i] as SimpleButton; string name = this.panelSave.Controls[i].Name; if (sb != null) { continue; } this.panelSave.Controls.Remove(this.panelSave.Controls[i]); i--; } //lblAccount Label lblAccount = new Label(); lblAccount.AutoSize = true; lblAccount.Location = new System.Drawing.Point(12, 28); lblAccount.Text = "Account:"; lblAccount.Name = "lblAccount"; this.panelSave.Controls.Add(lblAccount); //teAccount TextEdit teAddAccount = new TextEdit(); teAddAccount.Location = new System.Drawing.Point(lblAccount.Location.X + lblAccount.Size.Width + 5, 25); teAddAccount.Size = new System.Drawing.Size(100, 20); teAddAccount.Name = "teAddAccount"; teAddAccount.Text = GlobalObject.User.Account; teAddAccount.ReadOnly = true; this.panelSave.Controls.Add(teAddAccount); Label lblOldPassword = new Label(); lblOldPassword.Location = new System.Drawing.Point(teAddAccount.Location.X + teAddAccount.Size.Width + 5, 28); lblOldPassword.AutoSize = true; lblOldPassword.Text = "Old Password:"******"OldPassword"; this.panelSave.Controls.Add(lblOldPassword); //teOldPassword TextEdit teAddOldPassword = new TextEdit(); teAddOldPassword.Location = new System.Drawing.Point(lblOldPassword.Location.X + lblOldPassword.Size.Width + 5, 25); teAddOldPassword.Name = "teAddOldPassword"; teAddOldPassword.Properties.PasswordChar = '*'; teAddOldPassword.Size = new System.Drawing.Size(100, 20); this.panelSave.Controls.Add(teAddOldPassword); //lblNewPassword Label lblNewPassword = new Label(); lblNewPassword.AutoSize = true; lblNewPassword.Location = new System.Drawing.Point(teAddOldPassword.Location.X + teAddOldPassword.Size.Width + 5, 28); lblNewPassword.Text = "New Password:"******"lblNewPassword"; this.panelSave.Controls.Add(lblNewPassword); //teNewPassword TextEdit teAddNewPassword = new TextEdit(); teAddNewPassword.Location = new System.Drawing.Point(lblNewPassword.Location.X + lblNewPassword.Size.Width + 5, 25); teAddNewPassword.Name = "teAddNewPassword"; teAddNewPassword.Properties.PasswordChar = '*'; teAddNewPassword.Size = new System.Drawing.Size(100, 20); this.panelSave.Controls.Add(teAddNewPassword); //lblConfirmPassword Label lblConfirmPassword = new Label(); lblConfirmPassword.AutoSize = true; lblConfirmPassword.Location = new System.Drawing.Point(teAddNewPassword.Location.X + teAddNewPassword.Size.Width + 5, 28); lblConfirmPassword.Text = "Confirm Password:"******"lblConfirmPassword"; this.panelSave.Controls.Add(lblConfirmPassword); //teConfirmPassword TextEdit teAddConfirmPassword = new TextEdit(); teAddConfirmPassword.Location = new System.Drawing.Point(lblConfirmPassword.Location.X + lblConfirmPassword.Size.Width + 5, 25); teAddConfirmPassword.Name = "teAddConfirmPassword"; teAddConfirmPassword.Properties.PasswordChar = '*'; teAddConfirmPassword.Size = new System.Drawing.Size(100, 20); this.panelSave.Controls.Add(teAddConfirmPassword); this.panelQuery.Visible = false; this.gcUser.Visible = false; } }
private void btn_Click(object sender, EventArgs e) { SimpleButton btn = sender as SimpleButton; DataRow dr = gridVMain.GetFocusedDataRow(); switch (btn.Name) { case "btnExcel": this.Cursor = Cursors.WaitCursor; StaticFunctions.GridViewExportToExcel(gridVMain, "系统用户信息", null); this.Cursor = Cursors.Arrow; break; case "btnAdd": gridVMain.ClearColumnsFilter(); gridVMain.ClearSorting(); SetWMode("ADD"); break; case "btnEdit": if (dr == null) { return; } SetWMode("EDIT"); break; case "btnCancel": if (dr == null) { return; } blInitBound = true; frmDataTable.RejectChanges(); //引发gridView1_FocusedRowChanged frmDataTable.AcceptChanges(); blInitBound = false; SetWMode("VIEW"); gridVMain_FocusedRowChanged(gridVMain, new DevExpress.XtraGrid.Views.Base.FocusedRowChangedEventArgs(-1, gridVMain.FocusedRowHandle)); break; case "btnSave": if (dr == null) { return; } DoSave(); break; case "btnSetPsw": if (dr == null) { return; } if (MessageBox.Show("是否确认重置当前用户密码为 1?", "确认", MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button2) != DialogResult.Yes) { return; } string[] strKey = "strEditSql,Key_Id,EUser_Id,EDept_Id,Fy_Id,flag".Split(",".ToCharArray()); DataTable dtAdd = this.DataRequest_By_DataTable(strSpName, strKey, new string[] { "PassWord='******'", dr[strKeyFiled].ToString(), CApplication.App.CurrentSession.UserId.ToString(), CApplication.App.CurrentSession.DeptId.ToString(), CApplication.App.CurrentSession.FyId.ToString(), "3" }); if (dtAdd == null) { return; } MessageBox.Show("操作完成."); break; case "btnRole": if (dr == null) { return; } frmBseUserRoleEdit frm = new frmBseUserRoleEdit(); frm.UserId = dr["User_Id"].ToString(); frm.UserInfo = "姓名:" + dr["Name"].ToString() + " 卡号:" + dr["CardNub"].ToString() + " 编号:" + dr["Number"].ToString(); frm.ShowDialog(); break; case "btnCopy": if (dr == null) { return; } if (txtSrcNumber.Text.Trim() == string.Empty) { MessageBox.Show("请输入来源员工工号."); return; } List <string> lisSpParmValue = new List <string>(); string[] strKeyCopy = "Number,Key_Id,EUser_Id,EDept_Id,Fy_Id,flag".Split(",".ToCharArray()); lisSpParmValue.AddRange(new string[] { txtSrcNumber.Text.Trim(), dr[strKeyFiled].ToString(), CApplication.App.CurrentSession.UserId.ToString(), CApplication.App.CurrentSession.DeptId.ToString(), CApplication.App.CurrentSession.FyId.ToString(), "21" }); DataTable dtCopy = this.DataRequest_By_DataTable(strSpName, strKeyCopy, lisSpParmValue.ToArray()); if (dtCopy == null) { return; } MessageBox.Show("操作完成."); break; case "btnRight": if (dr == null) { return; } frmBseUserRight frm2 = new frmBseUserRight(); frm2.UserId = dr["User_Id"].ToString(); frm2.UserName = dr["Number"].ToString() + "—" + dr["Name"].ToString(); frm2.ShowDialog(); break; default: break; } }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmGenericSearch)); this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel(); this.txtKeyboardInput = new DevExpress.XtraEditors.TextEdit(); this.btnClear = new DevExpress.XtraEditors.SimpleButton(); this.btnSearch = new DevExpress.XtraEditors.SimpleButton(); this.lblHeading = new System.Windows.Forms.Label(); this.tableLayoutPanel3 = new System.Windows.Forms.TableLayoutPanel(); this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel(); this.btnPgDown = new LSRetailPosis.POSProcesses.WinControls.SimpleButtonEx(); this.btnCancel = new LSRetailPosis.POSProcesses.WinControls.SimpleButtonEx(); this.btnPgUp = new LSRetailPosis.POSProcesses.WinControls.SimpleButtonEx(); this.btnSelect = new LSRetailPosis.POSProcesses.WinControls.SimpleButtonEx(); this.btnDown = new LSRetailPosis.POSProcesses.WinControls.SimpleButtonEx(); this.btnUp = new LSRetailPosis.POSProcesses.WinControls.SimpleButtonEx(); this.grItems = new DevExpress.XtraGrid.GridControl(); this.grdView = new DevExpress.XtraGrid.Views.Grid.GridView(); this.gridView1 = new DevExpress.XtraGrid.Views.Grid.GridView(); this.basePanel = new DevExpress.XtraEditors.PanelControl(); ((System.ComponentModel.ISupportInitialize)(this.styleController)).BeginInit(); this.tableLayoutPanel1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.txtKeyboardInput.Properties)).BeginInit(); this.tableLayoutPanel3.SuspendLayout(); this.tableLayoutPanel2.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.grItems)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.grdView)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.gridView1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.basePanel)).BeginInit(); this.basePanel.SuspendLayout(); this.SuspendLayout(); // // tableLayoutPanel1 // this.tableLayoutPanel1.AutoSize = true; this.tableLayoutPanel1.ColumnCount = 3; this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); this.tableLayoutPanel1.Controls.Add(this.txtKeyboardInput, 0, 0); this.tableLayoutPanel1.Controls.Add(this.btnClear, 2, 0); this.tableLayoutPanel1.Controls.Add(this.btnSearch, 1, 0); this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill; this.tableLayoutPanel1.Location = new System.Drawing.Point(26, 135); this.tableLayoutPanel1.Margin = new System.Windows.Forms.Padding(0); this.tableLayoutPanel1.Name = "tableLayoutPanel1"; this.tableLayoutPanel1.RowCount = 1; this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle()); this.tableLayoutPanel1.Size = new System.Drawing.Size(778, 38); this.tableLayoutPanel1.TabIndex = 9; // // txtKeyboardInput // this.txtKeyboardInput.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right))); this.txtKeyboardInput.Location = new System.Drawing.Point(3, 3); this.txtKeyboardInput.Name = "txtKeyboardInput"; this.txtKeyboardInput.Properties.Appearance.BackColor = System.Drawing.Color.White; this.txtKeyboardInput.Properties.Appearance.Font = new System.Drawing.Font("Segoe UI", 14F); this.txtKeyboardInput.Properties.Appearance.ForeColor = System.Drawing.Color.Black; this.txtKeyboardInput.Properties.Appearance.Options.UseBackColor = true; this.txtKeyboardInput.Properties.Appearance.Options.UseFont = true; this.txtKeyboardInput.Properties.Appearance.Options.UseForeColor = true; this.txtKeyboardInput.Properties.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.Simple; this.txtKeyboardInput.Size = new System.Drawing.Size(646, 32); this.txtKeyboardInput.TabIndex = 1; this.txtKeyboardInput.TextChanged += new System.EventHandler(this.txtKeyboardInput_TextChanged); this.txtKeyboardInput.KeyDown += new System.Windows.Forms.KeyEventHandler(this.GenericSearch_KeyDown); // // btnClear // this.btnClear.Image = global::Microsoft.Dynamics.Retail.Pos.Dialog.Properties.Resources.remove; this.btnClear.ImageLocation = DevExpress.XtraEditors.ImageLocation.MiddleCenter; this.btnClear.Location = new System.Drawing.Point(718, 3); this.btnClear.Name = "btnClear"; this.btnClear.Size = new System.Drawing.Size(57, 32); this.btnClear.TabIndex = 3; this.btnClear.Text = "Clear"; this.btnClear.Click += new System.EventHandler(this.btnClear_Click); // // btnSearch // this.btnSearch.Image = global::Microsoft.Dynamics.Retail.Pos.Dialog.Properties.Resources.search; this.btnSearch.ImageLocation = DevExpress.XtraEditors.ImageLocation.MiddleCenter; this.btnSearch.Location = new System.Drawing.Point(655, 3); this.btnSearch.Name = "btnSearch"; this.btnSearch.Size = new System.Drawing.Size(57, 32); this.btnSearch.TabIndex = 2; this.btnSearch.Text = "Search"; this.btnSearch.Click += new System.EventHandler(this.btnSearch_Click); // // lblHeading // this.lblHeading.Anchor = System.Windows.Forms.AnchorStyles.None; this.lblHeading.AutoSize = true; this.lblHeading.Font = new System.Drawing.Font("Segoe UI Light", 36F); this.lblHeading.Location = new System.Drawing.Point(253, 40); this.lblHeading.Margin = new System.Windows.Forms.Padding(0); this.lblHeading.Name = "lblHeading"; this.lblHeading.Padding = new System.Windows.Forms.Padding(0, 0, 0, 30); this.lblHeading.Size = new System.Drawing.Size(324, 95); this.lblHeading.TabIndex = 41; this.lblHeading.Text = "Generic search"; this.lblHeading.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // // tableLayoutPanel3 // this.tableLayoutPanel3.ColumnCount = 1; this.tableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); this.tableLayoutPanel3.Controls.Add(this.tableLayoutPanel2, 0, 3); this.tableLayoutPanel3.Controls.Add(this.tableLayoutPanel1, 0, 1); this.tableLayoutPanel3.Controls.Add(this.lblHeading, 0, 0); this.tableLayoutPanel3.Controls.Add(this.grItems, 0, 2); this.tableLayoutPanel3.Dock = System.Windows.Forms.DockStyle.Fill; this.tableLayoutPanel3.Location = new System.Drawing.Point(2, 2); this.tableLayoutPanel3.Margin = new System.Windows.Forms.Padding(0); this.tableLayoutPanel3.Name = "tableLayoutPanel3"; this.tableLayoutPanel3.Padding = new System.Windows.Forms.Padding(26, 40, 26, 11); this.tableLayoutPanel3.RowCount = 4; this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle()); this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle()); this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle()); this.tableLayoutPanel3.Size = new System.Drawing.Size(830, 611); this.tableLayoutPanel3.TabIndex = 13; // // tableLayoutPanel2 // this.tableLayoutPanel2.ColumnCount = 8; this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); this.tableLayoutPanel2.Controls.Add(this.btnPgDown, 7, 0); this.tableLayoutPanel2.Controls.Add(this.btnCancel, 4, 0); this.tableLayoutPanel2.Controls.Add(this.btnPgUp, 0, 0); this.tableLayoutPanel2.Controls.Add(this.btnSelect, 3, 0); this.tableLayoutPanel2.Controls.Add(this.btnDown, 6, 0); this.tableLayoutPanel2.Controls.Add(this.btnUp, 1, 0); this.tableLayoutPanel2.Dock = System.Windows.Forms.DockStyle.Fill; this.tableLayoutPanel2.Location = new System.Drawing.Point(26, 535); this.tableLayoutPanel2.Margin = new System.Windows.Forms.Padding(0, 11, 0, 0); this.tableLayoutPanel2.Name = "tableLayoutPanel2"; this.tableLayoutPanel2.RowCount = 1; this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); this.tableLayoutPanel2.Size = new System.Drawing.Size(778, 65); this.tableLayoutPanel2.TabIndex = 10; // // btnPgDown // this.btnPgDown.Anchor = System.Windows.Forms.AnchorStyles.Left; this.btnPgDown.Appearance.Font = new System.Drawing.Font("Wingdings", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(2))); this.btnPgDown.Appearance.Options.UseFont = true; this.btnPgDown.Image = global::Microsoft.Dynamics.Retail.Pos.Dialog.Properties.Resources.bottom; this.btnPgDown.ImageLocation = DevExpress.XtraEditors.ImageLocation.MiddleCenter; this.btnPgDown.Location = new System.Drawing.Point(717, 4); this.btnPgDown.Margin = new System.Windows.Forms.Padding(4); this.btnPgDown.Name = "btnPgDown"; this.btnPgDown.Size = new System.Drawing.Size(57, 57); this.btnPgDown.TabIndex = 15; this.btnPgDown.Text = "Ê"; this.btnPgDown.Click += new System.EventHandler(this.btnDown_Click); // // btnCancel // this.btnCancel.Anchor = System.Windows.Forms.AnchorStyles.None; this.btnCancel.Appearance.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.btnCancel.Appearance.Options.UseFont = true; this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.btnCancel.ImageLocation = DevExpress.XtraEditors.ImageLocation.MiddleCenter; this.btnCancel.Location = new System.Drawing.Point(393, 4); this.btnCancel.Margin = new System.Windows.Forms.Padding(4); this.btnCancel.Name = "btnCancel"; this.btnCancel.Size = new System.Drawing.Size(127, 57); this.btnCancel.TabIndex = 14; this.btnCancel.Text = "Cancel"; // // btnPgUp // this.btnPgUp.Anchor = System.Windows.Forms.AnchorStyles.Right; this.btnPgUp.Appearance.Font = new System.Drawing.Font("Wingdings", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(2))); this.btnPgUp.Appearance.Options.UseFont = true; this.btnPgUp.Image = global::Microsoft.Dynamics.Retail.Pos.Dialog.Properties.Resources.top; this.btnPgUp.ImageLocation = DevExpress.XtraEditors.ImageLocation.MiddleCenter; this.btnPgUp.Location = new System.Drawing.Point(4, 4); this.btnPgUp.Margin = new System.Windows.Forms.Padding(4); this.btnPgUp.Name = "btnPgUp"; this.btnPgUp.Size = new System.Drawing.Size(57, 57); this.btnPgUp.TabIndex = 10; this.btnPgUp.Tag = "BtnNormal"; this.btnPgUp.Text = "Ç"; this.btnPgUp.Click += new System.EventHandler(this.btnUp_Click); // // btnSelect // this.btnSelect.Anchor = System.Windows.Forms.AnchorStyles.None; this.btnSelect.Appearance.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.btnSelect.Appearance.Options.UseFont = true; this.btnSelect.ImageLocation = DevExpress.XtraEditors.ImageLocation.MiddleCenter; this.btnSelect.Location = new System.Drawing.Point(258, 4); this.btnSelect.Margin = new System.Windows.Forms.Padding(4); this.btnSelect.Name = "btnSelect"; this.btnSelect.Size = new System.Drawing.Size(127, 57); this.btnSelect.TabIndex = 13; this.btnSelect.Tag = ""; this.btnSelect.Text = "Select"; this.btnSelect.Click += new System.EventHandler(this.btnSelect_Click); // // btnDown // this.btnDown.Anchor = System.Windows.Forms.AnchorStyles.Right; this.btnDown.Appearance.Font = new System.Drawing.Font("Wingdings", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(2))); this.btnDown.Appearance.Options.UseFont = true; this.btnDown.Image = global::Microsoft.Dynamics.Retail.Pos.Dialog.Properties.Resources.down; this.btnDown.ImageLocation = DevExpress.XtraEditors.ImageLocation.MiddleCenter; this.btnDown.Location = new System.Drawing.Point(652, 4); this.btnDown.Margin = new System.Windows.Forms.Padding(4); this.btnDown.Name = "btnDown"; this.btnDown.Size = new System.Drawing.Size(57, 57); this.btnDown.TabIndex = 14; this.btnDown.Text = "ò"; this.btnDown.Click += new System.EventHandler(this.btnDown_Click_1); // // btnUp // this.btnUp.Anchor = System.Windows.Forms.AnchorStyles.Left; this.btnUp.Appearance.Font = new System.Drawing.Font("Wingdings", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(2))); this.btnUp.Appearance.Options.UseFont = true; this.btnUp.Image = global::Microsoft.Dynamics.Retail.Pos.Dialog.Properties.Resources.up; this.btnUp.ImageLocation = DevExpress.XtraEditors.ImageLocation.MiddleCenter; this.btnUp.Location = new System.Drawing.Point(69, 4); this.btnUp.Margin = new System.Windows.Forms.Padding(4); this.btnUp.Name = "btnUp"; this.btnUp.Size = new System.Drawing.Size(57, 57); this.btnUp.TabIndex = 11; this.btnUp.Text = "ñ"; this.btnUp.Click += new System.EventHandler(this.btnUp_Click_1); // // grItems // this.grItems.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; this.grItems.Dock = System.Windows.Forms.DockStyle.Fill; this.grItems.EmbeddedNavigator.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.grItems.Location = new System.Drawing.Point(30, 177); this.grItems.MainView = this.grdView; this.grItems.Margin = new System.Windows.Forms.Padding(4); this.grItems.Name = "grItems"; this.grItems.Size = new System.Drawing.Size(770, 343); this.grItems.TabIndex = 11; this.grItems.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { this.grdView, this.gridView1 }); this.grItems.DoubleClick += new System.EventHandler(this.gridView1_DoubleClick); // // grdView // this.grdView.Appearance.FooterPanel.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.grdView.Appearance.FooterPanel.Options.UseFont = true; this.grdView.Appearance.FooterPanel.Options.UseTextOptions = true; this.grdView.Appearance.FooterPanel.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; this.grdView.Appearance.HeaderPanel.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Bold); this.grdView.Appearance.HeaderPanel.Options.UseFont = true; this.grdView.Appearance.Row.Font = new System.Drawing.Font("Segoe UI", 10F); this.grdView.Appearance.Row.Options.UseFont = true; this.grdView.ColumnPanelRowHeight = 40; this.grdView.FocusRectStyle = DevExpress.XtraGrid.Views.Grid.DrawFocusRectStyle.None; this.grdView.FooterPanelHeight = 40; this.grdView.GridControl = this.grItems; this.grdView.HorzScrollVisibility = DevExpress.XtraGrid.Views.Base.ScrollVisibility.Never; this.grdView.Name = "grdView"; this.grdView.OptionsBehavior.Editable = false; this.grdView.OptionsCustomization.AllowColumnMoving = false; this.grdView.OptionsCustomization.AllowColumnResizing = false; this.grdView.OptionsCustomization.AllowFilter = false; this.grdView.OptionsCustomization.AllowGroup = false; this.grdView.OptionsCustomization.AllowQuickHideColumns = false; this.grdView.OptionsCustomization.AllowSort = false; this.grdView.OptionsMenu.EnableColumnMenu = false; this.grdView.OptionsMenu.EnableFooterMenu = false; this.grdView.OptionsMenu.EnableGroupPanelMenu = false; this.grdView.OptionsSelection.EnableAppearanceFocusedCell = false; this.grdView.OptionsSelection.EnableAppearanceHideSelection = false; this.grdView.OptionsView.ShowGroupPanel = false; this.grdView.OptionsView.ShowIndicator = false; this.grdView.RowHeight = 40; this.grdView.ScrollStyle = DevExpress.XtraGrid.Views.Grid.ScrollStyleFlags.None; this.grdView.VertScrollVisibility = DevExpress.XtraGrid.Views.Base.ScrollVisibility.Never; // // gridView1 // this.gridView1.Appearance.FooterPanel.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Bold); this.gridView1.Appearance.FooterPanel.Options.UseFont = true; this.gridView1.Appearance.HeaderPanel.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.gridView1.Appearance.HeaderPanel.Options.UseFont = true; this.gridView1.Appearance.Row.Font = new System.Drawing.Font("Segoe UI", 10F); this.gridView1.Appearance.Row.Options.UseFont = true; this.gridView1.GridControl = this.grItems; this.gridView1.Name = "gridView1"; // // basePanel // this.basePanel.Controls.Add(this.tableLayoutPanel3); this.basePanel.Dock = System.Windows.Forms.DockStyle.Fill; this.basePanel.Location = new System.Drawing.Point(0, 0); this.basePanel.Name = "basePanel"; this.basePanel.Size = new System.Drawing.Size(834, 615); this.basePanel.TabIndex = 8; // // frmGenericSearch // this.CancelButton = this.btnCancel; this.ClientSize = new System.Drawing.Size(834, 615); this.Controls.Add(this.basePanel); this.LookAndFeel.SkinName = "Money Twins"; this.Name = "frmGenericSearch"; this.Controls.SetChildIndex(this.basePanel, 0); ((System.ComponentModel.ISupportInitialize)(this.styleController)).EndInit(); this.tableLayoutPanel1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.txtKeyboardInput.Properties)).EndInit(); this.tableLayoutPanel3.ResumeLayout(false); this.tableLayoutPanel3.PerformLayout(); this.tableLayoutPanel2.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.grItems)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.grdView)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.gridView1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.basePanel)).EndInit(); this.basePanel.ResumeLayout(false); this.ResumeLayout(false); }
//Saves the choosen color and send OK status to the main form private void SetSelectedColor(SimpleButton button) { selectedColor = button.Appearance.BackColor; this.DialogResult = DialogResult.OK; this.Close(); }
private void InitializeComponent() { ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(FrmImport)); tbDirectory = new TextEdit(); lbDirectory = new LabelControl(); btOpenDir = new SimpleButton(); label3 = new LabelControl(); cbAccessTemplate = new ComboBoxEdit(); lbComment = new LabelControl(); lbSex = new LabelControl(); cbSEX = new ComboBoxEdit(); groupBox1 = new GroupBox(); tbComment = new MemoEdit(); pbImage = new PictureBox(); lbAdditional = new LabelControl(); btStart = new SimpleButton(); btPause = new SimpleButton(); btStop = new SimpleButton(); lbState = new LabelControl(); lbCount = new LabelControl(); progressBarControl1 = new ProgressBarControl(); tbDirectory.Properties.BeginInit(); cbAccessTemplate.Properties.BeginInit(); cbSEX.Properties.BeginInit(); groupBox1.SuspendLayout(); tbComment.Properties.BeginInit(); ((ISupportInitialize)pbImage).BeginInit(); progressBarControl1.Properties.BeginInit(); SuspendLayout(); componentResourceManager.ApplyResources(tbDirectory, "tbDirectory"); tbDirectory.Name = "tbDirectory"; tbDirectory.Properties.AccessibleDescription = componentResourceManager.GetString("tbDirectory.Properties.AccessibleDescription"); tbDirectory.Properties.AccessibleName = componentResourceManager.GetString("tbDirectory.Properties.AccessibleName"); tbDirectory.Properties.Appearance.Font = (Font)componentResourceManager.GetObject("tbDirectory.Properties.Appearance.Font"); tbDirectory.Properties.Appearance.FontSizeDelta = (int)componentResourceManager.GetObject("tbDirectory.Properties.Appearance.FontSizeDelta"); tbDirectory.Properties.Appearance.FontStyleDelta = (FontStyle)componentResourceManager.GetObject("tbDirectory.Properties.Appearance.FontStyleDelta"); tbDirectory.Properties.Appearance.GradientMode = (LinearGradientMode)componentResourceManager.GetObject("tbDirectory.Properties.Appearance.GradientMode"); tbDirectory.Properties.Appearance.Image = (Image)componentResourceManager.GetObject("tbDirectory.Properties.Appearance.Image"); tbDirectory.Properties.Appearance.Options.UseFont = true; tbDirectory.Properties.AutoHeight = (bool)componentResourceManager.GetObject("tbDirectory.Properties.AutoHeight"); tbDirectory.Properties.Mask.AutoComplete = (AutoCompleteType)componentResourceManager.GetObject("tbDirectory.Properties.Mask.AutoComplete"); tbDirectory.Properties.Mask.BeepOnError = (bool)componentResourceManager.GetObject("tbDirectory.Properties.Mask.BeepOnError"); tbDirectory.Properties.Mask.EditMask = componentResourceManager.GetString("tbDirectory.Properties.Mask.EditMask"); tbDirectory.Properties.Mask.IgnoreMaskBlank = (bool)componentResourceManager.GetObject("tbDirectory.Properties.Mask.IgnoreMaskBlank"); tbDirectory.Properties.Mask.MaskType = (MaskType)componentResourceManager.GetObject("tbDirectory.Properties.Mask.MaskType"); tbDirectory.Properties.Mask.PlaceHolder = (char)componentResourceManager.GetObject("tbDirectory.Properties.Mask.PlaceHolder"); tbDirectory.Properties.Mask.SaveLiteral = (bool)componentResourceManager.GetObject("tbDirectory.Properties.Mask.SaveLiteral"); tbDirectory.Properties.Mask.ShowPlaceHolders = (bool)componentResourceManager.GetObject("tbDirectory.Properties.Mask.ShowPlaceHolders"); tbDirectory.Properties.Mask.UseMaskAsDisplayFormat = (bool)componentResourceManager.GetObject("tbDirectory.Properties.Mask.UseMaskAsDisplayFormat"); tbDirectory.Properties.NullValuePrompt = componentResourceManager.GetString("tbDirectory.Properties.NullValuePrompt"); tbDirectory.Properties.NullValuePromptShowForEmptyValue = (bool)componentResourceManager.GetObject("tbDirectory.Properties.NullValuePromptShowForEmptyValue"); componentResourceManager.ApplyResources(lbDirectory, "lbDirectory"); lbDirectory.Appearance.DisabledImage = (Image)componentResourceManager.GetObject("lbDirectory.Appearance.DisabledImage"); lbDirectory.Appearance.Font = (Font)componentResourceManager.GetObject("lbDirectory.Appearance.Font"); lbDirectory.Appearance.FontSizeDelta = (int)componentResourceManager.GetObject("lbDirectory.Appearance.FontSizeDelta"); lbDirectory.Appearance.FontStyleDelta = (FontStyle)componentResourceManager.GetObject("lbDirectory.Appearance.FontStyleDelta"); lbDirectory.Appearance.GradientMode = (LinearGradientMode)componentResourceManager.GetObject("lbDirectory.Appearance.GradientMode"); lbDirectory.Appearance.HoverImage = (Image)componentResourceManager.GetObject("lbDirectory.Appearance.HoverImage"); lbDirectory.Appearance.Image = (Image)componentResourceManager.GetObject("lbDirectory.Appearance.Image"); lbDirectory.Appearance.PressedImage = (Image)componentResourceManager.GetObject("lbDirectory.Appearance.PressedImage"); lbDirectory.Name = "lbDirectory"; componentResourceManager.ApplyResources(btOpenDir, "btOpenDir"); btOpenDir.Appearance.Font = (Font)componentResourceManager.GetObject("btOpenDir.Appearance.Font"); btOpenDir.Appearance.FontSizeDelta = (int)componentResourceManager.GetObject("btOpenDir.Appearance.FontSizeDelta"); btOpenDir.Appearance.FontStyleDelta = (FontStyle)componentResourceManager.GetObject("btOpenDir.Appearance.FontStyleDelta"); btOpenDir.Appearance.GradientMode = (LinearGradientMode)componentResourceManager.GetObject("btOpenDir.Appearance.GradientMode"); btOpenDir.Appearance.Image = (Image)componentResourceManager.GetObject("btOpenDir.Appearance.Image"); btOpenDir.Appearance.Options.UseFont = true; btOpenDir.Name = "btOpenDir"; btOpenDir.Click += btOpenDir_Click; componentResourceManager.ApplyResources(label3, "label3"); label3.Appearance.DisabledImage = (Image)componentResourceManager.GetObject("label3.Appearance.DisabledImage"); label3.Appearance.Font = (Font)componentResourceManager.GetObject("label3.Appearance.Font"); label3.Appearance.FontSizeDelta = (int)componentResourceManager.GetObject("label3.Appearance.FontSizeDelta"); label3.Appearance.FontStyleDelta = (FontStyle)componentResourceManager.GetObject("label3.Appearance.FontStyleDelta"); label3.Appearance.ForeColor = (Color)componentResourceManager.GetObject("label3.Appearance.ForeColor"); label3.Appearance.GradientMode = (LinearGradientMode)componentResourceManager.GetObject("label3.Appearance.GradientMode"); label3.Appearance.HoverImage = (Image)componentResourceManager.GetObject("label3.Appearance.HoverImage"); label3.Appearance.Image = (Image)componentResourceManager.GetObject("label3.Appearance.Image"); label3.Appearance.PressedImage = (Image)componentResourceManager.GetObject("label3.Appearance.PressedImage"); label3.Name = "label3"; componentResourceManager.ApplyResources(cbAccessTemplate, "cbAccessTemplate"); cbAccessTemplate.Name = "cbAccessTemplate"; cbAccessTemplate.Properties.AccessibleDescription = componentResourceManager.GetString("cbAccessTemplate.Properties.AccessibleDescription"); cbAccessTemplate.Properties.AccessibleName = componentResourceManager.GetString("cbAccessTemplate.Properties.AccessibleName"); cbAccessTemplate.Properties.Appearance.Font = (Font)componentResourceManager.GetObject("cbAccessTemplate.Properties.Appearance.Font"); cbAccessTemplate.Properties.Appearance.FontSizeDelta = (int)componentResourceManager.GetObject("cbAccessTemplate.Properties.Appearance.FontSizeDelta"); cbAccessTemplate.Properties.Appearance.FontStyleDelta = (FontStyle)componentResourceManager.GetObject("cbAccessTemplate.Properties.Appearance.FontStyleDelta"); cbAccessTemplate.Properties.Appearance.GradientMode = (LinearGradientMode)componentResourceManager.GetObject("cbAccessTemplate.Properties.Appearance.GradientMode"); cbAccessTemplate.Properties.Appearance.Image = (Image)componentResourceManager.GetObject("cbAccessTemplate.Properties.Appearance.Image"); cbAccessTemplate.Properties.Appearance.Options.UseFont = true; cbAccessTemplate.Properties.AutoHeight = (bool)componentResourceManager.GetObject("cbAccessTemplate.Properties.AutoHeight"); cbAccessTemplate.Properties.Buttons.AddRange(new EditorButton[1] { new EditorButton((ButtonPredefines)componentResourceManager.GetObject("cbAccessTemplate.Properties.Buttons")) }); cbAccessTemplate.Properties.NullValuePrompt = componentResourceManager.GetString("cbAccessTemplate.Properties.NullValuePrompt"); cbAccessTemplate.Properties.NullValuePromptShowForEmptyValue = (bool)componentResourceManager.GetObject("cbAccessTemplate.Properties.NullValuePromptShowForEmptyValue"); componentResourceManager.ApplyResources(lbComment, "lbComment"); lbComment.Appearance.DisabledImage = (Image)componentResourceManager.GetObject("lbComment.Appearance.DisabledImage"); lbComment.Appearance.Font = (Font)componentResourceManager.GetObject("lbComment.Appearance.Font"); lbComment.Appearance.FontSizeDelta = (int)componentResourceManager.GetObject("lbComment.Appearance.FontSizeDelta"); lbComment.Appearance.FontStyleDelta = (FontStyle)componentResourceManager.GetObject("lbComment.Appearance.FontStyleDelta"); lbComment.Appearance.ForeColor = (Color)componentResourceManager.GetObject("lbComment.Appearance.ForeColor"); lbComment.Appearance.GradientMode = (LinearGradientMode)componentResourceManager.GetObject("lbComment.Appearance.GradientMode"); lbComment.Appearance.HoverImage = (Image)componentResourceManager.GetObject("lbComment.Appearance.HoverImage"); lbComment.Appearance.Image = (Image)componentResourceManager.GetObject("lbComment.Appearance.Image"); lbComment.Appearance.PressedImage = (Image)componentResourceManager.GetObject("lbComment.Appearance.PressedImage"); lbComment.Name = "lbComment"; componentResourceManager.ApplyResources(lbSex, "lbSex"); lbSex.Appearance.DisabledImage = (Image)componentResourceManager.GetObject("lbSex.Appearance.DisabledImage"); lbSex.Appearance.Font = (Font)componentResourceManager.GetObject("lbSex.Appearance.Font"); lbSex.Appearance.FontSizeDelta = (int)componentResourceManager.GetObject("lbSex.Appearance.FontSizeDelta"); lbSex.Appearance.FontStyleDelta = (FontStyle)componentResourceManager.GetObject("lbSex.Appearance.FontStyleDelta"); lbSex.Appearance.ForeColor = (Color)componentResourceManager.GetObject("lbSex.Appearance.ForeColor"); lbSex.Appearance.GradientMode = (LinearGradientMode)componentResourceManager.GetObject("lbSex.Appearance.GradientMode"); lbSex.Appearance.HoverImage = (Image)componentResourceManager.GetObject("lbSex.Appearance.HoverImage"); lbSex.Appearance.Image = (Image)componentResourceManager.GetObject("lbSex.Appearance.Image"); lbSex.Appearance.PressedImage = (Image)componentResourceManager.GetObject("lbSex.Appearance.PressedImage"); lbSex.Name = "lbSex"; componentResourceManager.ApplyResources(cbSEX, "cbSEX"); cbSEX.Name = "cbSEX"; cbSEX.Properties.AccessibleDescription = componentResourceManager.GetString("cbSEX.Properties.AccessibleDescription"); cbSEX.Properties.AccessibleName = componentResourceManager.GetString("cbSEX.Properties.AccessibleName"); cbSEX.Properties.Appearance.Font = (Font)componentResourceManager.GetObject("cbSEX.Properties.Appearance.Font"); cbSEX.Properties.Appearance.FontSizeDelta = (int)componentResourceManager.GetObject("cbSEX.Properties.Appearance.FontSizeDelta"); cbSEX.Properties.Appearance.FontStyleDelta = (FontStyle)componentResourceManager.GetObject("cbSEX.Properties.Appearance.FontStyleDelta"); cbSEX.Properties.Appearance.GradientMode = (LinearGradientMode)componentResourceManager.GetObject("cbSEX.Properties.Appearance.GradientMode"); cbSEX.Properties.Appearance.Image = (Image)componentResourceManager.GetObject("cbSEX.Properties.Appearance.Image"); cbSEX.Properties.Appearance.Options.UseFont = true; cbSEX.Properties.AutoHeight = (bool)componentResourceManager.GetObject("cbSEX.Properties.AutoHeight"); cbSEX.Properties.Buttons.AddRange(new EditorButton[1] { new EditorButton((ButtonPredefines)componentResourceManager.GetObject("cbSEX.Properties.Buttons")) }); cbSEX.Properties.Items.AddRange(new object[2] { componentResourceManager.GetString("cbSEX.Properties.Items"), componentResourceManager.GetString("cbSEX.Properties.Items1") }); cbSEX.Properties.NullValuePrompt = componentResourceManager.GetString("cbSEX.Properties.NullValuePrompt"); cbSEX.Properties.NullValuePromptShowForEmptyValue = (bool)componentResourceManager.GetObject("cbSEX.Properties.NullValuePromptShowForEmptyValue"); componentResourceManager.ApplyResources(groupBox1, "groupBox1"); groupBox1.Controls.Add(tbComment); groupBox1.Controls.Add(cbSEX); groupBox1.Controls.Add(label3); groupBox1.Controls.Add(lbSex); groupBox1.Controls.Add(cbAccessTemplate); groupBox1.Controls.Add(lbComment); groupBox1.Name = "groupBox1"; groupBox1.TabStop = false; componentResourceManager.ApplyResources(tbComment, "tbComment"); tbComment.Name = "tbComment"; tbComment.Properties.AccessibleDescription = componentResourceManager.GetString("tbComment.Properties.AccessibleDescription"); tbComment.Properties.AccessibleName = componentResourceManager.GetString("tbComment.Properties.AccessibleName"); tbComment.Properties.NullValuePrompt = componentResourceManager.GetString("tbComment.Properties.NullValuePrompt"); tbComment.Properties.NullValuePromptShowForEmptyValue = (bool)componentResourceManager.GetObject("tbComment.Properties.NullValuePromptShowForEmptyValue"); componentResourceManager.ApplyResources(pbImage, "pbImage"); pbImage.BorderStyle = BorderStyle.FixedSingle; pbImage.Name = "pbImage"; pbImage.TabStop = false; componentResourceManager.ApplyResources(lbAdditional, "lbAdditional"); lbAdditional.Appearance.DisabledImage = (Image)componentResourceManager.GetObject("lbAdditional.Appearance.DisabledImage"); lbAdditional.Appearance.Font = (Font)componentResourceManager.GetObject("lbAdditional.Appearance.Font"); lbAdditional.Appearance.FontSizeDelta = (int)componentResourceManager.GetObject("lbAdditional.Appearance.FontSizeDelta"); lbAdditional.Appearance.FontStyleDelta = (FontStyle)componentResourceManager.GetObject("lbAdditional.Appearance.FontStyleDelta"); lbAdditional.Appearance.GradientMode = (LinearGradientMode)componentResourceManager.GetObject("lbAdditional.Appearance.GradientMode"); lbAdditional.Appearance.HoverImage = (Image)componentResourceManager.GetObject("lbAdditional.Appearance.HoverImage"); lbAdditional.Appearance.Image = (Image)componentResourceManager.GetObject("lbAdditional.Appearance.Image"); lbAdditional.Appearance.PressedImage = (Image)componentResourceManager.GetObject("lbAdditional.Appearance.PressedImage"); lbAdditional.Name = "lbAdditional"; componentResourceManager.ApplyResources(btStart, "btStart"); btStart.Appearance.Font = (Font)componentResourceManager.GetObject("btStart.Appearance.Font"); btStart.Appearance.FontSizeDelta = (int)componentResourceManager.GetObject("btStart.Appearance.FontSizeDelta"); btStart.Appearance.FontStyleDelta = (FontStyle)componentResourceManager.GetObject("btStart.Appearance.FontStyleDelta"); btStart.Appearance.GradientMode = (LinearGradientMode)componentResourceManager.GetObject("btStart.Appearance.GradientMode"); btStart.Appearance.Image = (Image)componentResourceManager.GetObject("btStart.Appearance.Image"); btStart.Appearance.Options.UseFont = true; btStart.Name = "btStart"; btStart.Click += btStartFile_Click; componentResourceManager.ApplyResources(btPause, "btPause"); btPause.Appearance.Font = (Font)componentResourceManager.GetObject("btPause.Appearance.Font"); btPause.Appearance.FontSizeDelta = (int)componentResourceManager.GetObject("btPause.Appearance.FontSizeDelta"); btPause.Appearance.FontStyleDelta = (FontStyle)componentResourceManager.GetObject("btPause.Appearance.FontStyleDelta"); btPause.Appearance.GradientMode = (LinearGradientMode)componentResourceManager.GetObject("btPause.Appearance.GradientMode"); btPause.Appearance.Image = (Image)componentResourceManager.GetObject("btPause.Appearance.Image"); btPause.Appearance.Options.UseFont = true; btPause.Name = "btPause"; btPause.Click += btPauseFile_Click; componentResourceManager.ApplyResources(btStop, "btStop"); btStop.Appearance.Font = (Font)componentResourceManager.GetObject("btStop.Appearance.Font"); btStop.Appearance.FontSizeDelta = (int)componentResourceManager.GetObject("btStop.Appearance.FontSizeDelta"); btStop.Appearance.FontStyleDelta = (FontStyle)componentResourceManager.GetObject("btStop.Appearance.FontStyleDelta"); btStop.Appearance.GradientMode = (LinearGradientMode)componentResourceManager.GetObject("btStop.Appearance.GradientMode"); btStop.Appearance.Image = (Image)componentResourceManager.GetObject("btStop.Appearance.Image"); btStop.Appearance.Options.UseFont = true; btStop.Name = "btStop"; btStop.Click += btStopFile_Click; componentResourceManager.ApplyResources(lbState, "lbState"); lbState.Appearance.DisabledImage = (Image)componentResourceManager.GetObject("lbState.Appearance.DisabledImage"); lbState.Appearance.Font = (Font)componentResourceManager.GetObject("lbState.Appearance.Font"); lbState.Appearance.FontSizeDelta = (int)componentResourceManager.GetObject("lbState.Appearance.FontSizeDelta"); lbState.Appearance.FontStyleDelta = (FontStyle)componentResourceManager.GetObject("lbState.Appearance.FontStyleDelta"); lbState.Appearance.GradientMode = (LinearGradientMode)componentResourceManager.GetObject("lbState.Appearance.GradientMode"); lbState.Appearance.HoverImage = (Image)componentResourceManager.GetObject("lbState.Appearance.HoverImage"); lbState.Appearance.Image = (Image)componentResourceManager.GetObject("lbState.Appearance.Image"); lbState.Appearance.PressedImage = (Image)componentResourceManager.GetObject("lbState.Appearance.PressedImage"); lbState.Name = "lbState"; componentResourceManager.ApplyResources(lbCount, "lbCount"); lbCount.Appearance.DisabledImage = (Image)componentResourceManager.GetObject("lbCount.Appearance.DisabledImage"); lbCount.Appearance.Font = (Font)componentResourceManager.GetObject("lbCount.Appearance.Font"); lbCount.Appearance.FontSizeDelta = (int)componentResourceManager.GetObject("lbCount.Appearance.FontSizeDelta"); lbCount.Appearance.FontStyleDelta = (FontStyle)componentResourceManager.GetObject("lbCount.Appearance.FontStyleDelta"); lbCount.Appearance.GradientMode = (LinearGradientMode)componentResourceManager.GetObject("lbCount.Appearance.GradientMode"); lbCount.Appearance.HoverImage = (Image)componentResourceManager.GetObject("lbCount.Appearance.HoverImage"); lbCount.Appearance.Image = (Image)componentResourceManager.GetObject("lbCount.Appearance.Image"); lbCount.Appearance.PressedImage = (Image)componentResourceManager.GetObject("lbCount.Appearance.PressedImage"); lbCount.Name = "lbCount"; componentResourceManager.ApplyResources(progressBarControl1, "progressBarControl1"); progressBarControl1.Name = "progressBarControl1"; progressBarControl1.Properties.AccessibleDescription = componentResourceManager.GetString("progressBarControl1.Properties.AccessibleDescription"); progressBarControl1.Properties.AccessibleName = componentResourceManager.GetString("progressBarControl1.Properties.AccessibleName"); progressBarControl1.Properties.Appearance.FontSizeDelta = (int)componentResourceManager.GetObject("progressBarControl1.Properties.Appearance.FontSizeDelta"); progressBarControl1.Properties.Appearance.FontStyleDelta = (FontStyle)componentResourceManager.GetObject("progressBarControl1.Properties.Appearance.FontStyleDelta"); progressBarControl1.Properties.Appearance.GradientMode = (LinearGradientMode)componentResourceManager.GetObject("progressBarControl1.Properties.Appearance.GradientMode"); progressBarControl1.Properties.Appearance.Image = (Image)componentResourceManager.GetObject("progressBarControl1.Properties.Appearance.Image"); progressBarControl1.Properties.AppearanceDisabled.FontSizeDelta = (int)componentResourceManager.GetObject("progressBarControl1.Properties.AppearanceDisabled.FontSizeDelta"); progressBarControl1.Properties.AppearanceDisabled.FontStyleDelta = (FontStyle)componentResourceManager.GetObject("progressBarControl1.Properties.AppearanceDisabled.FontStyleDelta"); progressBarControl1.Properties.AppearanceDisabled.GradientMode = (LinearGradientMode)componentResourceManager.GetObject("progressBarControl1.Properties.AppearanceDisabled.GradientMode"); progressBarControl1.Properties.AppearanceDisabled.Image = (Image)componentResourceManager.GetObject("progressBarControl1.Properties.AppearanceDisabled.Image"); progressBarControl1.Properties.AppearanceFocused.FontSizeDelta = (int)componentResourceManager.GetObject("progressBarControl1.Properties.AppearanceFocused.FontSizeDelta"); progressBarControl1.Properties.AppearanceFocused.FontStyleDelta = (FontStyle)componentResourceManager.GetObject("progressBarControl1.Properties.AppearanceFocused.FontStyleDelta"); progressBarControl1.Properties.AppearanceFocused.GradientMode = (LinearGradientMode)componentResourceManager.GetObject("progressBarControl1.Properties.AppearanceFocused.GradientMode"); progressBarControl1.Properties.AppearanceFocused.Image = (Image)componentResourceManager.GetObject("progressBarControl1.Properties.AppearanceFocused.Image"); progressBarControl1.Properties.AppearanceReadOnly.FontSizeDelta = (int)componentResourceManager.GetObject("progressBarControl1.Properties.AppearanceReadOnly.FontSizeDelta"); progressBarControl1.Properties.AppearanceReadOnly.FontStyleDelta = (FontStyle)componentResourceManager.GetObject("progressBarControl1.Properties.AppearanceReadOnly.FontStyleDelta"); progressBarControl1.Properties.AppearanceReadOnly.GradientMode = (LinearGradientMode)componentResourceManager.GetObject("progressBarControl1.Properties.AppearanceReadOnly.GradientMode"); progressBarControl1.Properties.AppearanceReadOnly.Image = (Image)componentResourceManager.GetObject("progressBarControl1.Properties.AppearanceReadOnly.Image"); progressBarControl1.Properties.AutoHeight = (bool)componentResourceManager.GetObject("progressBarControl1.Properties.AutoHeight"); componentResourceManager.ApplyResources(this, "$this"); Appearance.FontSizeDelta = (int)componentResourceManager.GetObject("frmImport.Appearance.FontSizeDelta"); Appearance.FontStyleDelta = (FontStyle)componentResourceManager.GetObject("frmImport.Appearance.FontStyleDelta"); Appearance.GradientMode = (LinearGradientMode)componentResourceManager.GetObject("frmImport.Appearance.GradientMode"); Appearance.Image = (Image)componentResourceManager.GetObject("frmImport.Appearance.Image"); Appearance.Options.UseFont = true; AutoScaleMode = AutoScaleMode.Font; Controls.Add(progressBarControl1); Controls.Add(lbCount); Controls.Add(lbState); Controls.Add(btStop); Controls.Add(btPause); Controls.Add(btStart); Controls.Add(lbAdditional); Controls.Add(pbImage); Controls.Add(groupBox1); Controls.Add(btOpenDir); Controls.Add(lbDirectory); Controls.Add(tbDirectory); FormBorderStyle = FormBorderStyle.FixedToolWindow; MaximizeBox = false; MinimizeBox = false; Name = "FrmImport"; FormClosing += frmImport_FormClosing; tbDirectory.Properties.EndInit(); cbAccessTemplate.Properties.EndInit(); cbSEX.Properties.EndInit(); groupBox1.ResumeLayout(false); groupBox1.PerformLayout(); tbComment.Properties.EndInit(); ((ISupportInitialize)pbImage).EndInit(); progressBarControl1.Properties.EndInit(); ResumeLayout(false); PerformLayout(); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); DevExpress.XtraCharts.SimpleDiagram3D simpleDiagram3D1 = new DevExpress.XtraCharts.SimpleDiagram3D(); DevExpress.XtraCharts.Series series1 = new DevExpress.XtraCharts.Series(); DevExpress.XtraCharts.Pie3DSeriesLabel pie3DSeriesLabel1 = new DevExpress.XtraCharts.Pie3DSeriesLabel(); DevExpress.XtraCharts.PiePointOptions piePointOptions1 = new DevExpress.XtraCharts.PiePointOptions(); DevExpress.XtraCharts.Pie3DSeriesView pie3DSeriesView1 = new DevExpress.XtraCharts.Pie3DSeriesView(); DevExpress.XtraCharts.Pie3DSeriesLabel pie3DSeriesLabel2 = new DevExpress.XtraCharts.Pie3DSeriesLabel(); DevExpress.XtraCharts.Pie3DSeriesView pie3DSeriesView2 = new DevExpress.XtraCharts.Pie3DSeriesView(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(GeneralExpiryChart)); this.linkLabel1 = new System.Windows.Forms.LinkLabel(); this.linkLabel2 = new System.Windows.Forms.LinkLabel(); this.dtFrom = new CalendarLib.DateTimePickerEx(); this.dtTo = new CalendarLib.DateTimePickerEx(); this.linkLabel3 = new System.Windows.Forms.LinkLabel(); this.linkLabel4 = new System.Windows.Forms.LinkLabel(); this.linkLabel5 = new System.Windows.Forms.LinkLabel(); this.groupBox1 = new System.Windows.Forms.GroupBox(); this.listView1 = new System.Windows.Forms.ListView(); this.columnHeader5 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.columnHeader6 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.columnHeader7 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.columnHeader8 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.label6 = new System.Windows.Forms.Label(); this.label7 = new System.Windows.Forms.Label(); this.label8 = new System.Windows.Forms.Label(); this.label9 = new System.Windows.Forms.Label(); this.label10 = new System.Windows.Forms.Label(); this.label11 = new System.Windows.Forms.Label(); this.label12 = new System.Windows.Forms.Label(); this.label13 = new System.Windows.Forms.Label(); this.label14 = new System.Windows.Forms.Label(); this.label15 = new System.Windows.Forms.Label(); this.linkLabel11 = new System.Windows.Forms.LinkLabel(); this.linkLabel12 = new System.Windows.Forms.LinkLabel(); this.linkLabel13 = new System.Windows.Forms.LinkLabel(); this.linkLabel14 = new System.Windows.Forms.LinkLabel(); this.linkLabel15 = new System.Windows.Forms.LinkLabel(); this.groupBox2 = new System.Windows.Forms.GroupBox(); this.listView2 = new System.Windows.Forms.ListView(); this.columnHeader17 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.columnHeader18 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.columnHeader19 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.columnHeader20 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.label44 = new System.Windows.Forms.Label(); this.label45 = new System.Windows.Forms.Label(); this.label46 = new System.Windows.Forms.Label(); this.label47 = new System.Windows.Forms.Label(); this.label48 = new System.Windows.Forms.Label(); this.label49 = new System.Windows.Forms.Label(); this.label50 = new System.Windows.Forms.Label(); this.label51 = new System.Windows.Forms.Label(); this.chartPie = new DevExpress.XtraCharts.ChartControl(); this.cboStores = new DevExpress.XtraEditors.LookUpEdit(); this.layoutControl1 = new DevExpress.XtraLayout.LayoutControl(); this.lkCategory = new DevExpress.XtraEditors.LookUpEdit(); this.label1 = new System.Windows.Forms.Label(); this.btnPrint = new DevExpress.XtraEditors.SimpleButton(); this.dtDate = new CalendarLib.DateTimePickerEx(); this.layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem(); this.layoutControlGroup1 = new DevExpress.XtraLayout.LayoutControlGroup(); this.layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem(); this.layoutControlItem3 = new DevExpress.XtraLayout.LayoutControlItem(); this.layoutControlItem4 = new DevExpress.XtraLayout.LayoutControlItem(); this.emptySpaceItem1 = new DevExpress.XtraLayout.EmptySpaceItem(); this.layoutControlItem5 = new DevExpress.XtraLayout.LayoutControlItem(); this.layoutControlItem6 = new DevExpress.XtraLayout.LayoutControlItem(); this.printDoc = new System.Drawing.Printing.PrintDocument(); this.printDialog1 = new System.Windows.Forms.PrintDialog(); this.groupBox3 = new System.Windows.Forms.GroupBox(); this.lstExpStatus = new PrintableListView.PrintableListView(); this.StockCode = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.columnHeader3 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.columnHeader4 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.columnHeader1 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.printingSystem1 = new DevExpress.XtraPrinting.PrintingSystem(this.components); this.printableComponentLink1 = new DevExpress.XtraPrinting.PrintableComponentLink(this.components); this.layoutControlItem13 = new DevExpress.XtraLayout.LayoutControlItem(); this.layoutControlItem7 = new DevExpress.XtraLayout.LayoutControlItem(); this.cboYear = new DevExpress.XtraEditors.LookUpEdit(); this.layoutControlItem8 = new DevExpress.XtraLayout.LayoutControlItem(); this.groupBox1.SuspendLayout(); this.groupBox2.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.chartPie)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(simpleDiagram3D1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(series1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(pie3DSeriesLabel1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(pie3DSeriesView1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(pie3DSeriesLabel2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(pie3DSeriesView2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.cboStores.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).BeginInit(); this.layoutControl1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.lkCategory.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).BeginInit(); this.groupBox3.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.printingSystem1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.printableComponentLink1.ImageCollection)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem13)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.cboYear.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).BeginInit(); this.SuspendLayout(); // // linkLabel1 // this.linkLabel1.AutoSize = true; this.linkLabel1.Location = new System.Drawing.Point(305, 182); this.linkLabel1.Name = "linkLabel1"; this.linkLabel1.Size = new System.Drawing.Size(19, 13); this.linkLabel1.TabIndex = 2; this.linkLabel1.TabStop = true; this.linkLabel1.Text = "list"; // // linkLabel2 // this.linkLabel2.AutoSize = true; this.linkLabel2.Location = new System.Drawing.Point(305, 155); this.linkLabel2.Name = "linkLabel2"; this.linkLabel2.Size = new System.Drawing.Size(19, 13); this.linkLabel2.TabIndex = 2; this.linkLabel2.TabStop = true; this.linkLabel2.Text = "list"; // // dtFrom // this.dtFrom.CalendarFont = new System.Drawing.Font("Microsoft Sans Serif", 7F); this.dtFrom.DayOfWeekCharacters = 2; this.dtFrom.Location = new System.Drawing.Point(279, 14); this.dtFrom.Name = "dtFrom"; this.dtFrom.PopUpFontSize = 11F; this.dtFrom.Size = new System.Drawing.Size(98, 20); this.dtFrom.TabIndex = 28; this.dtFrom.Visible = false; // // dtTo // this.dtTo.CalendarFont = new System.Drawing.Font("Microsoft Sans Serif", 5F); this.dtTo.DayOfWeekCharacters = 2; this.dtTo.Location = new System.Drawing.Point(223, 49); this.dtTo.Name = "dtTo"; this.dtTo.PopUpFontSize = 11F; this.dtTo.Size = new System.Drawing.Size(80, 20); this.dtTo.TabIndex = 29; this.dtTo.Visible = false; // // linkLabel3 // this.linkLabel3.AutoSize = true; this.linkLabel3.Location = new System.Drawing.Point(305, 128); this.linkLabel3.Name = "linkLabel3"; this.linkLabel3.Size = new System.Drawing.Size(19, 13); this.linkLabel3.TabIndex = 2; this.linkLabel3.TabStop = true; this.linkLabel3.Text = "list"; // // linkLabel4 // this.linkLabel4.AutoSize = true; this.linkLabel4.Location = new System.Drawing.Point(305, 101); this.linkLabel4.Name = "linkLabel4"; this.linkLabel4.Size = new System.Drawing.Size(19, 13); this.linkLabel4.TabIndex = 2; this.linkLabel4.TabStop = true; this.linkLabel4.Text = "list"; // // linkLabel5 // this.linkLabel5.AutoSize = true; this.linkLabel5.Location = new System.Drawing.Point(305, 74); this.linkLabel5.Name = "linkLabel5"; this.linkLabel5.Size = new System.Drawing.Size(19, 13); this.linkLabel5.TabIndex = 2; this.linkLabel5.TabStop = true; this.linkLabel5.Text = "list"; // // groupBox1 // this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Right))); this.groupBox1.Controls.Add(this.listView1); this.groupBox1.Location = new System.Drawing.Point(457, 3); this.groupBox1.Name = "groupBox1"; this.groupBox1.Size = new System.Drawing.Size(682, 463); this.groupBox1.TabIndex = 1; this.groupBox1.TabStop = false; // // listView1 // this.listView1.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { this.columnHeader5, this.columnHeader6, this.columnHeader7, this.columnHeader8}); this.listView1.Dock = System.Windows.Forms.DockStyle.Fill; this.listView1.FullRowSelect = true; this.listView1.GridLines = true; this.listView1.Location = new System.Drawing.Point(3, 16); this.listView1.Name = "listView1"; this.listView1.ShowItemToolTips = true; this.listView1.Size = new System.Drawing.Size(676, 444); this.listView1.TabIndex = 0; this.listView1.UseCompatibleStateImageBehavior = false; this.listView1.View = System.Windows.Forms.View.Details; // // columnHeader5 // this.columnHeader5.Text = "No."; this.columnHeader5.Width = 34; // // columnHeader6 // this.columnHeader6.Text = "Stock Code"; this.columnHeader6.Width = 98; // // columnHeader7 // this.columnHeader7.Text = "Item Name"; this.columnHeader7.Width = 393; // // columnHeader8 // this.columnHeader8.Text = "Unit"; // // label6 // this.label6.AutoSize = true; this.label6.Location = new System.Drawing.Point(39, 182); this.label6.Name = "label6"; this.label6.Size = new System.Drawing.Size(85, 13); this.label6.TabIndex = 0; this.label6.Text = "Pediatric Items : "; // // label7 // this.label7.AutoSize = true; this.label7.Location = new System.Drawing.Point(39, 155); this.label7.Name = "label7"; this.label7.Size = new System.Drawing.Size(74, 13); this.label7.TabIndex = 0; this.label7.Text = "Refrigerated : "; // // label8 // this.label8.AutoSize = true; this.label8.Location = new System.Drawing.Point(39, 128); this.label8.Name = "label8"; this.label8.Size = new System.Drawing.Size(65, 13); this.label8.TabIndex = 0; this.label8.Text = "Free Items : "; // // label9 // this.label9.AutoSize = true; this.label9.Location = new System.Drawing.Point(39, 101); this.label9.Name = "label9"; this.label9.Size = new System.Drawing.Size(93, 13); this.label9.TabIndex = 0; this.label9.Text = "Items Not in EDL :"; // // label10 // this.label10.AutoSize = true; this.label10.Location = new System.Drawing.Point(167, 155); this.label10.Name = "label10"; this.label10.Size = new System.Drawing.Size(0, 13); this.label10.TabIndex = 0; // // label11 // this.label11.AutoSize = true; this.label11.Location = new System.Drawing.Point(167, 182); this.label11.Name = "label11"; this.label11.Size = new System.Drawing.Size(0, 13); this.label11.TabIndex = 0; // // label12 // this.label12.AutoSize = true; this.label12.Location = new System.Drawing.Point(167, 128); this.label12.Name = "label12"; this.label12.Size = new System.Drawing.Size(0, 13); this.label12.TabIndex = 0; // // label13 // this.label13.AutoSize = true; this.label13.Location = new System.Drawing.Point(167, 101); this.label13.Name = "label13"; this.label13.Size = new System.Drawing.Size(0, 13); this.label13.TabIndex = 0; // // label14 // this.label14.AutoSize = true; this.label14.Location = new System.Drawing.Point(167, 74); this.label14.Name = "label14"; this.label14.Size = new System.Drawing.Size(0, 13); this.label14.TabIndex = 0; // // label15 // this.label15.AutoSize = true; this.label15.Location = new System.Drawing.Point(39, 74); this.label15.Name = "label15"; this.label15.Size = new System.Drawing.Size(52, 13); this.label15.TabIndex = 0; this.label15.Text = "All Items :"; // // linkLabel11 // this.linkLabel11.AutoSize = true; this.linkLabel11.Location = new System.Drawing.Point(98, 169); this.linkLabel11.Name = "linkLabel11"; this.linkLabel11.Size = new System.Drawing.Size(150, 13); this.linkLabel11.TabIndex = 20; this.linkLabel11.TabStop = true; this.linkLabel11.Text = "Top 10 Least Received Items "; // // linkLabel12 // this.linkLabel12.AutoSize = true; this.linkLabel12.Location = new System.Drawing.Point(98, 140); this.linkLabel12.Name = "linkLabel12"; this.linkLabel12.Size = new System.Drawing.Size(147, 13); this.linkLabel12.TabIndex = 20; this.linkLabel12.TabStop = true; this.linkLabel12.Text = "Top 10 Most Received Items "; // // linkLabel13 // this.linkLabel13.AutoSize = true; this.linkLabel13.Location = new System.Drawing.Point(259, 99); this.linkLabel13.Name = "linkLabel13"; this.linkLabel13.Size = new System.Drawing.Size(19, 13); this.linkLabel13.TabIndex = 20; this.linkLabel13.TabStop = true; this.linkLabel13.Text = "list"; // // linkLabel14 // this.linkLabel14.AutoSize = true; this.linkLabel14.Location = new System.Drawing.Point(259, 72); this.linkLabel14.Name = "linkLabel14"; this.linkLabel14.Size = new System.Drawing.Size(19, 13); this.linkLabel14.TabIndex = 20; this.linkLabel14.TabStop = true; this.linkLabel14.Text = "list"; // // linkLabel15 // this.linkLabel15.AutoSize = true; this.linkLabel15.Location = new System.Drawing.Point(259, 48); this.linkLabel15.Name = "linkLabel15"; this.linkLabel15.Size = new System.Drawing.Size(19, 13); this.linkLabel15.TabIndex = 20; this.linkLabel15.TabStop = true; this.linkLabel15.Text = "list"; // // groupBox2 // this.groupBox2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Right))); this.groupBox2.Controls.Add(this.listView2); this.groupBox2.Location = new System.Drawing.Point(462, 3); this.groupBox2.Name = "groupBox2"; this.groupBox2.Size = new System.Drawing.Size(682, 463); this.groupBox2.TabIndex = 19; this.groupBox2.TabStop = false; // // listView2 // this.listView2.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { this.columnHeader17, this.columnHeader18, this.columnHeader19, this.columnHeader20}); this.listView2.Dock = System.Windows.Forms.DockStyle.Fill; this.listView2.FullRowSelect = true; this.listView2.GridLines = true; this.listView2.Location = new System.Drawing.Point(3, 16); this.listView2.Name = "listView2"; this.listView2.ShowItemToolTips = true; this.listView2.Size = new System.Drawing.Size(676, 444); this.listView2.TabIndex = 0; this.listView2.UseCompatibleStateImageBehavior = false; this.listView2.View = System.Windows.Forms.View.Details; // // columnHeader17 // this.columnHeader17.Text = "No."; this.columnHeader17.Width = 34; // // columnHeader18 // this.columnHeader18.Text = "Stock Code"; this.columnHeader18.Width = 98; // // columnHeader19 // this.columnHeader19.Text = "Item Name"; this.columnHeader19.Width = 393; // // columnHeader20 // this.columnHeader20.Text = "Unit"; // // label44 // this.label44.AutoSize = true; this.label44.Location = new System.Drawing.Point(309, 48); this.label44.Name = "label44"; this.label44.Size = new System.Drawing.Size(0, 13); this.label44.TabIndex = 9; // // label45 // this.label45.AutoSize = true; this.label45.Location = new System.Drawing.Point(203, 48); this.label45.Name = "label45"; this.label45.Size = new System.Drawing.Size(0, 13); this.label45.TabIndex = 10; // // label46 // this.label46.AutoSize = true; this.label46.Location = new System.Drawing.Point(238, 72); this.label46.Name = "label46"; this.label46.Size = new System.Drawing.Size(13, 13); this.label46.TabIndex = 7; this.label46.Text = "0"; // // label47 // this.label47.AutoSize = true; this.label47.Location = new System.Drawing.Point(238, 99); this.label47.Name = "label47"; this.label47.Size = new System.Drawing.Size(13, 13); this.label47.TabIndex = 7; this.label47.Text = "0"; // // label48 // this.label48.AutoSize = true; this.label48.Location = new System.Drawing.Point(238, 48); this.label48.Name = "label48"; this.label48.Size = new System.Drawing.Size(13, 13); this.label48.TabIndex = 7; this.label48.Text = "0"; // // label49 // this.label49.AutoSize = true; this.label49.Location = new System.Drawing.Point(98, 99); this.label49.Name = "label49"; this.label49.Size = new System.Drawing.Size(119, 13); this.label49.TabIndex = 8; this.label49.Text = "Never Received Items :"; // // label50 // this.label50.AutoSize = true; this.label50.Location = new System.Drawing.Point(98, 72); this.label50.Name = "label50"; this.label50.Size = new System.Drawing.Size(94, 13); this.label50.TabIndex = 8; this.label50.Text = "No of Days since :"; // // label51 // this.label51.AutoSize = true; this.label51.Location = new System.Drawing.Point(98, 48); this.label51.Name = "label51"; this.label51.Size = new System.Drawing.Size(102, 13); this.label51.TabIndex = 8; this.label51.Text = "Last Receive Date :"; // // chartPie // this.chartPie.AppearanceNameSerializable = "Pastel Kit"; this.chartPie.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(227)))), ((int)(((byte)(239)))), ((int)(((byte)(255))))); simpleDiagram3D1.RotationMatrixSerializable = "1;0;0;0;0;0.5;-0.866025403784439;0;0;0.866025403784439;0.5;0;0;0;0;1"; this.chartPie.Diagram = simpleDiagram3D1; this.chartPie.EmptyChartText.Font = new System.Drawing.Font("Tahoma", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.chartPie.EmptyChartText.Text = "Data is not available for the selected Store and Year. "; this.chartPie.EmptyChartText.TextColor = System.Drawing.Color.Black; this.chartPie.Location = new System.Drawing.Point(12, 38); this.chartPie.Name = "chartPie"; this.chartPie.PaletteName = "Palette 2"; this.chartPie.PaletteRepository.Add("Palette 1", new DevExpress.XtraCharts.Palette("Palette 1", DevExpress.XtraCharts.PaletteScaleMode.Repeat, new DevExpress.XtraCharts.PaletteEntry[] { new DevExpress.XtraCharts.PaletteEntry(System.Drawing.Color.FromArgb(((int)(((byte)(5)))), ((int)(((byte)(169)))), ((int)(((byte)(10))))), System.Drawing.Color.FromArgb(((int)(((byte)(5)))), ((int)(((byte)(169)))), ((int)(((byte)(10)))))), new DevExpress.XtraCharts.PaletteEntry(System.Drawing.Color.FromArgb(((int)(((byte)(159)))), ((int)(((byte)(33)))), ((int)(((byte)(15))))), System.Drawing.Color.FromArgb(((int)(((byte)(159)))), ((int)(((byte)(33)))), ((int)(((byte)(15)))))), new DevExpress.XtraCharts.PaletteEntry(System.Drawing.Color.FromArgb(((int)(((byte)(104)))), ((int)(((byte)(186)))), ((int)(((byte)(217))))), System.Drawing.Color.FromArgb(((int)(((byte)(104)))), ((int)(((byte)(186)))), ((int)(((byte)(217)))))), new DevExpress.XtraCharts.PaletteEntry(System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(94))))), System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(94)))))), new DevExpress.XtraCharts.PaletteEntry(System.Drawing.Color.FromArgb(((int)(((byte)(119)))), ((int)(((byte)(199)))), ((int)(((byte)(70))))), System.Drawing.Color.FromArgb(((int)(((byte)(144)))), ((int)(((byte)(238)))), ((int)(((byte)(82)))))), new DevExpress.XtraCharts.PaletteEntry(System.Drawing.Color.FromArgb(((int)(((byte)(152)))), ((int)(((byte)(58)))), ((int)(((byte)(23))))), System.Drawing.Color.FromArgb(((int)(((byte)(187)))), ((int)(((byte)(86)))), ((int)(((byte)(49)))))), new DevExpress.XtraCharts.PaletteEntry(System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(136)))), ((int)(((byte)(0))))), System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(171)))), ((int)(((byte)(27)))))), new DevExpress.XtraCharts.PaletteEntry(System.Drawing.Color.FromArgb(((int)(((byte)(158)))), ((int)(((byte)(161)))), ((int)(((byte)(0))))), System.Drawing.Color.FromArgb(((int)(((byte)(196)))), ((int)(((byte)(194)))), ((int)(((byte)(0)))))), new DevExpress.XtraCharts.PaletteEntry(System.Drawing.Color.FromArgb(((int)(((byte)(55)))), ((int)(((byte)(159)))), ((int)(((byte)(113))))), System.Drawing.Color.FromArgb(((int)(((byte)(72)))), ((int)(((byte)(194)))), ((int)(((byte)(141)))))), new DevExpress.XtraCharts.PaletteEntry(System.Drawing.Color.FromArgb(((int)(((byte)(206)))), ((int)(((byte)(172)))), ((int)(((byte)(104))))), System.Drawing.Color.FromArgb(((int)(((byte)(236)))), ((int)(((byte)(202)))), ((int)(((byte)(134)))))), new DevExpress.XtraCharts.PaletteEntry(System.Drawing.Color.FromArgb(((int)(((byte)(115)))), ((int)(((byte)(192)))), ((int)(((byte)(192))))), System.Drawing.Color.FromArgb(((int)(((byte)(132)))), ((int)(((byte)(227)))), ((int)(((byte)(181)))))), new DevExpress.XtraCharts.PaletteEntry(System.Drawing.Color.FromArgb(((int)(((byte)(234)))), ((int)(((byte)(147)))), ((int)(((byte)(115))))), System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(175)))), ((int)(((byte)(149))))))})); this.chartPie.PaletteRepository.Add("Palette 2", new DevExpress.XtraCharts.Palette("Palette 2", DevExpress.XtraCharts.PaletteScaleMode.Repeat, new DevExpress.XtraCharts.PaletteEntry[] { new DevExpress.XtraCharts.PaletteEntry(System.Drawing.Color.FromArgb(((int)(((byte)(102)))), ((int)(((byte)(168)))), ((int)(((byte)(9))))), System.Drawing.Color.FromArgb(((int)(((byte)(146)))), ((int)(((byte)(201)))), ((int)(((byte)(67)))))), new DevExpress.XtraCharts.PaletteEntry(System.Drawing.Color.FromArgb(((int)(((byte)(200)))), ((int)(((byte)(76)))), ((int)(((byte)(27))))), System.Drawing.Color.FromArgb(((int)(((byte)(234)))), ((int)(((byte)(118)))), ((int)(((byte)(72)))))), new DevExpress.XtraCharts.PaletteEntry(System.Drawing.Color.FromArgb(((int)(((byte)(111)))), ((int)(((byte)(203)))), ((int)(((byte)(219))))), System.Drawing.Color.FromArgb(((int)(((byte)(111)))), ((int)(((byte)(203)))), ((int)(((byte)(219)))))), new DevExpress.XtraCharts.PaletteEntry(System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(94))))), System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(94)))))), new DevExpress.XtraCharts.PaletteEntry(System.Drawing.Color.FromArgb(((int)(((byte)(152)))), ((int)(((byte)(58)))), ((int)(((byte)(23))))), System.Drawing.Color.FromArgb(((int)(((byte)(187)))), ((int)(((byte)(86)))), ((int)(((byte)(49)))))), new DevExpress.XtraCharts.PaletteEntry(System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(136)))), ((int)(((byte)(0))))), System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(171)))), ((int)(((byte)(27)))))), new DevExpress.XtraCharts.PaletteEntry(System.Drawing.Color.FromArgb(((int)(((byte)(158)))), ((int)(((byte)(161)))), ((int)(((byte)(0))))), System.Drawing.Color.FromArgb(((int)(((byte)(196)))), ((int)(((byte)(194)))), ((int)(((byte)(0)))))), new DevExpress.XtraCharts.PaletteEntry(System.Drawing.Color.FromArgb(((int)(((byte)(55)))), ((int)(((byte)(159)))), ((int)(((byte)(113))))), System.Drawing.Color.FromArgb(((int)(((byte)(72)))), ((int)(((byte)(194)))), ((int)(((byte)(141)))))), new DevExpress.XtraCharts.PaletteEntry(System.Drawing.Color.FromArgb(((int)(((byte)(206)))), ((int)(((byte)(172)))), ((int)(((byte)(104))))), System.Drawing.Color.FromArgb(((int)(((byte)(236)))), ((int)(((byte)(202)))), ((int)(((byte)(134)))))), new DevExpress.XtraCharts.PaletteEntry(System.Drawing.Color.FromArgb(((int)(((byte)(115)))), ((int)(((byte)(192)))), ((int)(((byte)(192))))), System.Drawing.Color.FromArgb(((int)(((byte)(132)))), ((int)(((byte)(227)))), ((int)(((byte)(181)))))), new DevExpress.XtraCharts.PaletteEntry(System.Drawing.Color.FromArgb(((int)(((byte)(234)))), ((int)(((byte)(147)))), ((int)(((byte)(115))))), System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(175)))), ((int)(((byte)(149))))))})); this.chartPie.PaletteRepository.Add("Palette 3", new DevExpress.XtraCharts.Palette("Palette 3", DevExpress.XtraCharts.PaletteScaleMode.Repeat, new DevExpress.XtraCharts.PaletteEntry[] { new DevExpress.XtraCharts.PaletteEntry(System.Drawing.Color.FromArgb(((int)(((byte)(200)))), ((int)(((byte)(76)))), ((int)(((byte)(27))))), System.Drawing.Color.FromArgb(((int)(((byte)(234)))), ((int)(((byte)(118)))), ((int)(((byte)(72)))))), new DevExpress.XtraCharts.PaletteEntry(System.Drawing.Color.FromArgb(((int)(((byte)(111)))), ((int)(((byte)(203)))), ((int)(((byte)(219))))), System.Drawing.Color.FromArgb(((int)(((byte)(111)))), ((int)(((byte)(203)))), ((int)(((byte)(219)))))), new DevExpress.XtraCharts.PaletteEntry(System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(94))))), System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(94)))))), new DevExpress.XtraCharts.PaletteEntry(System.Drawing.Color.FromArgb(((int)(((byte)(152)))), ((int)(((byte)(58)))), ((int)(((byte)(23))))), System.Drawing.Color.FromArgb(((int)(((byte)(187)))), ((int)(((byte)(86)))), ((int)(((byte)(49)))))), new DevExpress.XtraCharts.PaletteEntry(System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(136)))), ((int)(((byte)(0))))), System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(171)))), ((int)(((byte)(27)))))), new DevExpress.XtraCharts.PaletteEntry(System.Drawing.Color.FromArgb(((int)(((byte)(158)))), ((int)(((byte)(161)))), ((int)(((byte)(0))))), System.Drawing.Color.FromArgb(((int)(((byte)(196)))), ((int)(((byte)(194)))), ((int)(((byte)(0)))))), new DevExpress.XtraCharts.PaletteEntry(System.Drawing.Color.FromArgb(((int)(((byte)(55)))), ((int)(((byte)(159)))), ((int)(((byte)(113))))), System.Drawing.Color.FromArgb(((int)(((byte)(72)))), ((int)(((byte)(194)))), ((int)(((byte)(141)))))), new DevExpress.XtraCharts.PaletteEntry(System.Drawing.Color.FromArgb(((int)(((byte)(206)))), ((int)(((byte)(172)))), ((int)(((byte)(104))))), System.Drawing.Color.FromArgb(((int)(((byte)(236)))), ((int)(((byte)(202)))), ((int)(((byte)(134)))))), new DevExpress.XtraCharts.PaletteEntry(System.Drawing.Color.FromArgb(((int)(((byte)(115)))), ((int)(((byte)(192)))), ((int)(((byte)(192))))), System.Drawing.Color.FromArgb(((int)(((byte)(132)))), ((int)(((byte)(227)))), ((int)(((byte)(181)))))), new DevExpress.XtraCharts.PaletteEntry(System.Drawing.Color.FromArgb(((int)(((byte)(234)))), ((int)(((byte)(147)))), ((int)(((byte)(115))))), System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(175)))), ((int)(((byte)(149))))))})); pie3DSeriesLabel1.LineVisible = true; piePointOptions1.PointView = DevExpress.XtraCharts.PointView.SeriesName; piePointOptions1.ValueNumericOptions.Format = DevExpress.XtraCharts.NumericFormat.Percent; pie3DSeriesLabel1.PointOptions = piePointOptions1; series1.Label = pie3DSeriesLabel1; series1.Name = "Series 1"; series1.View = pie3DSeriesView1; this.chartPie.SeriesSerializable = new DevExpress.XtraCharts.Series[] { series1}; pie3DSeriesLabel2.LineVisible = true; this.chartPie.SeriesTemplate.Label = pie3DSeriesLabel2; this.chartPie.SeriesTemplate.View = pie3DSeriesView2; this.chartPie.Size = new System.Drawing.Size(1037, 530); this.chartPie.TabIndex = 20; // // cboStores // this.cboStores.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.cboStores.Location = new System.Drawing.Point(803, 12); this.cboStores.Name = "cboStores"; this.cboStores.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Down)}); this.cboStores.Properties.Columns.AddRange(new DevExpress.XtraEditors.Controls.LookUpColumnInfo[] { new DevExpress.XtraEditors.Controls.LookUpColumnInfo("StoreName", "Name")}); this.cboStores.Properties.DisplayMember = "StoreName"; this.cboStores.Properties.NullText = ""; this.cboStores.Properties.ValueMember = "ID"; this.cboStores.Size = new System.Drawing.Size(190, 20); this.cboStores.StyleController = this.layoutControl1; this.cboStores.TabIndex = 21; this.cboStores.EditValueChanged += new System.EventHandler(this.cboStores_SelectedValueChanged_1); // // layoutControl1 // this.layoutControl1.Controls.Add(this.cboYear); this.layoutControl1.Controls.Add(this.lkCategory); this.layoutControl1.Controls.Add(this.label1); this.layoutControl1.Controls.Add(this.chartPie); this.layoutControl1.Controls.Add(this.btnPrint); this.layoutControl1.Controls.Add(this.dtDate); this.layoutControl1.Controls.Add(this.cboStores); this.layoutControl1.Controls.Add(this.dtFrom); this.layoutControl1.Controls.Add(this.dtTo); this.layoutControl1.Dock = System.Windows.Forms.DockStyle.Fill; this.layoutControl1.HiddenItems.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { this.layoutControlItem2}); this.layoutControl1.Location = new System.Drawing.Point(0, 0); this.layoutControl1.Name = "layoutControl1"; this.layoutControl1.OptionsCustomizationForm.DesignTimeCustomizationFormPositionAndSize = new System.Drawing.Rectangle(50, 194, 250, 350); this.layoutControl1.Root = this.layoutControlGroup1; this.layoutControl1.Size = new System.Drawing.Size(1061, 580); this.layoutControl1.TabIndex = 28; this.layoutControl1.Text = "layoutControl1"; // // lkCategory // this.lkCategory.Location = new System.Drawing.Point(606, 12); this.lkCategory.Name = "lkCategory"; this.lkCategory.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); this.lkCategory.Properties.Columns.AddRange(new DevExpress.XtraEditors.Controls.LookUpColumnInfo[] { new DevExpress.XtraEditors.Controls.LookUpColumnInfo("Name", "Name")}); this.lkCategory.Properties.DisplayMember = "Name"; this.lkCategory.Properties.NullText = ""; this.lkCategory.Properties.ValueMember = "ID"; this.lkCategory.Size = new System.Drawing.Size(193, 20); this.lkCategory.StyleController = this.layoutControl1; this.lkCategory.TabIndex = 26; this.lkCategory.EditValueChanged += new System.EventHandler(this.cboStores_SelectedValueChanged_1); // // label1 // this.label1.Font = new System.Drawing.Font("Verdana", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label1.Location = new System.Drawing.Point(12, 12); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(353, 22); this.label1.TabIndex = 25; this.label1.Text = "General Expiry For Current Year"; // // btnPrint // this.btnPrint.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.btnPrint.Image = global::PharmInventory.Properties.Resources.printer; this.btnPrint.Location = new System.Drawing.Point(997, 12); this.btnPrint.Name = "btnPrint"; this.btnPrint.Size = new System.Drawing.Size(52, 22); this.btnPrint.StyleController = this.layoutControl1; this.btnPrint.TabIndex = 24; this.btnPrint.Text = "Print"; this.btnPrint.Click += new System.EventHandler(this.btnPrint_Click); // // dtDate // this.dtDate.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.dtDate.CalendarFont = new System.Drawing.Font("Nyala", 11.75F); this.dtDate.CustomFormat = "MM/dd/ yy"; this.dtDate.DayOfWeekCharacters = 1; this.dtDate.Location = new System.Drawing.Point(561, 12); this.dtDate.Name = "dtDate"; this.dtDate.PopUpFontSize = 9.75F; this.dtDate.Size = new System.Drawing.Size(186, 22); this.dtDate.TabIndex = 22; this.dtDate.Value = new System.DateTime(2009, 1, 20, 0, 0, 0, 0); this.dtDate.Visible = false; // // layoutControlItem2 // this.layoutControlItem2.Control = this.dtDate; this.layoutControlItem2.CustomizationFormText = "layoutControlItem2"; this.layoutControlItem2.Location = new System.Drawing.Point(549, 0); this.layoutControlItem2.Name = "layoutControlItem2"; this.layoutControlItem2.Size = new System.Drawing.Size(190, 26); this.layoutControlItem2.Text = "layoutControlItem2"; this.layoutControlItem2.TextSize = new System.Drawing.Size(0, 0); this.layoutControlItem2.TextToControlDistance = 0; this.layoutControlItem2.TextVisible = false; // // layoutControlGroup1 // this.layoutControlGroup1.CustomizationFormText = "Root"; this.layoutControlGroup1.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True; this.layoutControlGroup1.GroupBordersVisible = false; this.layoutControlGroup1.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { this.layoutControlItem1, this.layoutControlItem3, this.layoutControlItem4, this.emptySpaceItem1, this.layoutControlItem5, this.layoutControlItem6, this.layoutControlItem8}); this.layoutControlGroup1.Location = new System.Drawing.Point(0, 0); this.layoutControlGroup1.Name = "Root"; this.layoutControlGroup1.Size = new System.Drawing.Size(1061, 580); this.layoutControlGroup1.Text = "Root"; this.layoutControlGroup1.TextVisible = false; // // layoutControlItem1 // this.layoutControlItem1.Control = this.chartPie; this.layoutControlItem1.CustomizationFormText = "layoutControlItem1"; this.layoutControlItem1.Location = new System.Drawing.Point(0, 26); this.layoutControlItem1.Name = "layoutControlItem1"; this.layoutControlItem1.Size = new System.Drawing.Size(1041, 534); this.layoutControlItem1.Text = "layoutControlItem1"; this.layoutControlItem1.TextSize = new System.Drawing.Size(0, 0); this.layoutControlItem1.TextToControlDistance = 0; this.layoutControlItem1.TextVisible = false; // // layoutControlItem3 // this.layoutControlItem3.Control = this.cboStores; this.layoutControlItem3.CustomizationFormText = "layoutControlItem3"; this.layoutControlItem3.Location = new System.Drawing.Point(791, 0); this.layoutControlItem3.Name = "layoutControlItem3"; this.layoutControlItem3.Size = new System.Drawing.Size(194, 26); this.layoutControlItem3.Text = "layoutControlItem3"; this.layoutControlItem3.TextSize = new System.Drawing.Size(0, 0); this.layoutControlItem3.TextToControlDistance = 0; this.layoutControlItem3.TextVisible = false; // // layoutControlItem4 // this.layoutControlItem4.Control = this.btnPrint; this.layoutControlItem4.CustomizationFormText = "layoutControlItem4"; this.layoutControlItem4.Location = new System.Drawing.Point(985, 0); this.layoutControlItem4.Name = "layoutControlItem4"; this.layoutControlItem4.Size = new System.Drawing.Size(56, 26); this.layoutControlItem4.Text = "layoutControlItem4"; this.layoutControlItem4.TextSize = new System.Drawing.Size(0, 0); this.layoutControlItem4.TextToControlDistance = 0; this.layoutControlItem4.TextVisible = false; // // emptySpaceItem1 // this.emptySpaceItem1.AllowHotTrack = false; this.emptySpaceItem1.CustomizationFormText = "emptySpaceItem1"; this.emptySpaceItem1.Location = new System.Drawing.Point(357, 0); this.emptySpaceItem1.Name = "emptySpaceItem1"; this.emptySpaceItem1.Size = new System.Drawing.Size(118, 26); this.emptySpaceItem1.Text = "emptySpaceItem1"; this.emptySpaceItem1.TextSize = new System.Drawing.Size(0, 0); // // layoutControlItem5 // this.layoutControlItem5.Control = this.label1; this.layoutControlItem5.CustomizationFormText = "layoutControlItem5"; this.layoutControlItem5.Location = new System.Drawing.Point(0, 0); this.layoutControlItem5.Name = "layoutControlItem5"; this.layoutControlItem5.Size = new System.Drawing.Size(357, 26); this.layoutControlItem5.Text = "layoutControlItem5"; this.layoutControlItem5.TextSize = new System.Drawing.Size(0, 0); this.layoutControlItem5.TextToControlDistance = 0; this.layoutControlItem5.TextVisible = false; // // layoutControlItem6 // this.layoutControlItem6.Control = this.lkCategory; this.layoutControlItem6.CustomizationFormText = "layoutControlItem6"; this.layoutControlItem6.Location = new System.Drawing.Point(594, 0); this.layoutControlItem6.Name = "layoutControlItem6"; this.layoutControlItem6.Size = new System.Drawing.Size(197, 26); this.layoutControlItem6.Text = "layoutControlItem6"; this.layoutControlItem6.TextSize = new System.Drawing.Size(0, 0); this.layoutControlItem6.TextToControlDistance = 0; this.layoutControlItem6.TextVisible = false; // // printDoc // this.printDoc.PrintPage += new System.Drawing.Printing.PrintPageEventHandler(this.printDocument1_PrintPage); // // printDialog1 // this.printDialog1.UseEXDialog = true; // // groupBox3 // this.groupBox3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.groupBox3.Controls.Add(this.lstExpStatus); this.groupBox3.Location = new System.Drawing.Point(507, 446); this.groupBox3.Name = "groupBox3"; this.groupBox3.Size = new System.Drawing.Size(529, 111); this.groupBox3.TabIndex = 27; this.groupBox3.TabStop = false; this.groupBox3.Text = "Stock Expiry Status"; // // lstExpStatus // this.lstExpStatus.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.lstExpStatus.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { this.StockCode, this.columnHeader3, this.columnHeader4, this.columnHeader1}); this.lstExpStatus.FitToPage = false; this.lstExpStatus.GridLines = true; this.lstExpStatus.Location = new System.Drawing.Point(6, 20); this.lstExpStatus.Name = "lstExpStatus"; this.lstExpStatus.Size = new System.Drawing.Size(510, 85); this.lstExpStatus.TabIndex = 14; this.lstExpStatus.Title = ""; this.lstExpStatus.UseCompatibleStateImageBehavior = false; this.lstExpStatus.View = System.Windows.Forms.View.Details; // // StockCode // this.StockCode.Text = "Stock Status"; this.StockCode.Width = 121; // // columnHeader3 // this.columnHeader3.Text = "Percentage "; this.columnHeader3.Width = 101; // // columnHeader4 // this.columnHeader4.Text = "Quantity"; this.columnHeader4.Width = 102; // // columnHeader1 // this.columnHeader1.Text = "Price"; this.columnHeader1.Width = 100; // // printingSystem1 // this.printingSystem1.Links.AddRange(new object[] { this.printableComponentLink1}); // // printableComponentLink1 // this.printableComponentLink1.Component = this.chartPie; // // // this.printableComponentLink1.ImageCollection.ImageStream = ((DevExpress.Utils.ImageCollectionStreamer)(resources.GetObject("printableComponentLink1.ImageCollection.ImageStream"))); this.printableComponentLink1.Landscape = true; this.printableComponentLink1.Margins = new System.Drawing.Printing.Margins(20, 20, 100, 100); this.printableComponentLink1.MinMargins = new System.Drawing.Printing.Margins(5, 5, 20, 20); this.printableComponentLink1.PageHeaderFooter = new DevExpress.XtraPrinting.PageHeaderFooter(new DevExpress.XtraPrinting.PageHeaderArea(new string[] { "", "Expiry Status Chart", ""}, new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))), DevExpress.XtraPrinting.BrickAlignment.Near), new DevExpress.XtraPrinting.PageFooterArea(new string[] { "[Page # of Pages #]", "", "[Date Printed]"}, new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))), DevExpress.XtraPrinting.BrickAlignment.Near)); this.printableComponentLink1.PaperKind = System.Drawing.Printing.PaperKind.A4; this.printableComponentLink1.PrintingSystem = this.printingSystem1; this.printableComponentLink1.PrintingSystemBase = this.printingSystem1; // // layoutControlItem13 // this.layoutControlItem13.CustomizationFormText = " From : "; this.layoutControlItem13.Location = new System.Drawing.Point(884, 24); this.layoutControlItem13.Name = "layoutControlItem13"; this.layoutControlItem13.Size = new System.Drawing.Size(206, 24); this.layoutControlItem13.Text = " From : "; this.layoutControlItem13.TextSize = new System.Drawing.Size(52, 13); this.layoutControlItem13.TextToControlDistance = 5; this.layoutControlItem13.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never; // // layoutControlItem7 // this.layoutControlItem7.CustomizationFormText = " From : "; this.layoutControlItem7.Location = new System.Drawing.Point(884, 24); this.layoutControlItem7.Name = "layoutControlItem13"; this.layoutControlItem7.Size = new System.Drawing.Size(206, 24); this.layoutControlItem7.Text = " From : "; this.layoutControlItem7.TextSize = new System.Drawing.Size(52, 13); this.layoutControlItem7.TextToControlDistance = 5; this.layoutControlItem7.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never; // // cboYear // this.cboYear.Location = new System.Drawing.Point(487, 12); this.cboYear.Name = "cboYear"; this.cboYear.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); this.cboYear.Properties.Columns.AddRange(new DevExpress.XtraEditors.Controls.LookUpColumnInfo[] { new DevExpress.XtraEditors.Controls.LookUpColumnInfo("year", "Year")}); this.cboYear.Properties.DisplayMember = "year"; this.cboYear.Properties.NullText = ""; this.cboYear.Properties.ValueMember = "year"; this.cboYear.Size = new System.Drawing.Size(115, 20); this.cboYear.StyleController = this.layoutControl1; this.cboYear.TabIndex = 26; this.cboYear.EditValueChanged += new System.EventHandler(this.cboYear_EditValueChanged); // // layoutControlItem8 // this.layoutControlItem8.Control = this.cboYear; this.layoutControlItem8.CustomizationFormText = "layoutControlItem8"; this.layoutControlItem8.Location = new System.Drawing.Point(475, 0); this.layoutControlItem8.Name = "layoutControlItem8"; this.layoutControlItem8.Size = new System.Drawing.Size(119, 26); this.layoutControlItem8.Text = "layoutControlItem8"; this.layoutControlItem8.TextSize = new System.Drawing.Size(0, 0); this.layoutControlItem8.TextToControlDistance = 0; this.layoutControlItem8.TextVisible = false; // // GeneralExpiryChart // this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(221)))), ((int)(((byte)(231)))), ((int)(((byte)(253))))); this.ClientSize = new System.Drawing.Size(1061, 580); this.Controls.Add(this.layoutControl1); this.Controls.Add(this.groupBox3); this.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.Name = "GeneralExpiryChart"; this.Text = "GeneralReport"; this.Load += new System.EventHandler(this.GeneralReport_Load); this.groupBox1.ResumeLayout(false); this.groupBox2.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(simpleDiagram3D1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(pie3DSeriesLabel1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(pie3DSeriesView1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(series1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(pie3DSeriesLabel2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(pie3DSeriesView2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.chartPie)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.cboStores.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).EndInit(); this.layoutControl1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.lkCategory.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).EndInit(); this.groupBox3.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.printingSystem1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.printableComponentLink1.ImageCollection)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem13)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.cboYear.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).EndInit(); this.ResumeLayout(false); }
private void Button_Click(object sender, EventArgs e) { HomePageNodeModel nodeModel = (HomePageNodeModel)(((SimpleButton)sender).Tag); //列表类型 bool isList = nodeModel.childNodes.Count > 0; if (selectButton == sender && !isList) { return; } //设置回原来的样子 if (selectButton != null) { HomePageNodeModel selectNodeModel = (HomePageNodeModel)(selectButton.Tag); selectButton.ForeColor = Color.White; selectButton.Appearance.BackColor = NOR_BACK_COLOR; if (selectNodeModel.imgName == null || selectNodeModel.imgName == "") { selectButton.Image = Imgs.icon_huiyuan; } else { selectButton.Image = Imgs.GetBitImg(selectNodeModel.imgName); } } //设置成选择状态 selectButton = sender as SimpleButton; selectButton.ForeColor = Color.FromArgb(108, 140, 190); selectButton.Appearance.BackColor = SEL_BACK_COLOR; if (nodeModel.selName == null || nodeModel.selName == "") { selectButton.Image = Imgs.icon_huiyuan2; } else { selectButton.Image = Imgs.GetBitImg(nodeModel.selName); } //判断是否有子菜单 //设置右键弹出框 if (isList) { this.popupMenu1.ClearLinks(); foreach (HomePageNodeModel model in nodeModel.childNodes) { BarButtonItem item = new BarButtonItem(); item.Caption = model.nodeName; item.Tag = model.nodeid; item.ItemClick += Item_ItemClick; this.popupMenu1.AddItem(item); } Point screenPoint = selectButton.PointToScreen(new Point(selectButton.Width, 0)); popupMenu1.ShowPopup(screenPoint); } else { //显示右侧内容列表 ShowView(nodeModel); } }
private void SetButton() { DevExpress.XtraBars.PopupControlContainer container = new DevExpress.XtraBars.PopupControlContainer(); appMenu.BottomPaneControlContainer = container; //Nút thoát SimpleButton button = new SimpleButton(); button.Location = new System.Drawing.Point(124, 3); button.Size = new System.Drawing.Size(75, 23); button.Image = FWImageDic.EXIT_IMAGE16; button.Text = "Thoát"; button.Click += new EventHandler(Button_click); //Nút tùy chỉnh giao diện SimpleButton buttonTuyChon = new SimpleButton(); buttonTuyChon.Location = new System.Drawing.Point(45, 3); buttonTuyChon.Size = new System.Drawing.Size(75, 23); buttonTuyChon.Image = FWImageDic.CONFIG_IMAGE16; buttonTuyChon.Text = "Tùy chọn"; buttonTuyChon.Click += new EventHandler(ButtonTuyChon_click); ///Container container.Controls.Add(button); container.Controls.Add(buttonTuyChon); container.Appearance.BackColor = System.Drawing.Color.Transparent; container.Appearance.BackColor2 = System.Drawing.Color.Transparent; container.Appearance.Options.UseBackColor = true; container.AutoSize = true; container.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowOnly; container.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder; container.Ribbon = ribbonControl; container.Size = new System.Drawing.Size(202, 20); container.Visible = false; }
/// <summary> /// This method is used to add button on message box. /// </summary> /// <param name="MessageButton">MessageButton is type of enumMessageButton /// through which I get type of button which needs to be displayed.</param> private void addButton(enumMessageButton MessageButton) { switch (MessageButton) { case enumMessageButton.OK: { //If type of enumButton is OK then we add OK button only. SimpleButton btnOk = new SimpleButton(); //Create object of Button. btnOk.Text = "确定"; //Here we set text of Button. btnOk.Appearance.Font = new System.Drawing.Font("Tahoma", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); btnOk.DialogResult = DialogResult.Yes; //Set DialogResult property of button. btnOk.SetBounds(pnlShowMessage.ClientSize.Width / 2, 1, 105, 40); // Set bounds of button. //btnOk.Click += new EventHandler(btnOk_Click); pnlShowMessage.Controls.Add(btnOk); //Finally Add button control on panel. } break; case enumMessageButton.OKCancel: { Button btnOk = new Button(); btnOk.Text = "OK"; btnOk.DialogResult = DialogResult.OK; btnOk.FlatStyle = FlatStyle.Popup; btnOk.FlatAppearance.BorderSize = 0; btnOk.SetBounds((pnlShowMessage.ClientSize.Width - 70), 5, 65, 25); pnlShowMessage.Controls.Add(btnOk); Button btnCancel = new Button(); btnCancel.Text = "Cancel"; btnCancel.DialogResult = DialogResult.Cancel; btnCancel.FlatStyle = FlatStyle.Popup; btnCancel.FlatAppearance.BorderSize = 0; btnCancel.SetBounds((pnlShowMessage.ClientSize.Width - (btnOk.ClientSize.Width + 5 + 80)), 5, 75, 25); pnlShowMessage.Controls.Add(btnCancel); } break; case enumMessageButton.YesNo: { Button btnNo = new Button(); btnNo.Text = "No"; btnNo.DialogResult = DialogResult.No; btnNo.FlatStyle = FlatStyle.Popup; btnNo.FlatAppearance.BorderSize = 0; btnNo.SetBounds((pnlShowMessage.ClientSize.Width - 70), 5, 65, 25); pnlShowMessage.Controls.Add(btnNo); Button btnYes = new Button(); btnYes.Text = "Yes"; btnYes.DialogResult = DialogResult.Yes; btnYes.FlatStyle = FlatStyle.Popup; btnYes.FlatAppearance.BorderSize = 0; btnYes.SetBounds((pnlShowMessage.ClientSize.Width - (btnNo.ClientSize.Width + 5 + 80)), 5, 75, 25); pnlShowMessage.Controls.Add(btnYes); } break; case enumMessageButton.YesNoCancel: { Button btnCancel = new Button(); btnCancel.Text = "取消"; btnCancel.DialogResult = DialogResult.Cancel; btnCancel.FlatStyle = FlatStyle.Popup; btnCancel.FlatAppearance.BorderSize = 0; btnCancel.SetBounds((pnlShowMessage.ClientSize.Width - 70), 5, 65, 25); pnlShowMessage.Controls.Add(btnCancel); Button btnNo = new Button(); btnNo.Text = "No"; btnNo.DialogResult = DialogResult.No; btnNo.FlatStyle = FlatStyle.Popup; btnNo.FlatAppearance.BorderSize = 0; btnNo.SetBounds((pnlShowMessage.ClientSize.Width - (btnCancel.ClientSize.Width + 5 + 80)), 5, 75, 25); pnlShowMessage.Controls.Add(btnNo); Button btnYes = new Button(); btnYes.Text = "确定"; btnYes.DialogResult = DialogResult.No; btnYes.FlatStyle = FlatStyle.Popup; btnYes.FlatAppearance.BorderSize = 0; btnYes.SetBounds((pnlShowMessage.ClientSize.Width - (btnCancel.ClientSize.Width + btnNo.ClientSize.Width + 10 + 80)), 5, 75, 25); pnlShowMessage.Controls.Add(btnYes); } break; } }
private void InitializeComponent() { ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(FrmCheckResult)); this.panelControl1 = new PanelControl(); this.textEdit4 = new TextEdit(); this.textEdit3 = new TextEdit(); this.textEdit2 = new TextEdit(); this.textEdit1 = new TextEdit(); this.labelControl4 = new LabelControl(); this.labelControl3 = new LabelControl(); this.simpleButton1 = new SimpleButton(); this.labelControl2 = new LabelControl(); this.labelControl1 = new LabelControl(); this.gridControl2 = new GridControl(); this.gridView2 = new GridView(); this.gridColumn4 = new GridColumn(); this.gridColumn5 = new GridColumn(); this.gridColumn6 = new GridColumn(); this.gridColumn7 = new GridColumn(); ((ISupportInitialize)this.panelControl1).BeginInit(); this.panelControl1.SuspendLayout(); ((ISupportInitialize)this.textEdit4.Properties).BeginInit(); ((ISupportInitialize)this.textEdit3.Properties).BeginInit(); ((ISupportInitialize)this.textEdit2.Properties).BeginInit(); ((ISupportInitialize)this.textEdit1.Properties).BeginInit(); ((ISupportInitialize)this.gridControl2).BeginInit(); ((ISupportInitialize)this.gridView2).BeginInit(); base.SuspendLayout(); this.panelControl1.Controls.Add(this.textEdit4); this.panelControl1.Controls.Add(this.textEdit3); this.panelControl1.Controls.Add(this.textEdit2); this.panelControl1.Controls.Add(this.textEdit1); this.panelControl1.Controls.Add(this.labelControl4); this.panelControl1.Controls.Add(this.labelControl3); this.panelControl1.Controls.Add(this.simpleButton1); this.panelControl1.Controls.Add(this.labelControl2); this.panelControl1.Controls.Add(this.labelControl1); this.panelControl1.Dock = DockStyle.Top; this.panelControl1.Location = new Point(0, 0); this.panelControl1.Name = "panelControl1"; this.panelControl1.Size = new Size(653, 41); this.panelControl1.TabIndex = 0; this.textEdit4.Location = new Point(468, 11); this.textEdit4.Name = "textEdit4"; this.textEdit4.Size = new Size(73, 20); this.textEdit4.TabIndex = 8; this.textEdit3.Location = new Point(320, 11); this.textEdit3.Name = "textEdit3"; this.textEdit3.Size = new Size(78, 20); this.textEdit3.TabIndex = 7; this.textEdit2.Location = new Point(181, 11); this.textEdit2.Name = "textEdit2"; this.textEdit2.Size = new Size(62, 20); this.textEdit2.TabIndex = 6; this.textEdit1.Location = new Point(43, 11); this.textEdit1.Name = "textEdit1"; this.textEdit1.Size = new Size(77, 20); this.textEdit1.TabIndex = 5; this.labelControl4.Location = new Point(411, 13); this.labelControl4.Name = "labelControl4"; this.labelControl4.Size = new Size(60, 14); this.labelControl4.TabIndex = 4; this.labelControl4.Text = "答题次数:"; this.labelControl3.Location = new Point(264, 14); this.labelControl3.Name = "labelControl3"; this.labelControl3.Size = new Size(60, 14); this.labelControl3.TabIndex = 3; this.labelControl3.Text = "考核用时:"; this.simpleButton1.Image = (Image)componentResourceManager.GetObject("simpleButton1.Image"); this.simpleButton1.Location = new Point(547, 3); this.simpleButton1.Name = "simpleButton1"; this.simpleButton1.Size = new Size(99, 33); this.simpleButton1.TabIndex = 2; this.simpleButton1.Text = "导出成绩"; this.simpleButton1.Click += new EventHandler(this.simpleButton1_Click); this.labelControl2.Location = new Point(126, 13); this.labelControl2.Name = "labelControl2"; this.labelControl2.Size = new Size(60, 14); this.labelControl2.TabIndex = 1; this.labelControl2.Text = "考核成绩:"; this.labelControl1.Location = new Point(9, 12); this.labelControl1.Name = "labelControl1"; this.labelControl1.Size = new Size(36, 14); this.labelControl1.TabIndex = 0; this.labelControl1.Text = "考生:"; this.gridControl2.Dock = DockStyle.Fill; this.gridControl2.Location = new Point(0, 41); this.gridControl2.MainView = this.gridView2; this.gridControl2.Name = "gridControl2"; this.gridControl2.Size = new Size(653, 430); this.gridControl2.TabIndex = 1; this.gridControl2.ViewCollection.AddRange(new BaseView[] { this.gridView2 }); this.gridView2.Columns.AddRange(new GridColumn[] { this.gridColumn4, this.gridColumn5, this.gridColumn6, this.gridColumn7 }); this.gridView2.FocusRectStyle = 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.OptionsView.ShowGroupPanel = false; this.gridView2.OptionsView.ShowViewCaption = true; this.gridView2.ViewCaption = "考核详情"; this.gridColumn4.Caption = "故障点编号"; this.gridColumn4.FieldName = "Id"; this.gridColumn4.Name = "gridColumn4"; this.gridColumn4.OptionsColumn.AllowEdit = false; this.gridColumn4.Visible = true; this.gridColumn4.VisibleIndex = 0; this.gridColumn5.Caption = "故障点名称"; this.gridColumn5.FieldName = "Question1"; this.gridColumn5.Name = "gridColumn5"; this.gridColumn5.OptionsColumn.AllowEdit = false; this.gridColumn5.Visible = true; this.gridColumn5.VisibleIndex = 1; this.gridColumn6.Caption = "设置的故障指令"; this.gridColumn6.FieldName = "Question2"; this.gridColumn6.Name = "gridColumn6"; this.gridColumn6.OptionsColumn.AllowEdit = false; this.gridColumn6.Visible = true; this.gridColumn6.VisibleIndex = 2; this.gridColumn7.Caption = "学生作答的指令"; this.gridColumn7.FieldName = "Answer"; this.gridColumn7.Name = "gridColumn7"; this.gridColumn7.OptionsColumn.AllowEdit = false; this.gridColumn7.Visible = true; this.gridColumn7.VisibleIndex = 3; base.AutoScaleDimensions = new SizeF(7f, 14f); base.AutoScaleMode = AutoScaleMode.Font; base.ClientSize = new Size(653, 471); base.Controls.Add(this.gridControl2); base.Controls.Add(this.panelControl1); base.Name = "FrmCheckResult"; this.Text = "考核结果"; base.Load += new EventHandler(this.FrmCheckResult_Load); ((ISupportInitialize)this.panelControl1).EndInit(); this.panelControl1.ResumeLayout(false); this.panelControl1.PerformLayout(); ((ISupportInitialize)this.textEdit4.Properties).EndInit(); ((ISupportInitialize)this.textEdit3.Properties).EndInit(); ((ISupportInitialize)this.textEdit2.Properties).EndInit(); ((ISupportInitialize)this.textEdit1.Properties).EndInit(); ((ISupportInitialize)this.gridControl2).EndInit(); ((ISupportInitialize)this.gridView2).EndInit(); base.ResumeLayout(false); }
private void btn_TestMould1_Click(object sender, EventArgs e) { string tag = null; ProductsMouldTestEditForm f; SimpleButton btn = (SimpleButton)sender; #region 为LookUpEdit对应的模具试模按钮传值 switch ((string)btn.Tag) { case "1": tag = this.lookUpEditMould1.EditValue == null ? null : this.lookUpEditMould1.EditValue.ToString(); break; case "2": tag = this.lookUpEditMould2.EditValue == null ? null : this.lookUpEditMould2.EditValue.ToString(); break; case "3": tag = this.lookUpEditMould3.EditValue == null ? null : this.lookUpEditMould3.EditValue.ToString(); break; case "4": tag = this.lookUpEditMould4.EditValue == null ? null : this.lookUpEditMould4.EditValue.ToString(); break; case "5": tag = this.lookUpEditMould5.EditValue == null ? null : this.lookUpEditMould5.EditValue.ToString(); break; case "6": tag = this.lookUpEditMould6.EditValue == null ? null : this.lookUpEditMould6.EditValue.ToString(); break; case "7": tag = this.lookUpEditMould7.EditValue == null ? null : this.lookUpEditMould7.EditValue.ToString(); break; case "8": tag = this.lookUpEditMould8.EditValue == null ? null : this.lookUpEditMould8.EditValue.ToString(); break; default: break; } #endregion if (this.action != "view") { if (tag == null) { MessageBox.Show("請設置要測試的模具", this.Text, MessageBoxButtons.OK, MessageBoxIcon.Information); return; } f = new ProductsMouldTestEditForm(tag); f.ShowDialog(); } else { //if (tag == null) // f = new ProductsMouldTestEditForm(); //else f = new ProductsMouldTestEditForm(tag); f.ShowDialog(); } }
private void InitializeComponent() { ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(FrmQueryTemplates)); splitContainerControl1 = new SplitContainerControl(); gcMain = new GridControl(); gridView1 = new GridView(); btOk = new SimpleButton(); labelControl3 = new LabelControl(); tbQuery = new MemoEdit(); labelControl2 = new LabelControl(); tbComment = new MemoEdit(); cbTemplates = new ComboBoxEdit(); labelControl1 = new LabelControl(); splitContainerControl1.BeginInit(); splitContainerControl1.SuspendLayout(); gcMain.BeginInit(); gridView1.BeginInit(); tbQuery.Properties.BeginInit(); tbComment.Properties.BeginInit(); cbTemplates.Properties.BeginInit(); SuspendLayout(); componentResourceManager.ApplyResources(splitContainerControl1, "splitContainerControl1"); splitContainerControl1.Name = "splitContainerControl1"; componentResourceManager.ApplyResources(splitContainerControl1.Panel1, "splitContainerControl1.Panel1"); componentResourceManager.ApplyResources(splitContainerControl1.Panel2, "splitContainerControl1.Panel2"); splitContainerControl1.Panel2.Controls.Add(gcMain); splitContainerControl1.SplitterPosition = 363; componentResourceManager.ApplyResources(gcMain, "gcMain"); gcMain.EmbeddedNavigator.AccessibleDescription = componentResourceManager.GetString("gcMain.EmbeddedNavigator.AccessibleDescription"); gcMain.EmbeddedNavigator.AccessibleName = componentResourceManager.GetString("gcMain.EmbeddedNavigator.AccessibleName"); gcMain.EmbeddedNavigator.AllowHtmlTextInToolTip = (DefaultBoolean)componentResourceManager.GetObject("gcMain.EmbeddedNavigator.AllowHtmlTextInToolTip"); gcMain.EmbeddedNavigator.Anchor = (AnchorStyles)componentResourceManager.GetObject("gcMain.EmbeddedNavigator.Anchor"); gcMain.EmbeddedNavigator.BackgroundImage = (Image)componentResourceManager.GetObject("gcMain.EmbeddedNavigator.BackgroundImage"); gcMain.EmbeddedNavigator.BackgroundImageLayout = (ImageLayout)componentResourceManager.GetObject("gcMain.EmbeddedNavigator.BackgroundImageLayout"); gcMain.EmbeddedNavigator.ImeMode = (ImeMode)componentResourceManager.GetObject("gcMain.EmbeddedNavigator.ImeMode"); gcMain.EmbeddedNavigator.MaximumSize = (Size)componentResourceManager.GetObject("gcMain.EmbeddedNavigator.MaximumSize"); gcMain.EmbeddedNavigator.TextLocation = (NavigatorButtonsTextLocation)componentResourceManager.GetObject("gcMain.EmbeddedNavigator.TextLocation"); gcMain.EmbeddedNavigator.ToolTip = componentResourceManager.GetString("gcMain.EmbeddedNavigator.ToolTip"); gcMain.EmbeddedNavigator.ToolTipIconType = (ToolTipIconType)componentResourceManager.GetObject("gcMain.EmbeddedNavigator.ToolTipIconType"); gcMain.EmbeddedNavigator.ToolTipTitle = componentResourceManager.GetString("gcMain.EmbeddedNavigator.ToolTipTitle"); gcMain.MainView = gridView1; gcMain.Name = "gcMain"; gcMain.ViewCollection.AddRange(new BaseView[1] { gridView1 }); componentResourceManager.ApplyResources(gridView1, "gridView1"); gridView1.GridControl = gcMain; gridView1.Name = "gridView1"; gridView1.OptionsView.ShowGroupPanel = false; componentResourceManager.ApplyResources(btOk, "btOk"); btOk.Name = "btOk"; btOk.Click += btOk_Click; componentResourceManager.ApplyResources(labelControl3, "labelControl3"); labelControl3.Name = "labelControl3"; componentResourceManager.ApplyResources(tbQuery, "tbQuery"); tbQuery.Name = "tbQuery"; tbQuery.Properties.AccessibleDescription = componentResourceManager.GetString("tbQuery.Properties.AccessibleDescription"); tbQuery.Properties.AccessibleName = componentResourceManager.GetString("tbQuery.Properties.AccessibleName"); tbQuery.Properties.NullValuePrompt = componentResourceManager.GetString("tbQuery.Properties.NullValuePrompt"); tbQuery.Properties.NullValuePromptShowForEmptyValue = (bool)componentResourceManager.GetObject("tbQuery.Properties.NullValuePromptShowForEmptyValue"); componentResourceManager.ApplyResources(labelControl2, "labelControl2"); labelControl2.Name = "labelControl2"; componentResourceManager.ApplyResources(tbComment, "tbComment"); tbComment.Name = "tbComment"; tbComment.Properties.AccessibleDescription = componentResourceManager.GetString("tbComment.Properties.AccessibleDescription"); tbComment.Properties.AccessibleName = componentResourceManager.GetString("tbComment.Properties.AccessibleName"); tbComment.Properties.NullValuePrompt = componentResourceManager.GetString("tbComment.Properties.NullValuePrompt"); tbComment.Properties.NullValuePromptShowForEmptyValue = (bool)componentResourceManager.GetObject("tbComment.Properties.NullValuePromptShowForEmptyValue"); componentResourceManager.ApplyResources(cbTemplates, "cbTemplates"); cbTemplates.Name = "cbTemplates"; cbTemplates.Properties.AccessibleDescription = componentResourceManager.GetString("cbTemplates.Properties.AccessibleDescription"); cbTemplates.Properties.AccessibleName = componentResourceManager.GetString("cbTemplates.Properties.AccessibleName"); cbTemplates.Properties.AutoHeight = (bool)componentResourceManager.GetObject("cbTemplates.Properties.AutoHeight"); cbTemplates.Properties.Buttons.AddRange(new EditorButton[1] { new EditorButton((ButtonPredefines)componentResourceManager.GetObject("cbTemplates.Properties.Buttons")) }); cbTemplates.Properties.NullValuePrompt = componentResourceManager.GetString("cbTemplates.Properties.NullValuePrompt"); cbTemplates.Properties.NullValuePromptShowForEmptyValue = (bool)componentResourceManager.GetObject("cbTemplates.Properties.NullValuePromptShowForEmptyValue"); cbTemplates.SelectedIndexChanged += cbTemplates_SelectedIndexChanged; componentResourceManager.ApplyResources(labelControl1, "labelControl1"); labelControl1.Name = "labelControl1"; componentResourceManager.ApplyResources(this, "$this"); AutoScaleMode = AutoScaleMode.Font; ControlBox = false; Controls.Add(splitContainerControl1); FormBorderStyle = FormBorderStyle.None; Name = "FrmQueryTemplates"; ShowIcon = false; Load += frmQueryTemplates_Load; Resize += frmQueryTemplates_Resize; splitContainerControl1.EndInit(); splitContainerControl1.ResumeLayout(false); gcMain.EndInit(); gridView1.EndInit(); tbQuery.Properties.EndInit(); tbComment.Properties.EndInit(); cbTemplates.Properties.EndInit(); ResumeLayout(false); }
private void btn_ProductMould1_Click(object sender, EventArgs e) { SimpleButton btn = (SimpleButton)sender; ProductMouldEditForm f = new ProductMouldEditForm(); switch ((string)btn.Tag) { case "1": if (this.lookUpEditMould1.EditValue != null) { f = new ProductMouldEditForm(this.lookUpEditMould1.EditValue.ToString()); } break; case "2": if (this.lookUpEditMould2.EditValue != null) { f = new ProductMouldEditForm(this.lookUpEditMould2.EditValue.ToString()); } break; case "3": if (this.lookUpEditMould3.EditValue != null) { f = new ProductMouldEditForm(this.lookUpEditMould3.EditValue.ToString()); } break; case "4": if (this.lookUpEditMould4.EditValue != null) { f = new ProductMouldEditForm(this.lookUpEditMould4.EditValue.ToString()); } break; case "5": if (this.lookUpEditMould5.EditValue != null) { f = new ProductMouldEditForm(this.lookUpEditMould5.EditValue.ToString()); } break; case "6": if (this.lookUpEditMould6.EditValue != null) { f = new ProductMouldEditForm(this.lookUpEditMould6.EditValue.ToString()); } break; case "7": if (this.lookUpEditMould7.EditValue != null) { f = new ProductMouldEditForm(this.lookUpEditMould7.EditValue.ToString()); } break; case "8": if (this.lookUpEditMould8.EditValue != null) { f = new ProductMouldEditForm(this.lookUpEditMould8.EditValue.ToString()); } break; default: break; } if (this.action != "view") { if (f.ShowDialog() == DialogResult.OK) { this.bindingSourceProductMould.DataSource = (new BL.ProductMouldManager()).Select(); #region 为按钮对应的LookUpEdit赋值 switch ((string)btn.Tag) { case "1": this.lookUpEditMould1.EditValue = f._productMould.MouldId; break; case "2": this.lookUpEditMould2.EditValue = f._productMould.MouldId; break; case "3": this.lookUpEditMould3.EditValue = f._productMould.MouldId; break; case "4": this.lookUpEditMould4.EditValue = f._productMould.MouldId; break; case "5": this.lookUpEditMould5.EditValue = f._productMould.MouldId; break; case "6": this.lookUpEditMould6.EditValue = f._productMould.MouldId; break; case "7": this.lookUpEditMould7.EditValue = f._productMould.MouldId; break; case "8": this.lookUpEditMould8.EditValue = f._productMould.MouldId; break; default: break; #endregion } } } else { f.ShowDialog(); } }
private void gvDuplicateSample_EditFormPrepared(object sender, DevExpress.XtraGrid.Views.Grid.EditFormPreparedEventArgs e) { SimpleButton b = e.Panel.Controls.OfType <PanelControl>().FirstOrDefault().Controls.OfType <SimpleButton>().Select(x => x.Text == GridLocalizer.Active.GetLocalizedString(GridStringId.EditFormUpdateButton) ? x : null).FirstOrDefault(); b.Click += b_DuplicateSampleClick; }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.groupBox1 = new System.Windows.Forms.GroupBox(); this.textEdit1 = new DevExpress.XtraEditors.TextEdit(); this.simpleButton1 = new DevExpress.XtraEditors.SimpleButton(); this.simpleButton2 = new DevExpress.XtraEditors.SimpleButton(); this.groupBox1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.textEdit1.Properties)).BeginInit(); this.SuspendLayout(); // // groupBox1 // this.groupBox1.Controls.Add(this.textEdit1); this.groupBox1.Location = new System.Drawing.Point(12, 12); this.groupBox1.Name = "groupBox1"; this.groupBox1.Size = new System.Drawing.Size(277, 105); this.groupBox1.TabIndex = 0; this.groupBox1.TabStop = false; this.groupBox1.Text = "����"; // // textEdit1 // this.textEdit1.ImeMode = System.Windows.Forms.ImeMode.On; this.textEdit1.Location = new System.Drawing.Point(27, 50); this.textEdit1.Name = "textEdit1"; this.textEdit1.Properties.MaxLength = 100; this.textEdit1.Size = new System.Drawing.Size(227, 21); this.textEdit1.TabIndex = 0; // // simpleButton1 // this.simpleButton1.Appearance.Font = new System.Drawing.Font("����", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.simpleButton1.Appearance.Options.UseFont = true; this.simpleButton1.Location = new System.Drawing.Point(127, 142); this.simpleButton1.Name = "simpleButton1"; this.simpleButton1.Size = new System.Drawing.Size(75, 27); this.simpleButton1.TabIndex = 1; this.simpleButton1.Text = "ȷ��(&O)"; this.simpleButton1.Click += new System.EventHandler(this.simpleButton1_Click); // // simpleButton2 // this.simpleButton2.Appearance.Font = new System.Drawing.Font("����", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.simpleButton2.Appearance.Options.UseFont = true; this.simpleButton2.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.simpleButton2.Location = new System.Drawing.Point(214, 142); this.simpleButton2.Name = "simpleButton2"; this.simpleButton2.Size = new System.Drawing.Size(75, 27); this.simpleButton2.TabIndex = 2; this.simpleButton2.Text = "ȡ��(&C)"; // // FormWGBC // this.AcceptButton = this.simpleButton1; this.CancelButton = this.simpleButton2; this.ClientSize = new System.Drawing.Size(303, 179); this.Controls.Add(this.simpleButton2); this.Controls.Add(this.simpleButton1); this.Controls.Add(this.groupBox1); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; this.MaximizeBox = false; this.MinimizeBox = false; this.Name = "FormWGBC"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; this.Text = "�������������ñ�"; this.Load += new System.EventHandler(this.FormWGBC_Load); this.groupBox1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.textEdit1.Properties)).EndInit(); this.ResumeLayout(false); }
private void InitializeComponent() { this.layoutControl1 = new DevExpress.XtraLayout.LayoutControl(); this.btn_OK = new DevExpress.XtraEditors.SimpleButton(); this.labelControl2 = new DevExpress.XtraEditors.LabelControl(); this.labelControl1 = new DevExpress.XtraEditors.LabelControl(); this.layoutControlGroup1 = new DevExpress.XtraLayout.LayoutControlGroup(); this.layoutControlGroup2 = new DevExpress.XtraLayout.LayoutControlGroup(); this.emptySpaceItem1 = new DevExpress.XtraLayout.EmptySpaceItem(); this.layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem(); this.layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem(); this.layoutControlItem3 = new DevExpress.XtraLayout.LayoutControlItem(); this.emptySpaceItem2 = new DevExpress.XtraLayout.EmptySpaceItem(); ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).BeginInit(); this.layoutControl1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem2)).BeginInit(); this.SuspendLayout(); // // layoutControl1 // this.layoutControl1.Controls.Add(this.btn_OK); this.layoutControl1.Controls.Add(this.labelControl2); this.layoutControl1.Controls.Add(this.labelControl1); this.layoutControl1.Dock = System.Windows.Forms.DockStyle.Fill; this.layoutControl1.Location = new System.Drawing.Point(0, 0); this.layoutControl1.Name = "layoutControl1"; this.layoutControl1.Root = this.layoutControlGroup1; this.layoutControl1.Size = new System.Drawing.Size(156, 69); this.layoutControl1.TabIndex = 0; this.layoutControl1.Text = "layoutControl1"; // // btn_OK // this.btn_OK.Location = new System.Drawing.Point(45, 41); this.btn_OK.Name = "btn_OK"; this.btn_OK.Size = new System.Drawing.Size(59, 22); this.btn_OK.StyleController = this.layoutControl1; this.btn_OK.TabIndex = 6; this.btn_OK.Text = "确定"; this.btn_OK.Click += new System.EventHandler(this.btn_OK_Click); // // labelControl2 // this.labelControl2.Location = new System.Drawing.Point(44, 23); this.labelControl2.Name = "labelControl2"; this.labelControl2.Size = new System.Drawing.Size(70, 14); this.labelControl2.StyleController = this.layoutControl1; this.labelControl2.TabIndex = 5; this.labelControl2.Text = "labelControl2"; // // labelControl1 // this.labelControl1.Location = new System.Drawing.Point(44, 5); this.labelControl1.Name = "labelControl1"; this.labelControl1.Size = new System.Drawing.Size(70, 14); this.labelControl1.StyleController = this.layoutControl1; this.labelControl1.TabIndex = 4; this.labelControl1.Text = "labelControl1"; // // layoutControlGroup1 // this.layoutControlGroup1.CustomizationFormText = "layoutControlGroup1"; this.layoutControlGroup1.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True; this.layoutControlGroup1.GroupBordersVisible = false; this.layoutControlGroup1.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { this.layoutControlGroup2 }); this.layoutControlGroup1.Location = new System.Drawing.Point(0, 0); this.layoutControlGroup1.Name = "layoutControlGroup1"; this.layoutControlGroup1.Padding = new DevExpress.XtraLayout.Utils.Padding(0, 0, 0, 0); this.layoutControlGroup1.Size = new System.Drawing.Size(156, 69); this.layoutControlGroup1.Text = "layoutControlGroup1"; this.layoutControlGroup1.TextVisible = false; // // layoutControlGroup2 // this.layoutControlGroup2.CustomizationFormText = "layoutControlGroup2"; this.layoutControlGroup2.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { this.emptySpaceItem1, this.layoutControlItem1, this.layoutControlItem2, this.layoutControlItem3, this.emptySpaceItem2 }); this.layoutControlGroup2.Location = new System.Drawing.Point(0, 0); this.layoutControlGroup2.Name = "layoutControlGroup2"; this.layoutControlGroup2.Padding = new DevExpress.XtraLayout.Utils.Padding(0, 0, 0, 0); this.layoutControlGroup2.Size = new System.Drawing.Size(156, 69); this.layoutControlGroup2.Text = "layoutControlGroup2"; this.layoutControlGroup2.TextVisible = false; // // emptySpaceItem1 // this.emptySpaceItem1.AllowHotTrack = false; this.emptySpaceItem1.CustomizationFormText = "emptySpaceItem1"; this.emptySpaceItem1.Location = new System.Drawing.Point(103, 36); this.emptySpaceItem1.Name = "emptySpaceItem1"; this.emptySpaceItem1.Size = new System.Drawing.Size(47, 30); this.emptySpaceItem1.Text = "emptySpaceItem1"; this.emptySpaceItem1.TextSize = new System.Drawing.Size(0, 0); // // layoutControlItem1 // this.layoutControlItem1.Control = this.labelControl1; this.layoutControlItem1.CustomizationFormText = "面积:"; this.layoutControlItem1.Location = new System.Drawing.Point(0, 0); this.layoutControlItem1.Name = "layoutControlItem1"; this.layoutControlItem1.Size = new System.Drawing.Size(150, 18); this.layoutControlItem1.Text = "面积:"; this.layoutControlItem1.TextSize = new System.Drawing.Size(36, 14); // // layoutControlItem2 // this.layoutControlItem2.Control = this.labelControl2; this.layoutControlItem2.CustomizationFormText = "周长:"; this.layoutControlItem2.Location = new System.Drawing.Point(0, 18); this.layoutControlItem2.Name = "layoutControlItem2"; this.layoutControlItem2.Size = new System.Drawing.Size(150, 18); this.layoutControlItem2.Text = "周长:"; this.layoutControlItem2.TextSize = new System.Drawing.Size(36, 14); // // layoutControlItem3 // this.layoutControlItem3.Control = this.btn_OK; this.layoutControlItem3.CustomizationFormText = "layoutControlItem3"; this.layoutControlItem3.Location = new System.Drawing.Point(40, 36); this.layoutControlItem3.Name = "layoutControlItem3"; this.layoutControlItem3.Size = new System.Drawing.Size(63, 27); this.layoutControlItem3.Text = "layoutControlItem3"; this.layoutControlItem3.TextSize = new System.Drawing.Size(0, 0); this.layoutControlItem3.TextToControlDistance = 0; this.layoutControlItem3.TextVisible = false; // // emptySpaceItem2 // this.emptySpaceItem2.AllowHotTrack = false; this.emptySpaceItem2.CustomizationFormText = "emptySpaceItem2"; this.emptySpaceItem2.Location = new System.Drawing.Point(0, 36); this.emptySpaceItem2.Name = "emptySpaceItem2"; this.emptySpaceItem2.Size = new System.Drawing.Size(40, 30); this.emptySpaceItem2.Text = "emptySpaceItem2"; this.emptySpaceItem2.TextSize = new System.Drawing.Size(0, 0); // // FrmArea // this.ClientSize = new System.Drawing.Size(156, 69); this.Controls.Add(this.layoutControl1); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow; this.Name = "FrmArea"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "几何计算"; this.TopMost = true; ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).EndInit(); this.layoutControl1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem2)).EndInit(); this.ResumeLayout(false); }
//Bắt sự kiên click cho btn trong menu con trong form main private void bt_Click(object sender, EventArgs e) { SimpleButton sd = new SimpleButton(); sd = (SimpleButton)sender; if (sd.Text == rdn) { this.Close(); frmDN.Show(); } if (sd.Text == dmk) { frmDMK.ShowDialog(); btnHeThong.PerformClick(); } if (sd.Text == ttct) { frmThongTinCTy frm = new frmThongTinCTy(); GoiShow(frm); } if (sd.Text == ttsp) { frmSanPham frm = new frmSanPham(); GoiShow(frm); } if (sd.Text == nk) { frmPhieuNhap frm = new frmPhieuNhap(); GoiShow(frm); } if (sd.Text == xk) { frmPhieuXuat frm = new frmPhieuXuat(); GoiShow(frm); } if (sd.Text == ck) { frmChuyenKho frm = new frmChuyenKho(); GoiShow(frm); } if (sd.Text == lsp) { frmLoaiSanPham frm = new frmLoaiSanPham(); GoiShow(frm); } if (sd.Text == nsx) { frmNhaSanXuat frm = new frmNhaSanXuat(); GoiShow(frm); } if (sd.Text == ncc) { frmNhaCungCap frm = new frmNhaCungCap(); GoiShow(frm); } if (sd.Text == ttkh) { frmKhachHang frm = new frmKhachHang(); GoiShow(frm); } if (sd.Text == nv) { frmNhanVien frm = new frmNhanVien(); GoiShow(frm); } if (sd.Text == ttkm) { frmThemNguoiDung frm = new frmThemNguoiDung(); GoiShow(frm); } if (sd.Text == kho) { frmKhoHang frm = new frmKhoHang(); GoiShow(frm); } if (sd.Text == dsnk) { frmDSPhieuNhap frm = new frmDSPhieuNhap(); GoiShow(frm); } if (sd.Text == dsxk) { frmDSPhieuXuat frm = new frmDSPhieuXuat(); GoiShow(frm); } if (sd.Text == bcnxt) { frmThongKeTheoKho frm = new frmThongKeTheoKho(); GoiShow(frm); } if (sd.Text == rpdm) { frmReportTheoMuc frm = new frmReportTheoMuc(); GoiShow(frm); } }
private void btnCmd_Click(object pSender, EventArgs pEventArgs) { SimpleButton pCmd = pSender as SimpleButton; int Acitve_Row = 0; string sCls = pCmd.Name.Substring(6, 2); DataTable checkSource = _gdMAIN.DataSource as DataTable; if (checkSource == null) { return; } switch (sCls) { case "10": // 최상위 if (_gdMAIN_VIEW.FocusedRowHandle <= _gdMAIN_VIEW.RowCount - 1) { _gdMAIN_VIEW.FocusedRowHandle = 0; Acitve_Row = _gdMAIN_VIEW.FocusedRowHandle; _gdMAIN_VIEW.SelectRow(Acitve_Row); } break; case "20": // 위로 if (_gdMAIN_VIEW.FocusedRowHandle <= _gdMAIN_VIEW.RowCount - 1) { _gdMAIN_VIEW.FocusedRowHandle--; Acitve_Row = _gdMAIN_VIEW.FocusedRowHandle; _gdMAIN_VIEW.SelectRow(Acitve_Row); } break; case "30": // 선택 _dtreturn = new DataTable(); _dtreturn.Columns.Add("PRODUCTION_ORDER_ID", typeof(string)); _dtreturn.Columns.Add("PRODUCTION_ORDER_DATE", typeof(string)); _dtreturn.Columns.Add("CONTRACT_NUMBER", typeof(string)); _dtreturn.Columns.Add("ORDER_NUMBER", typeof(string)); _dtreturn.Columns.Add("PART_CODE", typeof(string)); _dtreturn.Columns.Add("VEND_PART_CODE", typeof(string)); _dtreturn.Columns.Add("PART_NAME", typeof(string)); _dtreturn.Columns.Add("PART_HIGH", typeof(string)); _dtreturn.Columns.Add("PART_MIDDLE", typeof(string)); _dtreturn.Columns.Add("PART_LOW", typeof(string)); _dtreturn.Columns.Add("PRODUCTION_ORDER_QTY", typeof(string)); _dtreturn.Columns.Add("PRODUCTION_OK_QTY", typeof(string)); _dtreturn.Columns.Add("PRODUCTION_NG_QTY", typeof(string)); _dtreturn.Columns.Add("PRODUCTION_PASS_QTY", typeof(string)); _dtreturn.Columns.Add("REFERENCE_ID", typeof(string)); _dtreturn.Columns.Add("COMPLETE_YN", typeof(string)); _dtreturn.Columns.Add("USE_YN", typeof(string)); if (_dtreturn != null) { _dtreturn.Rows.Add(new Object[] { _gdMAIN_VIEW.GetFocusedRowCellValue("PRODUCTION_ORDER_ID").ToString(), _gdMAIN_VIEW.GetFocusedRowCellValue("PRODUCTION_ORDER_DATE").ToString(), _gdMAIN_VIEW.GetFocusedRowCellValue("CONTRACT_NUMBER").ToString(), _gdMAIN_VIEW.GetFocusedRowCellValue("ORDER_NUMBER").ToString(), _gdMAIN_VIEW.GetFocusedRowCellValue("PART_CODE").ToString(), _gdMAIN_VIEW.GetFocusedRowCellValue("VEND_PART_CODE").ToString(), _gdMAIN_VIEW.GetFocusedRowCellValue("PART_NAME").ToString(), _gdMAIN_VIEW.GetFocusedRowCellValue("PART_HIGH").ToString(), _gdMAIN_VIEW.GetFocusedRowCellValue("PART_MIDDLE").ToString(), _gdMAIN_VIEW.GetFocusedRowCellValue("PART_LOW").ToString(), _gdMAIN_VIEW.GetFocusedRowCellValue("PRODUCTION_ORDER_QTY").ToString(), _gdMAIN_VIEW.GetFocusedRowCellValue("PRODUCTION_OK_QTY").ToString(), _gdMAIN_VIEW.GetFocusedRowCellValue("PRODUCTION_NG_QTY").ToString(), _gdMAIN_VIEW.GetFocusedRowCellValue("PRODUCTION_PASS_QTY").ToString(), _gdMAIN_VIEW.GetFocusedRowCellValue("REFERENCE_ID").ToString(), _gdMAIN_VIEW.GetFocusedRowCellValue("COMPLETE_YN").ToString(), _gdMAIN_VIEW.GetFocusedRowCellValue("USE_YN").ToString() }); } Close(); break; case "40": //아래로 if (_gdMAIN_VIEW.FocusedRowHandle <= _gdMAIN_VIEW.RowCount - 1) { _gdMAIN_VIEW.FocusedRowHandle++; Acitve_Row = _gdMAIN_VIEW.FocusedRowHandle; _gdMAIN_VIEW.SelectRow(Acitve_Row); } break; case "50": //최하단 if (_gdMAIN_VIEW.FocusedRowHandle <= _gdMAIN_VIEW.RowCount - 1) { _gdMAIN_VIEW.FocusedRowHandle = _gdMAIN_VIEW.RowCount - 1; Acitve_Row = _gdMAIN_VIEW.FocusedRowHandle; _gdMAIN_VIEW.SelectRow(Acitve_Row); } break; default: break; } }