/// <summary> /// Create a view to display the current visit. /// </summary> /// @author Gabriele Ursini private void createVisitView(Visit visit) { visitView = new view_Visit(visit) { AutomationId = "visitView" }; this.globalStack.Children.Add(visitView); }
/// <summary> /// Hide the visit view once the visit is over. /// </summary> /// @author Gabriele Ursini private void hideVisitView() { if (visitView != null) { try { this.globalStack.Children.Remove(visitView); visitView = null; } catch (Exception e) { Debug.WriteLine(e); } } }