private void RefreshItems(object sender, EventArgs e) { var biz = new RoleBiz(); dataGridView.DataSource = biz.LoadItems(); dataGridView.Refresh(); }
public RoleView(User user) { InitializeComponent(); currentUser = user; dataGridView.AutoGenerateColumns = false; var biz = new RoleBiz(); dataGridView.DataSource = biz.LoadItems(); dataGridView.Refresh(); }
private void LoadType() { drlType.Items.Clear(); var biz = new RoleBiz(); var items = biz.LoadItems(); foreach (var item in items) { drlType.Items.Add(item.Name); } }
private void LoadType() { drlType.Items.Clear(); var biz = new RoleBiz(); var items = biz.LoadItems(); foreach(var item in items) { drlType.Items.Add(item.Name); } }