public void DeleteSelectedStation(Station station)
 {
     try
     {
         Logger.LogNewMessage($"Delete called for station with name {station.Name}..", LogType.INFO);
         StationServiceProxy.DeleteStation(station.Id);
         RefreshStationsList();
         RefreshRoadsList();
     }
     catch (Exception e)
     {
         Logger.LogNewMessage($"Error occured deleting station. Error message {e.Message}", LogType.ERROR);
     }
 }
 public void RefreshStationsList()
 {
     Logger.LogNewMessage("Getting all stations from server..", LogType.INFO);
     try
     {
         Stations = new BindingList <Station>(StationServiceProxy.GetAllStations());
         if (Stations == null)
         {
             Stations = new BindingList <Station>();
         }
     }
     catch (Exception e)
     {
         Logger.LogNewMessage($"Error occured getting all stations. Error message {e.Message}", LogType.ERROR);
     }
 }