示例#1
0
 override protected void DeleteCurrentRow()
 {
     if (baseDataGridView.SelectedCells[1].Value.ToString() == "root")
     {
         MessageBox.Show("root用户不能删除!!");
     }
     else
     {
         BllACLUser.DelCell((long)baseDataGridView.SelectedCells[0].Value);
     }
 }
示例#2
0
        private void FrmACLUser_Load(object sender, EventArgs e)
        {
            string    s         = this.Tag.ToString().Split('.')[1];
            DataTable dataTable = BllACLUser.GetUserActions(long.Parse(s));

            CreateActionButtons(ref dataTable);

            AsmName = "TDAccessControl";
            SItemId = "Id";

            reloadDataGridView();
            baseDataGridView.Columns[SItemId].Visible = false;
        }
示例#3
0
 protected override void reloadDataGridView()
 {
     myTable = BllACLUser.GetMainOptrDataTable();
     baseBindingSource.DataSource = myTable;
     baseDataGridView.DataSource  = baseBindingSource;
 }