WinRTXamlToolkit.Controls.Calendar.SortHoverIndexes C# (CSharp) Method

SortHoverIndexes() private method

Inherited code: Requires comment.
private SortHoverIndexes ( int &startIndex, int &endIndex ) : void
startIndex int Inherited code: Requires comment 1.
endIndex int Inherited code: Requires comment 2.
return void
        internal void SortHoverIndexes(out int startIndex, out int endIndex)
        {
            // not comparing indexes since the two days may not be on the same
            // month
            // REMOVE_RTM: this assumes that the two indexes are on the same month
            // should be updated if MultiCalendar support is added

            if (DateTimeHelper.CompareDays(HoverEnd.Value, HoverStart.Value) > 0)
            {
                startIndex = HoverStartIndex.Value;
                endIndex = HoverEndIndex.Value;
            }
            else
            {
                startIndex = HoverEndIndex.Value;
                endIndex = HoverStartIndex.Value;
            }
        }
        #endregion Selection