예제 #1
0
 /// <summary>
 /// This method handles making sure all the sub-user controls have all there data saved.
 /// If they do not we will prompt the user to save the information.
 ///
 /// Dev Note: This could potentially be a inconvenience to the users if they get prompted
 /// for 6 different user controls.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void frmCurrentAndArchivedProjects_FormClosing(object sender, FormClosingEventArgs e)
 {
     ascxProjects.CheckForUnSavedDataAndPromptUserToSave();
     ascxTargets.checkForUnSavedDataAndPromptForSave();
     ascxFindings.checkForUnsavedData();
     ascxFindings.axAuthentic_Findings.Dispose();
     while (ascxFindings.axAuthentic_Findings.Disposing)
     {
     }
     ascxExecutiveSummary.checkForUnSavedDataAndPromptForSave();
 }