Пример #1
0
 /// <summary>
 /// Initializises Commands, NavigationHandler and AudioLib of Model
 /// </summary>
 /// <param name="handler"> For navigation</param>
 public AddSongPageVM(NavigationHandler handler)
 {
     _handler        = handler;
     _audioLib       = AudioLib.SingletonAudioLib;
     AddSongCommand  = new Command(AddSong);
     PickFileCommand = new Command(PickFile);
 }
Пример #2
0
 /// <summary>
 /// Initializises Commands, NavigationHandler and ConnectivityHandler, SettingsHandler of Model
 /// </summary>
 /// <param name="handler">For navigation</param>
 public MainPageVM(NavigationHandler handler)
 {
     _handler               = handler;
     _connectivityHandler   = ConnectivityHandler.SingletonConnectivityHandler;
     _settingsHandler       = SettingsHandler.SingletonSettingsHandler;
     AudioPlayerPageCommand = new Command(GotoAudioPlayerPage);
     AudioLibPageCommand    = new Command(GotoAudioLibPage);
     ConnectionPageCommand  = new Command(GotoConnectionPage);
     ModesPageCommand       = new Command(GotoModesPage);
     SettingsPageCommand    = new Command(GotoSettingsPage);
     _iconOn  = "bluetooth_on.png";
     _iconOff = "bluetooth_off.png";
     Icon     = _iconOn;
 }
Пример #3
0
 /// <summary>
 /// Initializises Commands, NavigationHandler and AudioLib, AudioPlayer of Model
 /// </summary>
 /// <param name="handler">For navigation</param>
 public AudioLibPageVM(NavigationHandler handler)
 {
     _handler              = handler;
     _audioLib             = AudioLib.SingletonAudioLib;
     _audioPlayer          = AudioPlayer.SingletonAudioPlayer;
     _oldSongs             = null;
     _deleteList           = new List <AudioTrack>();
     TitleSortCommand      = new Command(TitleSort);
     ArtistSortCommand     = new Command(ArtistSort);
     BPMSortCommand        = new Command(BPMSort);
     PlaySongCommand       = new Command <AudioTrack>(PlaySong);
     AddSongCommand        = new Command(AddSong);
     SearchSongCommand     = new Command <string>(SearchSong);
     DeleteSongsCommand    = new Command(DeleteSongs);
     EditDeleteListCommand = new Command <AudioTrack>(EditDeleteList);
 }