private void UpdateContact()
        {
            SingletonToContact toContact = SingletonToContact.GetInstance();

            toContact.Contact = SelectedContact;
            toContact.Update  = true;
            Navigation.PushModalAsync(new CrudView());
            CallEnabled = false;
        }
示例#2
0
 public SMSViewModel()
 {
     singleton        = SingletonToNavigation.GetInstance();
     singletonContact = SingletonToContact.GetInstance();
     sent             = new SMSSent();
     navigation       = singleton.Navigation;
     this.Number      = singletonContact.Contact.NumberPhone;
     this.Name        = singletonContact.Contact.Name;
     this.Uri         = singletonContact.Contact.Uri;
     SentSMSCommand   = new Command(SentSMS);
 }
示例#3
0
 public CrudViewModel()
 {
     singletonNavigation = SingletonToNavigation.GetInstance();
     Navigation          = singletonNavigation.Navigation;
     contact             = SingletonToContact.GetInstance();
     if (contact.Update)
     {
         this.Name           = contact.Contact.Name;
         this.LastName       = contact.Contact.LastName;
         this.NumberPhone    = contact.Contact.NumberPhone;
         this.E_Mail         = contact.Contact.E_Mail;
         this.Uri            = contact.Contact.Uri;
         this.IsEnabledAdd   = false;
         this.IsEnabledOther = true;
     }
     InitializeCommand();
 }