/// <summary> /// Confirms that file should be closed</summary> /// <param name="message">Confirmation message</param> /// <returns>Dialog result</returns> public FileDialogResult ConfirmFileClose(string message) { ConfirmationDialog dialog = new ConfirmationDialog("Close".Localize("Close file"), message); dialog.YesButtonText = "&Save".Localize("The '&' is optional and means that Alt+S is the keyboard shortcut on this button"); dialog.NoButtonText = "&Discard".Localize("The '&' is optional and means that Alt+D is the keyboard shortcut on this button"); DialogResult result = dialog.ShowDialog(GetDialogOwner()); dialog.Dispose(); return(DialogResultToFileDialogResult(result)); }