コード例 #1
0
        public int Compare(UniqueRoutesResult x, UniqueRoutesResult y)
        { 
            int result = (Settings.SummaryViewSortDirection == ListSortDirection.Ascending ? 1 : -1);

            if (Settings.SummaryViewSortColumn == SummaryColumnIds.CommonStretches)
            {
                result *= x.CommonStretches.CompareTo(y.CommonStretches);
            }
            else
            {
                result *= x.getCompareField(Settings.SummaryViewSortColumn).CompareTo(y.getCompareField(Settings.SummaryViewSortColumn));
            }
            return result;
        }
コード例 #2
0
        private void summaryList_MouseMove(object sender, MouseEventArgs e)
        {
           TreeList.RowHitState rowHitState;
           UniqueRoutesResult entry = (UniqueRoutesResult)summaryList.RowHitTest(e.Location, out rowHitState);
           if (entry == summaryListLastEntryAtMouseMove)
               return;
           else
               summaryListToolTip.Hide(summaryList);
           summaryListLastEntryAtMouseMove = entry;
           summaryListCursorLocationAtMouseMove = e.Location;

           if (entry != null)
               summaryListToolTipTimer.Start();
           else
               summaryListToolTipTimer.Stop();
        }
コード例 #3
0
 public int CompareTo(UniqueRoutesResult other)
 {
     return Compare(this, other);
 }
コード例 #4
0
 void cs_ItemSelected(object sender, ColorSelectorPopup.ItemSelectedEventArgs e)
 {
     if (sender is ColorSelectorPopup && m_ColorSelectorResult != null)
     {
         ColorSelectorPopup cs = sender as ColorSelectorPopup;
         if (cs.Selected != m_ColorSelectorResult.ActColor)
         {
             m_ColorSelectorResult.ActColor = cs.Selected;
             summaryList_SelectedItemsChanged(sender, e);
         }
     }
     m_ColorSelectorResult = null;
 }