Esempio n. 1
0
        private async void StartButton_Clicked(object sender, EventArgs e)
        {
            AlbumViewModel albumViewModel = new AlbumViewModel();

            albumViewModel.ApplyFilters = false;
            bool success = albumViewModel.ChooseRandomAlbum();

            if (success)
            {
                AlbumPage albumPage = new AlbumPage(albumViewModel, false);
                await Navigation.PushModalAsync(albumPage);
            }
        }
Esempio n. 2
0
        private async void NewRandomButton_Clicked(object sender, EventArgs e)
        {
            AlbumViewModel albumViewModel = new AlbumViewModel();

            albumViewModel.ApplyFilters = filters;
            if (filters)
            {
                albumViewModel.SelectedDayOrNight = viewModel.SelectedDayOrNight;
                albumViewModel.SelectedGenre      = viewModel.SelectedGenre;
                albumViewModel.SelectedMood       = viewModel.SelectedMood;
            }
            bool success = albumViewModel.ChooseRandomAlbum();

            if (success)
            {
                AlbumPage albumPage = new AlbumPage(albumViewModel, filters);
                await Navigation.PushModalAsync(albumPage);
            }
        }