Ejemplo n.º 1
0
 /// <summary>
 /// A private Event Handler that is called whenever the CloseEvent is fired.
 /// </summary>
 private void HandleCloseEvent()
 {
     // If the spreadsheet has been changed and hasn't been saved, begin the process the for
     // closing without saving.
     if (spreadsheet.Changed)
     {
         window.BeginCloseWithoutSave();
         return;
     }
     // Otherwise, just close the current window.
     window.DoClose();
 }