Exemple #1
0
        static bool NotEqualTo(TimeProgress tp1, TimeProgress tp2)
        {
            if (!object.ReferenceEquals(tp1, null) && object.ReferenceEquals(tp2, null))
            {
                return(true);
            }
            if (object.ReferenceEquals(tp1, null) && !object.ReferenceEquals(tp2, null))
            {
                return(true);
            }
            if (object.ReferenceEquals(tp1, null) && object.ReferenceEquals(tp2, null))
            {
                return(false);
            }

            return(tp1.Index != tp2.Index);
        }
Exemple #2
0
        static bool GreaterThan(TimeProgress tp1, TimeProgress tp2)
        {
            int tp1Index = tp1.Index;
            int tp2Index = tp2.Index;

            if (tp1Index < tp2Index)
            {
                return(false);
            }
            else if (tp1Index == tp2Index)
            {
                return(false);
            }
            else
            {
                return(true);
            }
        }