27 lines
819 B
C#
27 lines
819 B
C#
using System.Windows.Input;
|
|
using JD.Soundwich.Core.SounwichStudio.OldSoundwich.Models;
|
|
using Plume.Icons;
|
|
using Plume.WPF.Commands;
|
|
using PlumeAction = Plume.Interfaces.WPF.Actions.Action;
|
|
|
|
namespace JD.Soundwich.Action
|
|
{
|
|
class StartTrackingAction : PlumeAction
|
|
{
|
|
public StartTrackingAction()
|
|
: base("Start Tracking", "Start Tracking", StandardIcon.Runblue, new DoubleKeyGesture(ModifierKeys.Alt, Key.T))
|
|
{
|
|
|
|
}
|
|
|
|
public override void TryExecute()
|
|
{
|
|
ProjectProvider.Current.GetTracker().StartTracking();
|
|
}
|
|
|
|
public override bool CanExecute()
|
|
{
|
|
return ProjectProvider.Current.HasLoadedProject && (ProjectProvider.Current.GetTracker() == null || !ProjectProvider.Current.GetTracker().Tracking);
|
|
}
|
|
}
|
|
}
|