예제 #1
0
        private void RefreshItems(object sender, EventArgs e)
        {
            var biz = new RoleBiz();

            dataGridView.DataSource = biz.LoadItems();
            dataGridView.Refresh();
        }
예제 #2
0
        public RoleView(User user)
        {
            InitializeComponent();

            currentUser = user;

            dataGridView.AutoGenerateColumns = false;

            var biz = new RoleBiz();
            dataGridView.DataSource = biz.LoadItems();
            dataGridView.Refresh();
        }
예제 #3
0
        private void LoadType()
        {
            drlType.Items.Clear();

            var biz   = new RoleBiz();
            var items = biz.LoadItems();

            foreach (var item in items)
            {
                drlType.Items.Add(item.Name);
            }
        }
예제 #4
0
        public RoleView(User user)
        {
            InitializeComponent();

            currentUser = user;

            dataGridView.AutoGenerateColumns = false;

            var biz = new RoleBiz();

            dataGridView.DataSource = biz.LoadItems();
            dataGridView.Refresh();
        }
예제 #5
0
        private void LoadType()
        {
            drlType.Items.Clear();

            var biz = new RoleBiz();
            var items = biz.LoadItems();
            foreach(var item in items)
            {
                drlType.Items.Add(item.Name);
            }
        }
예제 #6
0
 private void RefreshItems(object sender, EventArgs e)
 {
     var biz = new RoleBiz();
     dataGridView.DataSource = biz.LoadItems();
     dataGridView.Refresh();
 }