public FrmQuickSale()
        {
            InitializeComponent();
            foreach (var s in RemoteDBs.Live.Items.Get)
            {
                ItemBarcodes.Add(s.Value.Barcode);
            }

            #region KeyInput Handle
            AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException;
            _KeyInput = new RawInput(this.Handle, true);

            _KeyInput.KeyPressed += OnKeyPressed;
            #endregion
        }
Exemple #2
0
        public UIMenuA()
        {
            InitializeComponent();
            foreach (var s in client.ps.Live.Items)
            {
                ItemBarcodes.Add(s.Value.Barcode);
            }

            #region KeyInput Handle
            AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException;
            _KeyInput = new RawInput(this.Handle, true);

            _KeyInput.KeyPressed += OnKeyPressed;
            #endregion

            client.ps.Live.OnChange += OnLiveDBChange;
            DelOnLiveDBChange        = new Action(RunOnLiveDBChange);
        }
Exemple #3
0
        public UIMenu()
        {
            InitializeComponent();
            int itemC = 0;

            foreach (var s in client.ps.Live.Items)
            {
                if (itemC < 100)
                {
                    UItem item = new UItem {
                        _Code = s.Key                      /*Name = s.Key.ToString()*/
                    };
                    DrawCodes.Add(s.Key);
                    item.CartItemSelected += CartItem_Selected;
                    //item.DoubleClick += BtnAddToCart_Click;
                    //item.PB.DoubleClick += BtnAddToCart_Click;
                    //item.btnaddtoc.Click += BtnAddToCart_Click;
                    flPanel.Controls.Add(item);
                }
                itemC++;
                ItemBarcodes.Add(s.Value.Barcode);
            }
            CBItemCount.SelectedIndex = 0;



            uiBasicSale1.TxtCode.KeyDown += TxtCode_KeyDown;
            uiBasicSale1.TxtQty.KeyDown  += TxtQty_KeyDown;
            uiBasicSale1.btnIssue.Click  += BtnIssue_Click;
            //Forms.frmWaiting = new UIForms.FrmWaiting(UIForms.ServerStatus.Waiting);
            // Forms.frmWaiting.Show();

            #region KeyInput Handle
            AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException;
            _KeyInput = new RawInput(this.Handle, true);

            _KeyInput.KeyPressed += OnKeyPressed;
            #endregion

            //foreach (var s in _KeyInput._keyboardDriver.GetNames()) Debug.WriteLine($">>{s}");
        }