From 18611a4004bf4adc61d6923c565e363244ffa2b0 Mon Sep 17 00:00:00 2001 From: sr55 Date: Sat, 20 Jul 2013 13:52:21 +0000 Subject: WinGui: Switch to native WPF dialogs for file handling except for the folder browser. Will replace this later. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5654 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'win/CS') diff --git a/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs index 8fdb4577c..474185776 100644 --- a/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs +++ b/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs @@ -1201,7 +1201,7 @@ namespace HandBrakeWPF.ViewModels /// public void FileScan() { - VistaOpenFileDialog dialog = new VistaOpenFileDialog { Filter = "All files (*.*)|*.*" }; + OpenFileDialog dialog = new OpenFileDialog { Filter = "All files (*.*)|*.*" }; dialog.ShowDialog(); this.StartScan(dialog.FileName, 0); } @@ -1233,7 +1233,7 @@ namespace HandBrakeWPF.ViewModels /// public void FileScanTitleSpecific() { - VistaOpenFileDialog dialog = new VistaOpenFileDialog { Filter = "All files (*.*)|*.*" }; + OpenFileDialog dialog = new OpenFileDialog { Filter = "All files (*.*)|*.*" }; dialog.ShowDialog(); if (string.IsNullOrEmpty(dialog.FileName)) @@ -1367,7 +1367,7 @@ namespace HandBrakeWPF.ViewModels /// public void DebugScanLog() { - VistaOpenFileDialog dialog = new VistaOpenFileDialog(); + OpenFileDialog dialog = new OpenFileDialog(); dialog.ShowDialog(); @@ -1544,7 +1544,7 @@ namespace HandBrakeWPF.ViewModels /// public void PresetImport() { - VistaOpenFileDialog dialog = new VistaOpenFileDialog { Filter = "Plist (*.plist)|*.plist", CheckFileExists = true }; + OpenFileDialog dialog = new OpenFileDialog() { Filter = "Plist (*.plist)|*.plist", CheckFileExists = true }; dialog.ShowDialog(); string filename = dialog.FileName; @@ -1590,7 +1590,7 @@ namespace HandBrakeWPF.ViewModels /// public void PresetExport() { - VistaSaveFileDialog savefiledialog = new VistaSaveFileDialog + SaveFileDialog savefiledialog = new SaveFileDialog { Filter = "plist|*.plist", CheckPathExists = true, -- cgit v1.2.3