예제 #1
0
        public override int Compare(Item o)
        {
            ActionDateTouch nfo = o as ActionDateTouch;

            if (this.Episode == null)
            {
                return(1);
            }
            if (nfo?.Episode == null)
            {
                return(-1);
            }
            if (this.WhereFile != null)
            {
                return(String.Compare((this.WhereFile.FullName + this.Episode.Name), nfo.WhereFile.FullName + nfo.Episode.Name, StringComparison.Ordinal));
            }
            return(String.Compare((this.WhereDirectory.FullName + this.Episode.Name), nfo.WhereDirectory.FullName + nfo.Episode.Name, StringComparison.Ordinal));
        }
예제 #2
0
        public override int Compare(Item o)
        {
            ActionDateTouch nfo = o as ActionDateTouch;

            if (Episode is null)
            {
                return(1);
            }

            if (nfo?.Episode is null)
            {
                return(-1);
            }

            if (whereFile != null)
            {
                return(string.Compare(whereFile.FullName + Episode.Name, nfo.whereFile.FullName + nfo.Episode.Name, StringComparison.Ordinal));
            }

            return(string.Compare(whereDirectory.FullName + Episode.Name, nfo.whereDirectory.FullName + nfo.Episode.Name, StringComparison.Ordinal));
        }