private void open_frm_UserAdd(object sender, EventArgs e) { using (frm_UserAdd UserAdd = new frm_UserAdd()) { UserAdd.ShowDialog(); refreshPage(UserAdd, e); } }
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); } } }
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(); } } }
private void btn_AddUser_Click(object sender, EventArgs e) { frm_UserAdd UserAdd = new frm_UserAdd(); UserAdd.Show(); }