Exemplo n.º 1
0
 public void AddOrganization(Organization org)
 {
     if (org != null)
     {
         OrgsList.Add(org);
     }
 }
Exemplo n.º 2
0
        private void Remove_Clicked(object sender, EventArgs e)
        {
            var smsManager = CrossMessaging.Current.SmsMessenger;

            if (smsManager.CanSendSms)
            {
                smsManager.SendSms(this.SelectedItem.PhoneNumber, "Your organization was deleted!");
            }
            OrgsList.Remove(this.SelectedItem);
        }
Exemplo n.º 3
0
        public void UpdateOrganization(Organization org)
        {
            if (this.SelectedItem != null)
            {
                var oldOrganization = OrgsList.Where(x => x.OrgNumber == this.SelectedItem.OrgNumber).FirstOrDefault();
                OrgsList.Remove(oldOrganization);
            }

            OrgsList.Add(this.SelectedItem);
        }