Esempio n. 1
0
 public void SaveMapField(Action<List<int>> callback, List<MapFieldModel> mapFields)
 {
     MapFieldRepository mapFieldRep = new MapFieldRepository();
     ViewSaveCallback = callback;
     SaveMapFieldCallback handler = new SaveMapFieldCallback(SaveMapFieldCompleted);
     mapFieldRep.SaveMapField(new Action<List<int>>(handler), mapFields);
 }
Esempio n. 2
0
 public void GetMapIds(Action<List<int>> callback, int fieldId)
 {
     MapFieldRepository mapFieldRep = new MapFieldRepository();
     ViewLoadMapIdsCallback = callback;
     LoadMapIdsCallback handler = new LoadMapIdsCallback(LoadMapIdsCompleted);
     mapFieldRep.GetMapIds(new Action<List<int>>(handler), fieldId);
 }