Exemple #1
0
        private void Start()
        {
            //this.Hide();

            _timer = new DispatcherTimer();
            _timer.Interval = TimeSpan.FromMilliseconds(10);
            _timer.Tick += _timer_Tick;
            _timer.Start();

            _events = new Events();
            _storage = new Storage(_events);
            _trayIcon = new TrayIcon(this);

            _events.OnInvokeDrop += _storage.Drop;
            _events.OnInvokeExpire += _storage.Expire;
            _events.OnInvokePeek += _storage.Peek;
            _events.OnInvokePoke += _storage.Poke;
            _events.OnInvokePinch += _storage.Pinch;
            _events.OnInvokePop += _storage.Pop;
            _events.OnInvokePush += _storage.Push;
            _events.OnInvokeShunt += _storage.Shunt;
            _events.OnInvokeReverse += _storage.Reverse;
            _events.OnInvokeRotateLeft += _storage.RotateLeft;
            _events.OnInvokeRotateRight += _storage.RotateRight;
            _events.OnInvokeSwap += _storage.Swap;
            _events.OnInvokeWipe += _storage.Wipe;
        }
Exemple #2
0
        private void Start()
        {
            //this.Hide();

            _timer          = new DispatcherTimer();
            _timer.Interval = TimeSpan.FromMilliseconds(10);
            _timer.Tick    += _timer_Tick;
            _timer.Start();

            _events   = new Events();
            _storage  = new Storage(_events);
            _trayIcon = new TrayIcon(this);

            _events.OnInvokeDrop        += _storage.Drop;
            _events.OnInvokeExpire      += _storage.Expire;
            _events.OnInvokePeek        += _storage.Peek;
            _events.OnInvokePoke        += _storage.Poke;
            _events.OnInvokePinch       += _storage.Pinch;
            _events.OnInvokePop         += _storage.Pop;
            _events.OnInvokePush        += _storage.Push;
            _events.OnInvokeShunt       += _storage.Shunt;
            _events.OnInvokeReverse     += _storage.Reverse;
            _events.OnInvokeRotateLeft  += _storage.RotateLeft;
            _events.OnInvokeRotateRight += _storage.RotateRight;
            _events.OnInvokeSwap        += _storage.Swap;
            _events.OnInvokeWipe        += _storage.Wipe;
        }