Example #1
0
 public HomeController(IDataService dataServ, IPerformerService performerServ, ISongService songServ, IChordService chordServ)
 {
     dataService      = dataServ;
     performerService = performerServ;
     songService      = songServ;
     chordService     = chordServ;
 }
 public MainViewModel(IChordService chordService, INavigationService navigationService)
 {
     SelectChordCommand = new RelayCommand<ChordsItemViewModel>(SelectChord);
     SelectChordRootCommand = new RelayCommand<ChordsGroupViewModel>(SelectChordRoot);
     _chordService = chordService;
     _navigationService = navigationService;
     LoadChords();
 }
 /// <summary>
 /// Initializes a new instance of the ChordsListBViewModel class.
 /// </summary>
 public ChordsListViewModel(IChordService chordService, INavigationService navigationService)
 {
     _chordService = chordService;
     _navigationService = navigationService;
     GoBackCommand = new RelayCommand(GoBack);
     Root = _chordService.SelectedRoot;
     LoadData();
 }
 public MainViewModel(IChordService chordService, INavigationService navigationService)
 {
     SelectChordCommand     = new RelayCommand <ChordsItemViewModel>(SelectChord);
     SelectChordRootCommand = new RelayCommand <ChordsGroupViewModel>(SelectChordRoot);
     _chordService          = chordService;
     _navigationService     = navigationService;
     LoadChords();
 }
Example #5
0
 public ChordBusiness(IKeyService keyService, IAlterationService alterationService, IChordQualityService chordQualityService, IChordService chordService, INoteService noteService)
 {
     _keyService          = keyService;
     _alterationService   = alterationService;
     _chordQualityService = chordQualityService;
     _chordService        = chordService;
     _noteService         = noteService;
 }
Example #6
0
 /// <summary>
 /// Initializes a new instance of the ChordsListBViewModel class.
 /// </summary>
 public ChordsListViewModel(IChordService chordService, INavigationService navigationService)
 {
     _chordService      = chordService;
     _navigationService = navigationService;
     GoBackCommand      = new RelayCommand(GoBack);
     Root = _chordService.SelectedRoot;
     LoadData();
 }
Example #7
0
 public StringInstrumentChordService(IChordService chordService)
 {
     ChordService = chordService;
 }
 public AudioController
     (IAudioService audioService, IChordService chordService) : base()
 {
     this.audioService = audioService;
     this.chordService = chordService;
 }
Example #9
0
 public ChordsController(IChordService chordService) : base(chordService)
 {
     this._chordService = chordService;
 }
Example #10
0
 public HomeController(INoteService noteService, IChordQualityService chordQualityService, IChordService chordService)
 {
     _chordQualityService = chordQualityService;
     _chordService        = chordService;
     _noteService         = noteService;
 }
Example #11
0
 public IEnumerable <IChordDefinition> Definitions([FromServices] IChordService chordService) => chordService.GetDefinitions();
Example #12
0
        public IEnumerable <IChord> ReverseSearch([FromServices] IChordService chordService, string notes)
        {
            var splitted = notes.Split(',');

            return(chordService.ReverseSearch(splitted));
        }
Example #13
0
 public IChord GetChord([FromServices] IChordService chordService, string note, Chords type) => chordService.GetChord(note, type);
Example #14
0
 public IEnumerable <IChord> GetAllChords([FromServices] IChordService chordService, string note) => chordService.GetChords(note);