public void OnDeviceActivityStart(CloverDeviceEvent deviceEvent)
 {
     OnDeviceActivityStartMessage method = new OnDeviceActivityStartMessage();
     method.payload = deviceEvent;
     string messageContent = Serialize(method);
     WebSocket.Send(messageContent);
 }
 public void OnDeviceActivityEnd(CloverDeviceEvent deviceEvent)
 {
     try
     {
         uiThread.Send(delegate (object state) {
             UIStateButtonPanel.Controls.Clear();
             DeviceCurrentStatus.Text = " ";
         }, null);
     }
     catch(Exception e)
     {
         // if UI goes away, uiThread may be disposed
     }
 }
        ////////////////// CloverDeviceLister Methods //////////////////////
        public void OnDeviceActivityStart(CloverDeviceEvent deviceEvent)
        {
            uiThread.Send(delegate (object state) {
                UIStateButtonPanel.Controls.Clear();
                if (deviceEvent.InputOptions != null)
                {
                    foreach (InputOption io in deviceEvent.InputOptions)
                    {
                        Button b = new Button();
                        b.FlatStyle = FlatStyle.Flat;
                        b.BackColor = Color.White;
                        b.Text = io.description;
                        b.Click += io.handler;
                        UIStateButtonPanel.Controls.Add(b);
                    }

                }
                UIStateButtonPanel.Parent.PerformLayout();
                DeviceCurrentStatus.Text = deviceEvent.Message;
            }, null);
        }
 ////////////////// CloverDeviceLister Methods //////////////////////
 public void OnDeviceActivityStart(CloverDeviceEvent deviceEvent)
 {
     uiThread.Send(delegate (object state) {
         DeviceCurrentStatus.Text = deviceEvent.Message;
     }, null);
 }
 public void OnDeviceActivityEnd(CloverDeviceEvent deviceEvent)
 {
     uiThread.Send(delegate (object state) {
         DeviceCurrentStatus.Text = "";
     }, null);
 }
Beispiel #6
0
 public void OnDeviceActivityStart(CloverDeviceEvent deviceEvent)
 {
     throw new NotImplementedException();
 }
Beispiel #7
0
 public virtual void OnDeviceActivityStart(CloverDeviceEvent deviceEvent)
 {
 }
 public void OnDeviceActivityStart(CloverDeviceEvent deviceEvent)
 {
     Send("/DeviceActivityStart", Serialize(deviceEvent));
 }
        ////////////////// CloverDeviceListener Methods //////////////////////
        public void OnDeviceActivityStart(CloverDeviceEvent deviceEvent)
        {
            uiThread.Send(delegate (object state) {
                this.TabControl.Enabled = false;
                if (TabControl.SelectedIndex == 0)
                {
                    newOrderBtn.Enabled = false;
                    SaleButton.Enabled = false;
                    AuthButton.Enabled = false;
                }
                UIStateButtonPanel.Controls.Clear();
                if (deviceEvent.InputOptions != null)
                {
                    foreach (InputOption io in deviceEvent.InputOptions)
                    {
                        Button b = new Button();
                        b.FlatStyle = FlatStyle.Flat;
                        b.BackColor = Color.White;
                        b.Text = io.description;
                        b.Click += getHandler(io);
                        UIStateButtonPanel.Controls.Add(b);
                    }

                }
                UIStateButtonPanel.Parent.PerformLayout();
                DeviceCurrentStatus.Text = deviceEvent.Message;
            }, null);
        }
 public void OnDeviceActivityStart(CloverDeviceEvent deviceEvent)
 {
 }
 public void OnDeviceActivityEnd(CloverDeviceEvent deviceEvent)
 {
 }