private ToolStripSeparator menuItemSeparator3 = new ToolStripSeparator(); // ·Ö¸ô·û 3 #region KJTpStation_Menu ¹¹Ô캯Êý /// <summary> /// ¹¹Ô캯Êý /// </summary> public KJTpStation_Menu(int index, KJ128A.BatmanAPI.IFrmMain frm) { frmMain = frm; Index = index; InitMenu(); }
/// <summary> /// 构造函数 /// </summary> /// <param name="index"></param> /// <param name="frm"></param> public DGStation(int index, KJ128A.BatmanAPI.IFrmMain frm) { Index = index; menuStation = new KJTpStation_Menu(index, frm); ReadOnly = true; Dock = DockStyle.Fill; AllowUserToAddRows = false; AllowUserToDeleteRows = false; AllowUserToResizeRows = false; RowHeadersVisible = false; SelectionMode = DataGridViewSelectionMode.FullRowSelect; //this.CellMouseClick += new DataGridViewCellMouseEventHandler(DGStation_CellMouseClick); this.CellMouseDown += new DataGridViewCellMouseEventHandler(DGStation_CellMouseClick); this.ContextMenuStrip = menuStation; }