Esempio n. 1
0
        public AddPattern(MainViewModel model)
        {
            this._model = model;
            this._currentPatIndex = model.PatternIndex;

            this.ExecuteAction = this.executeAction;
            this.UndoAction = this.undoAction;
        }
Esempio n. 2
0
        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;
        }
Esempio n. 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;
        }
Esempio n. 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;
        }
Esempio n. 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;
        }
Esempio n. 6
0
 public MainWindow()
 {
     InitializeComponent();
     this.viewModel = new ViewModels.MainViewModel();
     this.DataContext = this.viewModel;
 }
 public MainWindow()
 {
     InitializeComponent();
     this.viewModel   = new ViewModels.MainViewModel();
     this.DataContext = this.viewModel;
 }