public CustomerMasterPage(Prescriber contact)
 {
     InitializeComponent();
     IsPresented              = true;
     BindingContext           = new PrescriberViewModel(this.Navigation);
     Detail                   = new NavigationPage(new CustomerDetailPage(contact as Prescriber));
     this.hcp.BackgroundColor = Color.FromHex("77D065");
     this.hcp.TextColor       = Color.White;
 }
Esempio n. 2
0
        public async void Handle_ItemTapped_Selected_Contact(object sender, Xamarin.Forms.ItemTappedEventArgs e)
        {
            if (contactList.SelectedItem == null)
            {
                return;
            }
            Prescriber selectedContact = contactList.SelectedItem as Prescriber;

            contactList.SelectedItem = null;
            contactName.Text         = selectedContact.fullname;
            contactList.IsVisible    = false;
            await Navigation.PushAsync(new CustomerMasterPage(selectedContact)
            {
                Title = "Prescriber360"
            });
        }
 public CustomerDetailPage(Prescriber contact)
 {
     InitializeComponent();
     this.fullname.Text    = contact.fullname;
     this.phonenumber.Text = contact.telephone1;
     this.description.Text = contact.description;
     this.designation.Text = contact.vcm_prescriberspeciality;
     this.firstName.Text   = contact.firstname;
     this.middleName.Text  = contact.middlename;
     this.lastName.Text    = contact.lastname;
     this.speciality.Text  = contact.vcm_prescriberspeciality;
     this.email.Text       = contact.emailaddress1;
     this.phone1.Text      = contact.telephone1;
     this.phone2.Text      = contact.mobilephone;
     this.address.Text     = contact.address1_line1 + " " + contact.address1_line2 + " " + contact.address1_line3;
     this.city.Text        = contact.address1_city;
     this.stateCode.Text   = contact.statecode.ToString();
 }