2014-08-22 17:19:01 +04:00
|
|
|
|
using System.Windows;
|
2016-04-19 12:33:36 +04:00
|
|
|
|
using System.Windows.Input;
|
|
|
|
|
using GARbro.GUI.Strings;
|
|
|
|
|
using Microsoft.WindowsAPICodePack.Dialogs;
|
2014-08-22 10:16:11 +04:00
|
|
|
|
|
|
|
|
|
namespace GARbro.GUI
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
2015-06-14 09:05:09 +04:00
|
|
|
|
/// Interaction logic for ConvertMedia.xaml
|
2014-08-22 10:16:11 +04:00
|
|
|
|
/// </summary>
|
2015-06-14 09:05:09 +04:00
|
|
|
|
public partial class ConvertMedia : Window
|
2014-08-22 10:16:11 +04:00
|
|
|
|
{
|
2015-06-14 09:05:09 +04:00
|
|
|
|
public ConvertMedia ()
|
2014-08-22 10:16:11 +04:00
|
|
|
|
{
|
|
|
|
|
InitializeComponent ();
|
|
|
|
|
}
|
|
|
|
|
|
2016-04-19 12:33:36 +04:00
|
|
|
|
private void BrowseExec (object sender, ExecutedRoutedEventArgs e)
|
|
|
|
|
{
|
|
|
|
|
var dlg = new CommonOpenFileDialog
|
|
|
|
|
{
|
|
|
|
|
Title = guiStrings.TextChooseDestDir,
|
|
|
|
|
IsFolderPicker = true,
|
|
|
|
|
InitialDirectory = DestinationDir.Text,
|
|
|
|
|
|
|
|
|
|
AddToMostRecentlyUsedList = false,
|
|
|
|
|
AllowNonFileSystemItems = false,
|
|
|
|
|
EnsureFileExists = true,
|
|
|
|
|
EnsurePathExists = true,
|
|
|
|
|
EnsureReadOnly = false,
|
|
|
|
|
EnsureValidNames = true,
|
|
|
|
|
Multiselect = false,
|
|
|
|
|
ShowPlacesList = true,
|
|
|
|
|
};
|
|
|
|
|
if (dlg.ShowDialog (this) == CommonFileDialogResult.Ok)
|
|
|
|
|
DestinationDir.Text = dlg.FileName;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void CanExecuteAlways (object sender, CanExecuteRoutedEventArgs e)
|
|
|
|
|
{
|
|
|
|
|
e.CanExecute = true;
|
|
|
|
|
}
|
|
|
|
|
|
2014-08-22 10:16:11 +04:00
|
|
|
|
private void ConvertButton_Click (object sender, RoutedEventArgs e)
|
|
|
|
|
{
|
|
|
|
|
this.DialogResult = true;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|