Ejemplo n.º 1
0
        private void itemsRangeSelectedHandler(GraphItem fromGi, GraphItem toGi)
        {
            try
            {
                Waypoint fromTrkpt = (Waypoint)fromGi.itemKeyObj;
                Waypoint toTrkpt   = (Waypoint)toGi.itemKeyObj;

                if (fromTrkpt != null && toTrkpt != null)
                {
                    SelectFilter.track     = this.tgc.Track;
                    SelectFilter.fromTrkpt = fromTrkpt;
                    SelectFilter.toTrkpt   = toTrkpt;
                    SelectFilter.Enabled   = true;
                }
                else
                {
                    SelectFilter.reset();
                }
            }
            catch
            {
                SelectFilter.reset();
            }
            PictureManager.This.Refresh();
        }
Ejemplo n.º 2
0
 public static void resetSelection()
 {
     if (SelectFilter.Enabled)
     {
         SelectFilter.reset();
         PictureManager.This.Refresh();
     }
 }