Beispiel #1
0
        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;
        }
Beispiel #3
0
        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;
        }
Beispiel #4
0
        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;
        }
Beispiel #5
0
        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;
 }
 public MainWindow()
 {
     InitializeComponent();
     this.viewModel   = new ViewModels.MainViewModel();
     this.DataContext = this.viewModel;
 }