public void Delete() { if (ConfirmationDialog.Make("Delete File", "Are you sure you want to delete this save file?")) { Deleted?.Invoke(new SaveEventArgs(this)); } }
public static bool Make(string title, string description) { var dialog = new ConfirmationDialog(title, description); return(dialog.ShowDialog() ?? false); }