/// <summary> /// Initializes a new instance of the <see cref="ChordDataViewModel" /> class. /// </summary> public ChordDataViewModel() { this.ChordKeyboardTappedCommand = new DelegateCommand(this.OnChordKeyboardTapped, this.ChordKeyboardTappedCanExecute); this.FinderKeyboardTappedCommand = new DelegateCommand(this.OnFinderKeyboardTapped, this.FinderKeyboardTappedCanExecute); this.ScaleKeyboardTappedCommand = new DelegateCommand(this.OnScaleKeyboardTapped, this.ScaleKeyboardTappedCanExecute); this.selectedInversion = this.Inversions[0]; this.FinderChord = Chord.Create("Mystery Chord", new List <int>()); }
public ChordDataViewModel() { this.Title = "Chord Factory"; this.ChordKeyboardTappedCommand = new Command(this.OnChordKeyboardTapped); this.FinderKeyboardTappedCommand = new Command(this.OnFinderKeyboardTapped); this.ScaleKeyboardTappedCommand = new Command(this.OnScaleKeyboardTapped); this.selectedInversion = this.Inversions[0]; this.FinderChord = Chord.Create("Mystery Chord", new List <int>()); }
public void ResetFinderChord() { this.FinderChord = Chord.Create("Mystery Chord", new List <int>()); this.FindChord(); }