Example #1
0
 public void Register(Window window)
 {
     if (this.BaseWindow != null)
     {
         throw new InvalidOperationException("Only one window can be registered");
     }
     this.BaseWindow = window;
     Application.Current.Deactivated += Application_Deactivated;
     DockManager       = new DockManager.DockManager(BaseWindow);
     _activewindowhook = new ActiveWindowHook();
     _activewindowhook.ActiveWindowChanged += activewindowhook_ActiveWindowChanged;
 }
Example #2
0
 public void Register(Window window)
 {
     if (BaseWindow != null) throw new InvalidOperationException("Only one window can be registered");
     BaseWindow = window;
     Application.Current.Deactivated += Application_Deactivated;
     DockManager = new DockManager.DockManager(BaseWindow);
     _activewindowhook = new ActiveWindowHook();
     _activewindowhook.ActiveWindowChanged += activewindowhook_ActiveWindowChanged;
 }