image conversion generalized into media conversion.

This commit is contained in:
morkt
2015-06-14 09:05:09 +04:00
parent 227eae0dbe
commit 4c089120d1
10 changed files with 192 additions and 102 deletions

View File

@@ -1075,16 +1075,12 @@ namespace GARbro.GUI
e.CanExecute = CurrentDirectory.SelectedIndex != -1;
}
private void CanExecuteConvertImage (object sender, CanExecuteRoutedEventArgs e)
private void CanExecuteConvertMedia (object sender, CanExecuteRoutedEventArgs e)
{
if (CurrentDirectory.SelectedItems.Count > 1)
if (CurrentDirectory.SelectedItems.Count >= 1)
{
e.CanExecute = !ViewModel.IsArchive;
}
else
{
CanExecuteOnImage (sender, e);
}
}
private void CanExecuteOnImage (object sender, CanExecuteRoutedEventArgs e)
@@ -1302,7 +1298,7 @@ namespace GARbro.GUI
public static readonly RoutedCommand DeleteItem = new RoutedCommand();
public static readonly RoutedCommand RenameItem = new RoutedCommand();
public static readonly RoutedCommand ExploreItem = new RoutedCommand();
public static readonly RoutedCommand ConvertImage = new RoutedCommand();
public static readonly RoutedCommand ConvertMedia = new RoutedCommand();
public static readonly RoutedCommand Refresh = new RoutedCommand();
public static readonly RoutedCommand Browse = new RoutedCommand();
public static readonly RoutedCommand FitWindow = new RoutedCommand();