/// <summary> /// Create adornemnt for the case when order is dragged from routes views. /// </summary> /// <param name="ordersAndStops">Stops and orders.</param> /// <returns>Adornment.</returns> private static IAdornment _CreateRoutesViewAdornment(IList <object> ordersAndStops) { IAdornment adornment; if (ordersAndStops.Count == 1) // Single order case. { adornment = new DotAdornment(ordersAndStops[0] as Stop); } else // Multiple orders case. { adornment = new MultiDotAdornment(ordersAndStops); } return(adornment); }
/// <summary> /// Create adornemnt for the case when order is dragged from routes views. /// </summary> /// <param name="ordersAndStops">Stops and orders.</param> /// <returns>Adornment.</returns> private static IAdornment _CreateRoutesViewAdornment(IList<object> ordersAndStops) { IAdornment adornment; if (ordersAndStops.Count == 1) // Single order case. { adornment = new DotAdornment(ordersAndStops[0] as Stop); } else // Multiple orders case. adornment = new MultiDotAdornment(ordersAndStops); return adornment; }