Exemple #1
0
        async void TableView_DoubleClick(object sender, EventArgs e)
        {
            var item = Model.GetItem(TableView.SelectedRow);

            var onlineSong = item as OnlineSong;

            if (onlineSong != null)
            {
                if (!await MusicManager.Shared.AddTemp(onlineSong))
                {
                    App.ShowAlert("Sorry", "There was an error playing this track");
                    return;
                }
                await PlaybackManager.Shared.PlayNow(onlineSong, onlineSong.TrackData.MediaType == MediaType.Video);

                return;
            }
            var song = item as Song;

            if (song != null)
            {
                await PlaybackManager.Shared.PlayNow(song);

                return;
            }
            var radio = item as RadioStation;

            if (radio != null)
            {
                await PlaybackManager.Shared.Play(radio);

                return;
            }
        }
Exemple #2
0
 public static void ShowNotImplmented(Dictionary <string, string> extra       = null,
                                      [CallerMemberName] string function      = "",
                                      [CallerFilePath] string sourceFilePath  = "",
                                      [CallerLineNumber] int sourceLineNumber = 0)
 {
     LogManager.Shared.LogNotImplemented(extra, function, sourceFilePath, sourceLineNumber);
     App.ShowAlert(Strings.Sorry, $"Coming soon: {function}");
 }