Example #1
0
 public static NotifyIconWindowListener Create(NotifyIconContainer container)
 {
     if (!NotifyIconHelper.TryGetNotifyIconWindow(container.NotifyIcon, out NativeWindow window) ||
         (window.Handle == IntPtr.Zero))
     {
         return(null);
     }
     return(new NotifyIconWindowListener(container, window));
 }
Example #2
0
 private NotifyIconWindowListener(NotifyIconContainer container, NativeWindow window)
 {
     this._container = container;
     this.AssignHandle(window.Handle);
 }