Exemple #1
0
 private void open_frm_UserAdd(object sender, EventArgs e)
 {
     using (frm_UserAdd UserAdd = new frm_UserAdd())
     {
         UserAdd.ShowDialog();
         refreshPage(UserAdd, e);
     }
 }
Exemple #2
0
 private void lbl_NewUser_Click(object sender, EventArgs e)
 {
     using (frm_UserAdd UserAdd = new frm_UserAdd())
     {
         UserAdd.ShowDialog();
         if (UserAdd.userAdded == true)
         {
             Project project = new Project();
             ds_Project = project.refreshProjectUserTables(ds_Project);
             setVariablesAndControl(ProjectNumber, ds_Project);
         }
     }
 }
Exemple #3
0
 private void btn_UserAdd_Click(object sender, EventArgs e)
 {
     using (frm_UserAdd UserAdd = new frm_UserAdd())
     {
         UserAdd.ShowDialog();
         if (UserAdd.userAdded == true)
         {
             // Need to just refresh user datasources and controls bound to them, not entire dataset & form.
             Project project = new Project();
             // First refresh dataset
             ds_Project = project.refreshProjectUserTables(ds_Project);
             // Then refresh data bindings
             set_ProjectAddUser();
         }
     }
 }
Exemple #4
0
        private void btn_AddUser_Click(object sender, EventArgs e)
        {
            frm_UserAdd UserAdd = new frm_UserAdd();

            UserAdd.Show();
        }