/// <summary> /// Response of webservice /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void SendOrderwebservicecall_UploadStringCompleted(object sender, UploadStringCompletedEventArgs e) { SendOrderResponse objSendOrderResponse = new SendOrderResponse(); try { if (e.Result != null) { var response = e.Result.ToString(); objSendOrderResponse = Utils.JsonHelper.Deserialize<SendOrderResponse>(response); if (objSendOrderResponse.status == 0) { App.TombStonedPageURL ="RequestSent"; confirmRepeatViewModel.IsPopupSentOpen = true; confirmRepeatViewModel.HitVisibility = false; App.prescriptionCollection.Clear(); } } } catch (Exception) { confirmRepeatViewModel.HitVisibility = true; MessageBox.Show("Sorry, Unable to process your request."); } }
/// <summary> /// Response of reorder /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void SendOrderwebservicecall_UploadStringCompleted(object sender, UploadStringCompletedEventArgs e) { SendOrderResponse objSendOrderResponse = new SendOrderResponse(); try { if (e.Result != null) { var response = e.Result.ToString(); objSendOrderResponse = Utils.JsonHelper.Deserialize<SendOrderResponse>(response); if (objSendOrderResponse.status == 0) { orderDetailsViewModel.IsPopupCancelledOpen = true; orderDetailsViewModel.PopupCancelText = "Re-Ordered"; App.prescriptionCollection.Clear(); orderDetailsViewModel.HitVisibility = false; } } } catch (Exception) { MessageBox.Show("No Internet Connectivity."); } }