示例#1
0
        private void SelectUserButton_Click(object sender, EventArgs e)
        {
            UserListForm userListForm = new UserListForm(ShowMode.Select);

            if (userListForm.ShowDialog() == DialogResult.OK)
            {
                SetUser(userListForm.SelectedUserId);
            }
        }
        private void SelectUserButton_Click(object sender, EventArgs e)
        {
            UserListForm userListForm = new UserListForm(ShowMode.Select);

            if (userListForm.ShowDialog() == DialogResult.OK)
            {
                Dac dac = new Dac();
                Dictionary <string, object> values = dac.Select("User", "Id", userListForm.SelectedUserId).Result;
                UserNameTextBox.Text = (string)values["UserName"];
                this.userId          = userListForm.SelectedUserId;
            }
        }