//private async void OnNewSrTapped() //{ // SplitView.PopupContent.DismisPopup(); // if (Device.OS != TargetPlatform.Android) // UserPosition = await SplitView.Fullmapview.GetCurrentLocation(); // if (Reachability.InternetConnectionStatus() == ReachabilityNetworkStatus.NotReachable) // { // await SplitView.Instace().PushRightContent(NewCaseAddView = new AddNewCaseView()); // } // else // { // if (Device.OS == TargetPlatform.Android) // PointOnMapView = new AndroidMapView(); // else // PointOnMapView = new WindowsMapView(); // await SplitView.Instace().PushRightContent(AddNewCasePointOnMapView = new AddNewCasePointOnMapView(PointOnMapView, UserPosition)); // } //} #endregion #endregion /// ------------------------------------------------------------------------------------------------ /// ------------------------------------------------------------------------------------------------ #region Private Functions /// /// ------------------------------------------------------------------------------------------------ /// Name OnCameraCapture /// /// <summary> handles the camera on click functionality. /// </summary> /// ------------------------------------------------------------------------------------------------ /// private async void OnCameraCapture() { try { await CameraCapture.AssistTakePhoto(); if (AppContext.AppContext.ImageSource != null) { // await Task.Delay(500); SplitView.CenterPopupContent.ShowPopupCenter(new AddNewImageView(), 0.5); } } catch (Exception ex) { LogTracking.LogTrace(ex.ToString()); } }