private void bttOK_Click(object sender, EventArgs e) { RSLib.COSecurity sec = new RSLib.COSecurity(); CBUser u = new CBUser(); sec.InitAppSettings(); u.Load(sec.UserID); if (u.IsAdministrator == true || u.IsEngineerAdmin == true) { if (mbItemChanged == true && IsValid() == true) { LoadScreenToObject(); moProj.Save(); SaveBudgets(moProj.ID); newPM = moProj.ProjMngrID; if (mbPMChanged == true) { if (IsNewProject == true) { Save_Summary_NewProject(newPM, moProj.ID); } else { Save_PMUpdate(previousPM, newPM, moProj.ID); } } else { } if (OnNewItem != null) { OnNewItem(moProj.ID); } } else { MessageBox.Show("No change Allowed"); return; } } this.Close(); }