public static void MoveMarker(Project aProject, int aIndex, PointF aOld, PointF aNew) { if (aIndex != -1) { AddRollback(aProject); Marker marker = aProject.GetMarker(aIndex); marker.Location = aNew; aProject.Dirty = true; } }
public static void MarkerToggleFlightZone(Project aProject, int aIndex) { if (aIndex != -1) { AddRollback(aProject); Marker marker = aProject.GetMarker(aIndex); marker.ShowFlightZone = !marker.ShowFlightZone; aProject.Dirty = true; } }