Exemplo n.º 1
0
 /// <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);
 }
Exemplo n.º 2
0
 /// <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); }
     }
 }