コード例 #1
0
ファイル: TabManager.cs プロジェクト: beritec/fdotoolbox
 /// <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);
     };
 }
コード例 #2
0
ファイル: TabManager.cs プロジェクト: stophun/fdotoolbox
 /// <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);
     };
 }