Example #1
0
 public void SaveMap(Action<List<int>> callback, List<MapModel> mapModels)
 {
     MapRepository mapRepository = new MapRepository();
     ViewSaveCallback = callback;
     SaveMapCallback handler = new SaveMapCallback(SaveMapCompleted);
     mapRepository.SaveMap(new Action<List<int>>(handler), mapModels);
 }
Example #2
0
 public void GetMapById(Action<MapModel> callback, int mapId)
 {
     MapRepository mapRepository = new MapRepository();
     ViewLoadMapCallback = callback;
     GetMapCallback handler = new GetMapCallback(GetMapCompleted);
     mapRepository.GetMap(new Action<MapModel>(handler), mapId);
 }