26 lines
No EOL
740 B
C#
26 lines
No EOL
740 B
C#
using System.Windows.Input;
|
|
using JD.Soundwich.Core.SounwichStudio.OldSoundwich.Models;
|
|
using Plume.Icons;
|
|
using PlumeAction = Plume.Interfaces.WPF.Actions.Action;
|
|
|
|
namespace JD.Soundwich.Action
|
|
{
|
|
class TrackingBackwardAction : PlumeAction
|
|
{
|
|
public TrackingBackwardAction()
|
|
: base("Tracking Backward", "Tracking Backward", StandardIcon.FindPrevious, new KeyGesture(Key.Left))
|
|
{
|
|
|
|
}
|
|
|
|
public override void TryExecute()
|
|
{
|
|
ProjectProvider.Current.GetTracker().StepBackward();
|
|
}
|
|
|
|
public override bool CanExecute()
|
|
{
|
|
return ProjectProvider.Current.GetTracker() != null && ProjectProvider.Current.GetTracker().Tracking;
|
|
}
|
|
}
|
|
} |