|
@@ -28,23 +28,10 @@
|
|
|
/// </summary>
|
|
|
private void InitializeComponent()
|
|
|
{
|
|
|
- this.components = new System.ComponentModel.Container();
|
|
|
- System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(CtrlTarget));
|
|
|
this.gridTar = new DevExpress.XtraGrid.GridControl();
|
|
|
this.gridView1 = new DevExpress.XtraGrid.Views.Grid.GridView();
|
|
|
- this.barManager1 = new DevExpress.XtraBars.BarManager(this.components);
|
|
|
- this.barDockControlTop = new DevExpress.XtraBars.BarDockControl();
|
|
|
- this.barDockControlBottom = new DevExpress.XtraBars.BarDockControl();
|
|
|
- this.barDockControlLeft = new DevExpress.XtraBars.BarDockControl();
|
|
|
- this.barDockControlRight = new DevExpress.XtraBars.BarDockControl();
|
|
|
- this.btnAdd = new DevExpress.XtraBars.BarButtonItem();
|
|
|
- this.btnDel = new DevExpress.XtraBars.BarButtonItem();
|
|
|
- this.btnEdit = new DevExpress.XtraBars.BarButtonItem();
|
|
|
- this.popupMenu1 = new DevExpress.XtraBars.PopupMenu(this.components);
|
|
|
((System.ComponentModel.ISupportInitialize)(this.gridTar)).BeginInit();
|
|
|
((System.ComponentModel.ISupportInitialize)(this.gridView1)).BeginInit();
|
|
|
- ((System.ComponentModel.ISupportInitialize)(this.barManager1)).BeginInit();
|
|
|
- ((System.ComponentModel.ISupportInitialize)(this.popupMenu1)).BeginInit();
|
|
|
this.SuspendLayout();
|
|
|
//
|
|
|
// gridTar
|
|
@@ -63,106 +50,18 @@
|
|
|
this.gridView1.GridControl = this.gridTar;
|
|
|
this.gridView1.Name = "gridView1";
|
|
|
this.gridView1.RowCellStyle += new DevExpress.XtraGrid.Views.Grid.RowCellStyleEventHandler(this.gridView1_RowCellStyle);
|
|
|
- this.gridView1.PopupMenuShowing += new DevExpress.XtraGrid.Views.Grid.PopupMenuShowingEventHandler(this.gridView1_PopupMenuShowing);
|
|
|
- this.gridView1.CustomDrawEmptyForeground += new DevExpress.XtraGrid.Views.Base.CustomDrawEventHandler(this.gridView1_CustomDrawEmptyForeground);
|
|
|
- this.gridView1.CustomColumnDisplayText += new DevExpress.XtraGrid.Views.Base.CustomColumnDisplayTextEventHandler(this.gridView1_CustomColumnDisplayText);
|
|
|
- //
|
|
|
- // barManager1
|
|
|
- //
|
|
|
- this.barManager1.DockControls.Add(this.barDockControlTop);
|
|
|
- this.barManager1.DockControls.Add(this.barDockControlBottom);
|
|
|
- this.barManager1.DockControls.Add(this.barDockControlLeft);
|
|
|
- this.barManager1.DockControls.Add(this.barDockControlRight);
|
|
|
- this.barManager1.Form = this;
|
|
|
- this.barManager1.Items.AddRange(new DevExpress.XtraBars.BarItem[] {
|
|
|
- this.btnAdd,
|
|
|
- this.btnDel,
|
|
|
- this.btnEdit});
|
|
|
- this.barManager1.MaxItemId = 3;
|
|
|
- //
|
|
|
- // 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(647, 0);
|
|
|
- //
|
|
|
- // barDockControlBottom
|
|
|
- //
|
|
|
- this.barDockControlBottom.CausesValidation = false;
|
|
|
- this.barDockControlBottom.Dock = System.Windows.Forms.DockStyle.Bottom;
|
|
|
- this.barDockControlBottom.Location = new System.Drawing.Point(0, 422);
|
|
|
- this.barDockControlBottom.Manager = this.barManager1;
|
|
|
- this.barDockControlBottom.Size = new System.Drawing.Size(647, 0);
|
|
|
- //
|
|
|
- // barDockControlLeft
|
|
|
- //
|
|
|
- this.barDockControlLeft.CausesValidation = false;
|
|
|
- this.barDockControlLeft.Dock = System.Windows.Forms.DockStyle.Left;
|
|
|
- this.barDockControlLeft.Location = new System.Drawing.Point(0, 0);
|
|
|
- this.barDockControlLeft.Manager = this.barManager1;
|
|
|
- this.barDockControlLeft.Size = new System.Drawing.Size(0, 422);
|
|
|
- //
|
|
|
- // barDockControlRight
|
|
|
- //
|
|
|
- this.barDockControlRight.CausesValidation = false;
|
|
|
- this.barDockControlRight.Dock = System.Windows.Forms.DockStyle.Right;
|
|
|
- this.barDockControlRight.Location = new System.Drawing.Point(647, 0);
|
|
|
- this.barDockControlRight.Manager = this.barManager1;
|
|
|
- this.barDockControlRight.Size = new System.Drawing.Size(0, 422);
|
|
|
- //
|
|
|
- // btnAdd
|
|
|
- //
|
|
|
- this.btnAdd.Caption = "添加";
|
|
|
- this.btnAdd.Id = 0;
|
|
|
- this.btnAdd.ImageOptions.SvgImage = ((DevExpress.Utils.Svg.SvgImage)(resources.GetObject("btnAdd.ImageOptions.SvgImage")));
|
|
|
- this.btnAdd.Name = "btnAdd";
|
|
|
- this.btnAdd.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.btnAdd_ItemClick);
|
|
|
- //
|
|
|
- // btnDel
|
|
|
- //
|
|
|
- this.btnDel.Caption = "删除";
|
|
|
- this.btnDel.Id = 1;
|
|
|
- this.btnDel.ImageOptions.SvgImage = ((DevExpress.Utils.Svg.SvgImage)(resources.GetObject("btnDel.ImageOptions.SvgImage")));
|
|
|
- this.btnDel.Name = "btnDel";
|
|
|
- this.btnDel.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.btnDel_ItemClick);
|
|
|
- //
|
|
|
- // btnEdit
|
|
|
- //
|
|
|
- this.btnEdit.Caption = "编辑";
|
|
|
- this.btnEdit.Id = 2;
|
|
|
- this.btnEdit.ImageOptions.SvgImage = ((DevExpress.Utils.Svg.SvgImage)(resources.GetObject("btnEdit.ImageOptions.SvgImage")));
|
|
|
- this.btnEdit.Name = "btnEdit";
|
|
|
- this.btnEdit.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.btnEdit_ItemClick);
|
|
|
- //
|
|
|
- // popupMenu1
|
|
|
- //
|
|
|
- this.popupMenu1.LinksPersistInfo.AddRange(new DevExpress.XtraBars.LinkPersistInfo[] {
|
|
|
- new DevExpress.XtraBars.LinkPersistInfo(this.btnAdd),
|
|
|
- new DevExpress.XtraBars.LinkPersistInfo(this.btnEdit),
|
|
|
- new DevExpress.XtraBars.LinkPersistInfo(this.btnDel)});
|
|
|
- this.popupMenu1.Manager = this.barManager1;
|
|
|
- this.popupMenu1.Name = "popupMenu1";
|
|
|
//
|
|
|
// CtrlTarget
|
|
|
//
|
|
|
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F);
|
|
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
|
|
this.Controls.Add(this.gridTar);
|
|
|
- this.Controls.Add(this.barDockControlLeft);
|
|
|
- this.Controls.Add(this.barDockControlRight);
|
|
|
- this.Controls.Add(this.barDockControlBottom);
|
|
|
- this.Controls.Add(this.barDockControlTop);
|
|
|
this.Name = "CtrlTarget";
|
|
|
this.Size = new System.Drawing.Size(647, 422);
|
|
|
this.Load += new System.EventHandler(this.CtrlSat_Load);
|
|
|
((System.ComponentModel.ISupportInitialize)(this.gridTar)).EndInit();
|
|
|
((System.ComponentModel.ISupportInitialize)(this.gridView1)).EndInit();
|
|
|
- ((System.ComponentModel.ISupportInitialize)(this.barManager1)).EndInit();
|
|
|
- ((System.ComponentModel.ISupportInitialize)(this.popupMenu1)).EndInit();
|
|
|
this.ResumeLayout(false);
|
|
|
- this.PerformLayout();
|
|
|
|
|
|
}
|
|
|
|
|
@@ -170,14 +69,5 @@
|
|
|
|
|
|
private DevExpress.XtraGrid.GridControl gridTar;
|
|
|
private DevExpress.XtraGrid.Views.Grid.GridView gridView1;
|
|
|
- private DevExpress.XtraBars.BarManager barManager1;
|
|
|
- private DevExpress.XtraBars.BarDockControl barDockControlTop;
|
|
|
- private DevExpress.XtraBars.BarDockControl barDockControlBottom;
|
|
|
- private DevExpress.XtraBars.BarDockControl barDockControlLeft;
|
|
|
- private DevExpress.XtraBars.BarDockControl barDockControlRight;
|
|
|
- private DevExpress.XtraBars.BarButtonItem btnAdd;
|
|
|
- private DevExpress.XtraBars.BarButtonItem btnDel;
|
|
|
- private DevExpress.XtraBars.PopupMenu popupMenu1;
|
|
|
- private DevExpress.XtraBars.BarButtonItem btnEdit;
|
|
|
}
|
|
|
}
|