/// <summary> /// This draws the polygons for borders based on the image passed to it /// </summary> /// <param name="localMap">The image we're drawing on</param> /// <param name="localDate">The date we're searching for</param> /// <param name="zoom">the zoom level</param> /// <returns>a version of the drawing with the polygons drawn on</returns> public static Image DrawBorders(Image localMap, LocalDate localDate, double zoom) { if (CurrentDate != localDate) { CurrentDate = localDate; CurrentBorders = LocalMongoGetter.GetCountries(localDate); } if (AdminPanel.AdminPanel.BorderStorage != null) { List <BorderStorageClass> tempBordersStorageList = new List <BorderStorageClass>(); tempBordersStorageList.Add(AdminPanel.AdminPanel.BorderStorage); return(DrawImage(localMap, tempBordersStorageList, zoom, false)); } else if (!Drawing) { return(DrawImage(localMap, CurrentBorders, zoom, false)); } else { List <BorderStorageClass> tempBorderStorageList = new List <BorderStorageClass> { WorldMapCreate.CreateForm.LocalBorderStorageClass }; localMap = DrawImage(localMap, CurrentBorders, zoom, true); return(DrawImage(localMap, tempBorderStorageList, zoom, false)); } }
/// <summary> /// This should update the _buttonsForTimePeriod list /// </summary> private void GetButtons(LocalDate startDate, LocalDate endDate) { ButtonsForTimePeriodList.Clear(); ButtonsForTimePeriodList = LocalMongoGetter.GetListFromDateSelection(startDate, endDate); }