Пример #1
0
        private void RefreshCursor()
        {
            RaisePropertyChanged(nameof(CursorInGrid));
            RaisePropertyChanged(nameof(ValidCommandsAtCursor));

            EditElement.RaiseCanExecuteChanged();

            AddMark.RaiseCanExecuteChanged();
            RaisePropertyChanged(nameof(CanAddMark));

            EditMark.RaiseCanExecuteChanged();
            RaisePropertyChanged(nameof(CanEditMark));

            RemoveMark.RaiseCanExecuteChanged();
            RaisePropertyChanged(nameof(CanRemoveMark));

            AddFretLabel.RaiseCanExecuteChanged();
            RaisePropertyChanged(nameof(CanAddFretLabel));

            EditFretLabel.RaiseCanExecuteChanged();
            RaisePropertyChanged(nameof(CanEditFretLabel));

            RemoveFretLabel.RaiseCanExecuteChanged();
            RaisePropertyChanged(nameof(CanRemoveFretLabel));

            AddBarre.RaiseCanExecuteChanged();
            RaisePropertyChanged(nameof(CanAddBarre));

            EditBarre.RaiseCanExecuteChanged();
            RaisePropertyChanged(nameof(CanEditBarre));

            RemoveBarre.RaiseCanExecuteChanged();
            RaisePropertyChanged(nameof(CanRemoveBarre));
        }
Пример #2
0
        private void RefreshCursor()
        {
            RaisePropertyChanged("CursorInGrid");
            RaisePropertyChanged("ValidCommandsAtCursor");

            EditElement.RaiseCanExecuteChanged();

            AddMark.RaiseCanExecuteChanged();
            RaisePropertyChanged("CanAddMark");

            EditMark.RaiseCanExecuteChanged();
            RaisePropertyChanged("CanEditMark");

            RemoveMark.RaiseCanExecuteChanged();
            RaisePropertyChanged("CanRemoveMark");

            AddFretLabel.RaiseCanExecuteChanged();
            RaisePropertyChanged("CanAddFretLabel");

            EditFretLabel.RaiseCanExecuteChanged();
            RaisePropertyChanged("CanEditFretLabel");

            RemoveFretLabel.RaiseCanExecuteChanged();
            RaisePropertyChanged("CanRemoveFretLabel");

            AddBarre.RaiseCanExecuteChanged();
            RaisePropertyChanged("CanAddBarre");

            EditBarre.RaiseCanExecuteChanged();
            RaisePropertyChanged("CanEditBarre");

            RemoveBarre.RaiseCanExecuteChanged();
            RaisePropertyChanged("CanRemoveBarre");
        }