Exemplo n.º 1
0
        /// <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();
        }
Exemplo n.º 2
0
        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;
            }
        }