Beispiel #1
0
 private void WipeData()
 {
     Log          = new List <Tuple <string, Color> >();
     MapMarkers   = new Dictionary <string, GMapMarker>();
     MarkersQueue = new Queue <NewMapObject>();
     LogQueue     = new Queue <Tuple <string, Color> >();
     PathRoute.Points.Clear();
     PathRoute.RegenerateShape(null);
 }
Beispiel #2
0
 private void WipeData()
 {
     try
     {
         Log          = new List <Tuple <string, Color> >();
         MapMarkers   = new Dictionary <string, GMapMarker>();
         MarkersQueue = new Queue <NewMapObject>();
         LogQueue     = new Queue <Tuple <string, Color> >();
         PathRoute.Points.Clear();
         PathRoute.RegenerateShape(null);
     }
     catch (Exception ex)
     {
         Session.EventDispatcher.Send(new WarnEvent
         {
             Message = "Error during wiping bot data!"
         });
         Logger.Write($"[WIPE FAIL] Error: {ex.Message}", LogLevel.Error);
     }
 }