Exemplo n.º 1
0
 public void AddSkinWindow(SkinableWindowBorder newSkinWindow)
 {
     _skinnedWindows[newSkinWindow.Parent.Handle] = newSkinWindow;
     newSkinWindow.Disposed += SkinWindowOnDisposed;
     newSkinWindow.WindowEventHandler.AttachToWindowsHook(_hookController.HookWindowByHandle(newSkinWindow.Parent.Handle));
     newSkinWindow.WindowEventHandler.AdjustSkinWindowPropertiesToParent();
 }
Exemplo n.º 2
0
 public void AddSkinWindow(SkinableWindowBorder newSkinWindow)
 {
     _skinnedWindows[newSkinWindow.Parent.Handle] = newSkinWindow;
     newSkinWindow.Disposed += SkinWindowOnDisposed;
     newSkinWindow.WindowEventHandler.AttachToWindowsHook(_hookController.HookWindowByHandle(newSkinWindow.Parent.Handle));
     newSkinWindow.WindowEventHandler.AdjustSkinWindowPropertiesToParent();
 }
Exemplo n.º 3
0
        protected virtual void OnDisposed(SkinableWindowBorder obj)
        {
            Action <SkinableWindowBorder> handler = Disposed;

            if (handler != null)
            {
                handler(obj);
            }
        }
Exemplo n.º 4
0
 protected virtual void OnDisposed(SkinableWindowBorder obj)
 {
     Action<SkinableWindowBorder> handler = Disposed;
     if (handler != null) handler(obj);
 }
Exemplo n.º 5
0
 private void SkinWindowOnDisposed(SkinableWindowBorder skinWindow)
 {
     skinWindow.Disposed -= SkinWindowOnDisposed;
     _skinnedWindows.Remove(skinWindow.Parent.Handle);
 }
Exemplo n.º 6
0
 private void SkinWindowOnDisposed(SkinableWindowBorder skinWindow)
 {
     skinWindow.Disposed -= SkinWindowOnDisposed;
     _skinnedWindows.Remove(skinWindow.Parent.Handle);
 }