Exemplo n.º 1
0
            public MessageHook(MessagePumpManager owner)
            {
                // Создаем окно
                this.CreateHandle(new System.Windows.Forms.CreateParams());

                // Свяжем жизнь класса с его владельцем
                owner.MessagePumpManagerStoped += new EventHandler(owner_MessagePumpManagerStoped);
            }
Exemplo n.º 2
0
 public CoinChanger()
 {
     this._Disposed                     = false;
     this._IsOpen                       = false;
     this._CommunicationType            = CommunicationType.USB; // по умолчанию, USB
     this._ErrorList                    = new CoinChangerErrorList();
     this._StatusList                   = new CoinChangerStatusList();
     this.LastCoinChangerStatus         = new CoinMessage();
     this.LastCoinChangerError          = new CoinMessage();
     this._MessagePump                  = new MessagePumpManager(this);
     this._MessagePump.MessageReceived += new EventHandler <MessageEventArgs>(_MessagePump_MessageReceived);
     this._Coins = new CoinsList();
 }