Esempio n. 1
0
        private void arrange(ValueIsAddress addressSetting)
        {
            switch (addressSetting)
            {
            case ValueIsAddress.isAccomodation:
                this.isAccomodation = true;
                this.isCurrentSite  = false;
                this.isResident     = false;
                this.isJobSite      = false;
                break;

            case ValueIsAddress.isCurrentSite:
                this.isCurrentSite  = true;
                this.isAccomodation = false;
                this.isResident     = false;
                this.isJobSite      = false;
                break;

            case ValueIsAddress.isResident:
                this.isResident     = true;
                this.isCurrentSite  = false;
                this.isAccomodation = false;
                this.isJobSite      = false;
                break;

            case ValueIsAddress.isJobSite:
                this.isJobSite      = true;
                this.isResident     = false;
                this.isCurrentSite  = false;
                this.isAccomodation = false;
                break;
            }
        }
Esempio n. 2
0
        private void showList(ValueIsAddress valueIsAddress)
        {
            this.arrange(valueIsAddress);
            viewListChooseCusProgess.IsVisible = true;
            var viewModel = BindingContext as CustomerProgessPageVM;

            if (viewModel.Items.Count <= 0)
            {
                listDataProgress.IsVisible       = false;
                titleNoDataCusprogress.IsVisible = true;
            }
            else
            {
                listDataProgress.IsVisible       = true;
                titleNoDataCusprogress.IsVisible = false;
            }
        }