Example #1
0
        public async Task <Model_Song> Get_RadioInformationandStreaming()
        {
            var title = await Check_Information();

            if (current_title != title)
            {
                current_title = title;
                data          = Get_New_Information(title);
            }

            return(data);
        }
 private void OnFavorite_ButtonClicked(object sender, EventArgs e)
 {
     if (!result_check_element)
     {
         var favorites = new Model_Song(Return_data.parameter.Icon, name_song.Text, name_author.Text);
         new SaveOpenFavorites(favorites).Save_Favorites();
         Favorite_Button.Icon = "favorite1.png";
         result_check_element = true;
     }
     else
     {
         new SaveOpenFavorites().Remove_Favorites(name_song.Text);
         Favorite_Button.Icon = "favorite.png";
         result_check_element = false;
     }
 }
 private bool Touch_Image(bool result_check_element)
 {
     if (!result_check_element)
     {
         var favorites = new Model_Song(Return_data.parameter.Icon, control_song.Text, control_author.Text);
         new SaveOpenFavorites(favorites).Save_Favorites();
         Favorite_Button.Source = "favorite1.png";
         result_check_element   = true;
     }
     else
     {
         new SaveOpenFavorites().Remove_Favorites(control_song.Text);
         Favorite_Button.Source = "favorite.png";
         result_check_element   = false;
     }
     Device.BeginInvokeOnMainThread(() => FavoritesList.ItemsSource = new SaveOpenFavorites().Open_Favorites());
     return(result_check_element);
 }
 public SaveOpenFavorites(Model_Song items)
 {
     Items = items;
 }