26 lines
636 B
C#
26 lines
636 B
C#
using System.Windows.Input;
|
|
using JD.GameLauncher.Engine;
|
|
using Plume.Icons;
|
|
using Action = Plume.Interfaces.WPF.Actions.Action;
|
|
|
|
namespace JD.GameLauncher
|
|
{
|
|
class EngineSettingsAction : Action
|
|
{
|
|
public EngineSettingsAction()
|
|
:base("Engine Related Settings", "Open Engine Settings", StandardIcon.Property)
|
|
{
|
|
|
|
}
|
|
|
|
public override void TryExecute()
|
|
{
|
|
Context.DialogManager.ShowSettingsDialog<EngineSettings>();
|
|
}
|
|
|
|
public override bool CanExecute()
|
|
{
|
|
return !EngineManager.Instance.IsEngineRunning;
|
|
}
|
|
}
|
|
}
|