Esempio n. 1
0
        private void HandleContentPresenterChangedMessage(ContentPresenterChangedMessage obj)
        {
            if (obj.Action.Contains("Employee"))
            {
                this.IsBusy = true;
                ObservableCollection <Employee> disTask = this.GetEmployeeListAsync();
                this.EmployeeList = disTask;

                if (this.EmployeeList.IsNotNull() && this.EmployeeList.Count > 0)
                {
                    this.SelectedListItem = this.EmployeeList[0];
                }

                this.IsBusy = false;
            }
        }
        private void HandleContentPresenterChangedMessage(ContentPresenterChangedMessage obj)
        {
            if (obj.Action.Contains("District"))
            {
                this.IsBusy = true;
                ObservableCollection <Region> regTask = this.GetRegionListAsync();
                this.RegionList = regTask;

                ObservableCollection <District> disTask = this.GetDistrictListAsync();
                this.DistrictList = disTask;

                if (this.DistrictList.IsNotNull() && this.DistrictList.Count > 0)
                {
                    this.SelectedListItem = this.DistrictList[0];
                }

                this.IsBusy = false;
            }
        }
Esempio n. 3
0
 private void HandleContentPresenterChangedMessage(ContentPresenterChangedMessage cm)
 {
     this.IsContentPresent = false;
 }