Пример #1
0
        private void LoadAllUser()
        {
            DataTable dataTable = TableUsersManage.QueryAllUsers();

            this.dataGridView1.DataSource = dataTable;
            FormatDataGridView(this.dataGridView1);
        }
Пример #2
0
        private void LoadAllUsers()
        {
            this.Users.Clear();
            this.ComboBoxSeller.Items.Clear();

            this.ComboBoxSeller.Items.Add(AllUsers);

            DataTable dataTable = TableUsersManage.QueryAllUsers();

            foreach (DataRow dataRow in dataTable.Rows)
            {
                var      item = dataRow.ToExpression <UserInfo>();
                UserInfo user = item(dataRow);
                this.Users.Add(user);

                this.ComboBoxSeller.Items.Add(user.Name);
            }

            this.ComboBoxSeller.Text = AllUsers;
            this.UserName            = AllUsers;

            RefreshCustomer();
        }