Example #1
0
        public void Init(string buttonkey, TouchLinkItem item, Form parent, object param, ref bool cancel)
        {
            try
            {
                _core      = (InfoPos.Core.Core)param;
                _resource  = _core.Resource;
                _kb        = new ISM.Touch.TouchKeyboard();
                _kb.Enable = true;

                this.ucCustSearch1.Remote   = _core.RemoteObject;
                this.ucCustSearch1.Core     = _core;
                this.ucCustSearch1.Resource = _resource;

                this.ucSalesProd1.Remote        = _core.RemoteObject;
                this.ucSalesProd1.Resource      = _core.Resource;
                this.ucSalesProd1.TouchKeyboard = _kb;

                this.ucContractSearch1.Core          = _core;
                this.ucContractSearch1.Remote        = _core.RemoteObject;
                this.ucContractSearch1.Resource      = _core.Resource;
                this.ucContractSearch1.TouchKeyboard = _kb;

                this.ucOrderSearch1.Core          = _core;
                this.ucOrderSearch1.Remote        = _core.RemoteObject;
                this.ucOrderSearch1.Resource      = _core.Resource;
                this.ucOrderSearch1.TouchKeyboard = _kb;

                this.ucPayment1.Core          = _core;
                this.ucPayment1.Remote        = _core.RemoteObject;
                this.ucPayment1.Resource      = _core.Resource;
                this.ucPayment1.TouchKeyboard = _kb;

                this.MdiParent = _core.MainForm;
                this.Show();
                if (item.Key == "fo_cashreg")
                {
                    FormLoad(param, 0);
                }
                if (item.Key == "fo_salesreturn")
                {
                    FormLoad(param, 1);
                }
                TabMAIN.ShowTabHeader = DevExpress.Utils.DefaultBoolean.False;
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }
        }
Example #2
0
        public void Init(string buttonkey, TouchLinkItem item, Form parent, object param, ref bool cancel)
        {
            try
            {
                _core = (InfoPos.Core.Core)param;
                if (_core != null)
                {
                    _remote   = _core.RemoteObject;
                    _resource = _core.Resource;
                }



                this.MdiParent = parent;
                this.Show();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }
        }