Beispiel #1
0
        public BookingPage(CleanerModel cleaner)
        {
            InitializeComponent();
            cleanerpic.Source   = cleaner.FullImagePath;
            cleanernameLbl.Text = cleaner.Name.ToUpper();

            CleanerSettings.CleanerId   = cleaner.Id;
            CleanerSettings.CleanerName = cleaner.Name;
            CleanerSettings.Location    = cleaner.Location;
            CleanerSettings.PhoneNumber = cleaner.PhoneNumber;
            CleanerSettings.Path        = cleaner.FullImagePath;
            PopulatePicker();
            PopulateTimePicker();
            ironingswitch.Toggled += Ironswitch;
        }
        public CleanerDetails(CleanerModel cleaner)
        {
            InitializeComponent();
            Settings.CleanerId = cleaner.Id.ToString();
            Title                   = cleaner.Name;
            profilepic.Source       = cleaner.FullImagePath;
            cleanernameLbl.Text     = cleaner.Name.ToUpper();
            locationLbl.Text        = cleaner.Location.ToUpper();
            phoneLbl.Text           = cleaner.PhoneNumber.ToUpper();
            countactivity.IsEnabled = true;
            countactivity.IsRunning = true;
            countactivity.IsVisible = true;

            _phone = phoneLbl.Text;

            if (CrossConnectivity.Current.IsConnected)
            {
                CleanerServiceCount();
            }
            else
            {
                DisplayAlert("Connection Timeout", "We could not get your Cleaner service count at the moment,Check your Internet Connection and Try again", "ok");
            }
        }