Beispiel #1
0
        public StickService(Dispatcher dispatcher)
        {
            this.dispatcher = dispatcher;
            timer.Elapsed  += OnTimer;

            pointProvider = new StickPointProviderCollection()
                            .AddProvider(new DesktopStickPointProvider(1))
                            .AddProvider(new VisibleWindowStickPointProvider(2));
        }
Beispiel #2
0
 public WindowStickHook(IntPtr handle, IStickPointProvider pointProvider)
 {
     this.handle        = handle;
     this.pointProvider = pointProvider;
     this.hookDelegate  = new Win32.WinEventDelegate(WndProc2);
 }
Beispiel #3
0
 public StickPointProviderCollection AddProvider(IStickPointProvider provider)
 {
     Ensure.NotNull(provider, "provider");
     providers.Add(provider);
     return(this);
 }