/// <summary> /// 新增模块 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnAdd_Click(object sender, EventArgs e) { Frm_Module_Oper frmEdit = new Frm_Module_Oper(null); frmEdit.ShowDialog(); BindData(); }
private void superGridControl1_CellMouseDown(object sender, GridCellMouseEventArgs e) { SysModule sysModule = Dbers.GetInstance().SelfDber.Get <SysModule>(superGridControl1.PrimaryGrid.GetCell(e.GridCell.GridRow.Index, superGridControl1.PrimaryGrid.Columns["clmId"].ColumnIndex).Value.ToString()); if (sysModule != null) { this.CurrSysModule = sysModule; BindDataRes(); } switch (superGridControl1.PrimaryGrid.Columns[e.GridCell.ColumnIndex].Name) { case "clmEdit": Frm_Module_Oper frmEdit = new Frm_Module_Oper(sysModule); frmEdit.ShowDialog(); BindData(); break; } }