Esempio n. 1
0
        private void superGridControl2_CellMouseDown(object sender, GridCellMouseEventArgs e)
        {
            SysResource entity = Dbers.GetInstance().SelfDber.Get <SysResource>(superGridControl2.PrimaryGrid.GetCell(e.GridCell.GridRow.Index, superGridControl2.PrimaryGrid.Columns["clmId"].ColumnIndex).Value.ToString());

            switch (superGridControl2.PrimaryGrid.Columns[e.GridCell.ColumnIndex].Name)
            {
            case "clmEdit":
                Frm_Resource_Oper frmEdit = new Frm_Resource_Oper(entity);
                frmEdit.ShowDialog();
                BindData();
                break;
            }
        }
Esempio n. 2
0
        /// <summary>
        /// 新增模块功能
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnInsertRes_Click(object sender, EventArgs e)
        {
            if (this.CurrSysModule == null)
            {
                MessageBoxEx.Show("请先选择一个模块菜单", "操作提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
                return;
            }
            Frm_Resource_Oper frm = new Frm_Resource_Oper(this.CurrSysModule);

            frm.ShowDialog();

            BindData();
        }