Exemplo n.º 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);
 }
Exemplo n.º 2
0
 private void SaveBtn_Click(object sender, RoutedEventArgs e)
 {
     //insert map - get id
     MapModel mapModel = new MapModel();
     SaveMapCallback handler = new SaveMapCallback(SaveMapCompleted);
     mapModel.SaveMap(new Action<List<int>>(handler), fieldPoints);
 }