示例#1
0
 public void Hideorshowbutton(ViewRequestedServiceStatusModel obj)
 {
     if (_OldDisciplinaryData == obj)
     {
         obj.isbuttonvisible = !obj.isbuttonvisible;
         UpdateProduct(obj);
     }
     else
     {
         if (_OldDisciplinaryData != null)
         {
             foreach (var items in ViewRequestedServiceStatusModels)
             {
                 if (_OldDisciplinaryData.personName == items.personName)
                 {
                     _OldDisciplinaryData.isbuttonvisible = false;
                     UpdateProduct(_OldDisciplinaryData);
                     break;
                 }
             }
         }
         obj.isbuttonvisible = true;
         UpdateProduct(obj);
     }
     _OldDisciplinaryData = obj;
 }
示例#2
0
        public void UpdateProduct(ViewRequestedServiceStatusModel obj)
        {
            var index = ViewRequestedServiceStatusModels.IndexOf(obj);

            ViewRequestedServiceStatusModels.Remove(obj);
            ViewRequestedServiceStatusModels.Insert(index, obj);
        }
示例#3
0
 public async void Onwhatsappcommand(ViewRequestedServiceStatusModel obj)
 {
     try
     {
         Device.OpenUri(new Uri("whatsapp://send?phone=+91" + obj.personMobileNo));
     }
     catch (Exception ex)
     {
         await App.Current.MainPage.DisplayAlert("Not Installed", "Whatsapp Not Installed", "ok");
     }
 }
示例#4
0
 public async void OnCallCommand(ViewRequestedServiceStatusModel obj)
 {
     try
     {
         PhoneDialer.Open(obj.personMobileNo);
     }
     catch (ArgumentNullException anEx)
     {
         // Number was null or white space
     }
     catch (FeatureNotSupportedException ex)
     {
         // Phone Dialer is not supported on this device.
     }
     catch (Exception ex)
     {
         // Other error has occurred.
     }
 }
示例#5
0
 public async void OnTapCommand(ViewRequestedServiceStatusModel obj)
 {
     Hideorshowbutton(obj);
 }