public SelectConfigurationViewModel() { _mobileService = new VPMobileServiceClient(); _mobileService.GetConfigsCompleted += GetConfigsCompleted; _mobileService.GetConfigCompleted += GetConfigCompleted; _mobileService.DeleteConfigCompleted += DeleteConfigCompleted; _mobileService.GetConfigsAsync(Guid.NewGuid().ToString()); }
public EditConfigurationViewModel() { _mobileService = new VPMobileServiceClient(); _mobileService.GetAllRoutingFileInfoCompleted += GetAllRoutingFileInfoCompleted; PropertyChanged += OnPropertyChanged; _configuration = new VPMobileSettings(); _dispatchSettings = new ObservableCollection <VPMobileDispatchSettings>(); _visibleDispatchGroups = new ObservableCollection <Pair <bool, VPDispatchIncidentTypeSettings> >(); _avlSettings = new ObservableCollection <VPMobileAVLSettings>(); _visibleAvlGroups = new ObservableCollection <Pair <bool, VPAVLGroupInfo> >(); _routingFiles = new ObservableCollection <RoutingFileInfo>(); _mobileService.UpdateConfigCompleted += UpdateConfigCompleted; _mobileService.AddConfigCompleted += AddConfigCompleted; _vpService = new VPMServiceClient(); _vpService.GetAvailableAvlSettingsCompleted += GetAvailableAvlSettingsCompleted; _vpService.GetAvailableDispatchSettingsCompleted += GetAvailableDispatchSettingsCompleted; }