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; }
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(); }
public int CompareTo(UniqueRoutesResult other) { return Compare(this, other); }
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; }