/// <summary> /// When the exit button is pressed, this hook calls the DoCloseWithSave method, which handles the /// state of the spreadsheet. /// </summary> private void HandleWindowExit() { spreadsheetView.DoCloseWithSave(model.Changed); }