blob: 27e36b80e01c0e518b8a1fe46fed364dbb0a81b6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
using System;
namespace HandBrakeWPF.Commands
{
using System.Windows.Input;
using Caliburn.Micro;
using HandBrakeWPF.ViewModels.Interfaces;
public class OpenPresetManagerCommand : ICommand
{
public bool CanExecute(object? parameter)
{
return true;
}
public void Execute(object? parameter)
{
IMainViewModel viewModel = IoC.Get<IMainViewModel>();
viewModel.OpenPresetWindow();
}
public event EventHandler? CanExecuteChanged;
}
}
|