diff --git a/test/Eto.Test/Sections/Dialogs/FileDialogSection.cs b/test/Eto.Test/Sections/Dialogs/FileDialogSection.cs index a9e1973215..906a58bcd5 100644 --- a/test/Eto.Test/Sections/Dialogs/FileDialogSection.cs +++ b/test/Eto.Test/Sections/Dialogs/FileDialogSection.cs @@ -90,12 +90,7 @@ Control OpenFile() var dialog = new OpenFileDialog(); SetAttributes(dialog); var result = dialog.ShowDialog(ParentWindow); - if (result == DialogResult.Ok) - { - Log.Write(dialog, "Result: {0}, FileName: {1}\nFiles: {2}", result, dialog.FileName, string.Join(", ", dialog.Filenames)); - } - else - Log.Write(dialog, "Result: {0}", result); + Log.Write(dialog, "Result: {0}, FileName: {1}\nFiles: {2}", result, dialog.FileName, string.Join(", ", dialog.Filenames)); }; return button; } @@ -120,12 +115,7 @@ Control OpenFileWithFilters() SetAttributes(dialog); var result = dialog.ShowDialog(ParentWindow); - if (result == DialogResult.Ok) - { - Log.Write(dialog, "Result: {0}, CurrentFilter: {1}, FileName: {2}\nFiles: {3}", result, dialog.CurrentFilter, dialog.FileName, string.Join(", ", dialog.Filenames)); - } - else - Log.Write(dialog, "Result: {0}", result); + Log.Write(dialog, "Result: {0}, CurrentFilter: {1}, FileName: {2}\nFiles: {3}", result, dialog.CurrentFilter, dialog.FileName, string.Join(", ", dialog.Filenames)); }; return button; }