Exemplo n.º 1
0
 public void AddView(IView view)
 {
     if (!views.Contains(view))
     {
         view.IsActive = true;
         viewQueue.Enqueue(Tuple.Create(view, QueueState.Add));
     }
     else
     {
         Debug.WriteLine("Active views already contains this view");
     }
 }
Exemplo n.º 2
0
 public void RemoveView(IView view)
 {
     if (views.Contains(view))
     {
         view.IsActive = false;
         viewQueue.Enqueue(Tuple.Create(view, QueueState.Remove));
     }
 }