protected override void reloadDataGridView() { var actionTable = BllACLAction.GetActions(); baseBindingSource.DataSource = actionTable; baseDataGridView.DataSource = baseBindingSource; }
private void FrmACLAction_Load(object sender, EventArgs e) { splitContainer1.Panel1Collapsed = true; string s = Tag.ToString().Split('.')[1]; DataTable dataTable = BllACLAction.GetActions(long.Parse(s)); CreateActionButtons(); this.AsmName = "XSolo.ModuleActions"; IdNameInTable = "Id"; reloadDataGridView(); baseDataGridView.Columns["Id"].Visible = false; }
private void FrmACLModule_Load(object sender, EventArgs e) { string s = Tag.ToString().Split('.')[1]; DataTable dataTable = BllACLAction.GetActions(); CreateActionButtons(ref dataTable); this.AsmName = "TDAccessControl"; SItemId = "Id"; FormTreeRootName = "所有窗体类型"; IsTree = true; this.baseTreeView.Nodes.Clear(); reloadDataGridView(); this.CreateTree(ref myTable); baseDataGridView.Columns[SItemId].Visible = false; baseDataGridView.Columns["父窗体"].Visible = false; }