Exemple #1
0
 /// <summary>
 /// Registers the specified view.
 /// </summary>
 /// <param name="view">The view.</param>
 public void Register(IConnectionDependentView view)
 {
     _tabs.Add(view);
     //If view was not closed programmatically, ViewContentClosing won't fire.
     //So hook onto the Disposed event to remove the view from the watch list.
     view.Disposed += delegate
     {
         _tabs.Remove(view);
     };
 }
Exemple #2
0
 /// <summary>
 /// Registers the specified view.
 /// </summary>
 /// <param name="view">The view.</param>
 public void Register(IConnectionDependentView view)
 {
     _tabs.Add(view);
     //If view was not closed programmatically, ViewContentClosing won't fire.
     //So hook onto the Disposed event to remove the view from the watch list.
     view.Disposed += delegate
     {
         _tabs.Remove(view);
     };
 }