Exemplo n.º 1
0
        object ICloneable.Clone()
        {
            TimeGraphGroup gTimeGroup = new TimeGraphGroup(this._ParentGraph);

            return(gTimeGroup);

            // GTimeGraph clone = (GTimeGraph)this.MemberwiseClone();
            // return clone;
        }
Exemplo n.º 2
0
        /// <summary>
        /// Porovná dvě instance <see cref="TimeGraphGroup"/> podle <see cref="ITimeGraphItem.Order"/> ASC, <see cref="ITimeGraphItem.Time"/> ASC
        /// </summary>
        /// <param name="a"></param>
        /// <param name="b"></param>
        /// <returns></returns>
        public static int CompareOrderTimeAsc(TimeGraphGroup a, TimeGraphGroup b)
        {
            int cmp = a._FirstItem.Order.CompareTo(b._FirstItem.Order);

            if (cmp == 0)
            {
                cmp = TimeRange.CompareByBeginAsc(a.Time, b.Time);
            }
            return(cmp);
        }