예제 #1
0
파일: Release.cs 프로젝트: hannuraina/tag
 internal override void LoadMissingDataCore ()
 {
     Release release = new Release (Id);
     type = release.GetReleaseType ();
     status = release.GetReleaseStatus ();
     language = release.GetLanguage ();
     script = release.GetScript ();
     asin = release.GetAsin ();
     events = release.GetEvents ();
     if (discs == null) discs = release.GetDiscs ();
     if (tracks == null) tracks = release.GetTracks ();
     base.LoadMissingDataCore (release);
 }
예제 #2
0
파일: Track.cs 프로젝트: hannuraina/tag
        public int GetTrackNumber (Release release)
        {
            if (release == null) throw new ArgumentNullException ("release");

            foreach (Release r in GetReleases ())
                if (r.Equals (release))
                    return r.TrackNumber;
            return -1;
        }