コード例 #1
0
        private void txtCmApprover_DoubleClick(object sender, EventArgs e)
        {
            UserSearchForm form = new UserSearchForm();

            if (form.ShowDialog() == DialogResult.OK)
            {
                txtCmApprover.Text = GlobalService.SelectedUser;
            }
        }
コード例 #2
0
 private void dgvPermission_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.ColumnIndex == 1)
     {
         UserSearchForm form = new UserSearchForm();
         if (form.ShowDialog() == DialogResult.OK)
         {
             dgvPermission.CurrentCell.Value = GlobalService.SelectedUser;
             dgvPermission.CurrentCell       = dgvPermission[2, dgvPermission.CurrentRow.Index];
         }
     }
 }