public AddPattern(MainViewModel model) { this._model = model; this._currentPatIndex = model.PatternIndex; this.ExecuteAction = this.executeAction; this.UndoAction = this.undoAction; }
public RemovePattern(MainViewModel model) { this._model = model; this._currentPatIndex = this._model.PatternIndex; this._oldValue = this._model.PlayOrder[this._currentPatIndex]; this.ExecuteAction = this.executeAction; this.UndoAction = this.undoAction; }
public MovePattern(MainViewModel model, int direction) { this._model = model; this._oldPatterns = Utils.Clone(this._model.Song.Patterns); this._currentPatIndex = this._model.PatternIndex; this._direction = direction; this.ExecuteAction = this.executeAction; this.UndoAction = this.undoAction; }
public ClonePattern(MainViewModel model) { this._model = model; this._oldPatterns = Utils.Clone(model.Song.Patterns); this._currentPatIndex = model.PatternIndex; this.ExecuteAction = this.executeAction; this.UndoAction = this.undoAction; }
public NextPattern(MainViewModel model, int direction) { this._model = model; this._oldPatterns = Utils.Clone(this._model.Song.Patterns); this._currentPatIndex = this._model.PatternIndex; this._direction = direction; this._oldPatVal = this._model.PlayOrder[this._currentPatIndex]; this.ExecuteAction = this.setNext; this.UndoAction = this.restore; }
public MainWindow() { InitializeComponent(); this.viewModel = new ViewModels.MainViewModel(); this.DataContext = this.viewModel; }