示例#1
0
 /// <summary>
 /// Event to close file, prompts dialog if not saved
 /// </summary>
 /// <param name="e"></param>
 private void HandleCloseFile(FormClosingEventArgs e)
 {
     e.Cancel = true;
     if (sheet.Changed)
     {
         window.ShowFileNotSavedDialog(e);
     }
     else
     {
         e.Cancel = false;
     }
 }