Пример #1
0
 private void btnAdd_Click(object sender, EventArgs e)
 {
     frmUserDetails fmUserDetails = new frmUserDetails();
     fmUserDetails.Op = "add";
     fmUserDetails.userList = this.userList;
     fmUserDetails.ShowDialog(this);
 }
Пример #2
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            frmUserDetails fmUserDetails = new frmUserDetails();

            fmUserDetails.Op       = "add";
            fmUserDetails.userList = this.userList;
            fmUserDetails.ShowDialog(this);
        }
Пример #3
0
 private void btnEdit_Click(object sender, EventArgs e)
 {
     if (gvUser.CurrentRow.Index >= 0)
     {
         frmUserDetails fmUserDetails = new frmUserDetails();
         fmUserDetails.Op           = "edit";
         fmUserDetails.SelectedUser = userSelected;
         fmUserDetails.ShowDialog(this);
     }
 }
Пример #4
0
 private void btnEdit_Click(object sender, EventArgs e)
 {
     if (gvUser.CurrentRow.Index >= 0)
     {
         frmUserDetails fmUserDetails = new frmUserDetails();
         fmUserDetails.Op = "edit";
         fmUserDetails.SelectedUser = userSelected;
         fmUserDetails.ShowDialog(this);
     }
 }