Пример #1
0
 public void SelectRole()
 {
     if (this.editStatus)
     {
         FrmSelectRole frm = new FrmSelectRole();
         frm.SetDataSource(this.RoleList, this.gcRole.DataSource as List <BDictRole>);
         if (frm.ShowDialog() == DialogResult.OK)
         {
             List <BDictRole> new_selected = frm.RoleSelected;
             gcRole.DataSource = new_selected;
         }
         frm.Dispose();
     }
 }
Пример #2
0
        private void selectRole()
        {
            if (this.roleList == null)
            {
                this.roleList = CommonDataHelper.GetRoleAll();
            }

            FrmSelectRole frm = new FrmSelectRole();

            frm.SetDataSource(this.roleList, this.gcRole.DataSource as List <BDictRole>);
            if (frm.ShowDialog() == DialogResult.OK)
            {
                List <BDictRole> new_selected = frm.RoleSelected;
                gcRole.DataSource = new_selected;
            }
            frm.Dispose();
        }