예제 #1
0
        public async Task GetDetails(Guid id)
        {
            try
            {
                IsBusy    = true;
                IsEnabled = false;

                // var position = await GenericPageViewModel.GetCurrentLocation();
                _detalModel = await restClient.GetAsync <Detailmodel>(AppConstants.YouKnow_URl + "GetCongestionById?id=" + id, false);

                NotifyPropertyChanged("DetailModel");
            }
            catch (RestClientException ex)
            {
                Debug.WriteLine(ex.Message);
                throw;
            }
            finally
            {
                IsBusy    = false;
                IsEnabled = true;
            }
        }
예제 #2
0
 public Detailcong()
 {
     _detalModel = new Detailmodel();
 }
예제 #3
0
 public DetailViewModel()
 {
     _detalModel = new Detailmodel();
 }