Example #1
0
 public static void OnSongInSongViewChanged(ISongView sender, ChangeMade change)
 {
     if (SongInSongViewChanged != null)
     {
         SongInSongViewChanged(sender, new SongChangeEventArgs(change));
     }
 }
Example #2
0
 public SongPresenter(Configuration configuration, ISongView view, IDownloadingPresenter downloadingPresenter,
                      ISongProvider songProvider)
 {
     Configuration          = configuration;
     View                   = view;
     View.Presenter         = this;
     View.AutoCloseDownload = AutoCloseDownload;
     View.Overlay           = Overlay;
     DownloadingPresenter   = downloadingPresenter;
     SongProvider           = songProvider;
 }
Example #3
0
        public static string GetPathFromSongView(ISongView s)
        {
            string path    = String.Empty;
            string or_path = s.Song.PathName;

            while (or_path != string.Empty)
            {
                var m = Regex.Match(or_path, @"([^\\]*)\\*(.*)");
                path   += path == String.Empty ? m.Groups[1].Value : @"\" + m.Groups[1].Value;
                or_path = m.Groups[2].Value;
            }
            return(path);
        }