private void _SaleCupon_P_RightHandUp(object sender, EventArgs e)
 {
     MainPageControl = new MainPageComponent();
     _Main_Initialize();
     _Global_C_AddControl(MainPageControl);
     _Global_C_RemoveControl(SaleCuponControl);
     SaleCuponControl.Dispose();
     SaleCuponControl = null;
 }
 private void _Main_P_RightHandUp(object sender, EventArgs e)
 {
     membershipControl = new ReadMembership();
     this._Global_C_RemoveControl(MainPageControl);
     MainPageControl.Dispose();
     MainPageControl = null;
     this._Global_C_AddControl(membershipControl);
     _Membership_Initialize();
 }
Esempio n. 3
0
 private void _Main_P_RightHandUp(object sender, RoutedEventArgs e)
 {
     barcodeControl = new ReadBarcode();
     this._Global_C_RemoveControl(MainPageControl);
     MainPageControl.Dispose();
     MainPageControl = null;
     this._Global_C_AddControl(barcodeControl);
     _Barcode_Initialize();
 }
        private void _Barcode_Initialize(object membershipId)
        {
            RESTful RestObj = new RESTful();

            IRestResponse <_REST_MembershipInfo> RESTMember = RestObj.RESTgetMember(Convert.ToInt64(membershipId));

            if (RESTMember.Data.membershipId == "0")
            {
                Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority.Send, new Action(delegate
                {
                    _NoticeScreen_Initialize("회원정보를 찾을 수 없습니다.");
                    _Global_C_ShowWaitingScreen();
                }));
                _Main_Initialize();
                MainPageControl = new MainPageComponent();
                _Global_C_AddControl(MainPageControl);
                _Global_C_RemoveControl(barcodeControl);
            }
            else
            {
                getCameraTS     = new ThreadStart(this._Barcode_TS_setTimer);
                getCameraThread = new Thread(getCameraTS);
                getCameraThread.Start();

                getBarcodeTS     = new ThreadStart(this._Barcode_TS_setBarcodeTimer);
                getBarcodeThread = new Thread(getBarcodeTS);
                getBarcodeThread.Start();



                Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority.Send, new Action(delegate
                {
                    _NoticeScreen_Initialize(RESTMember.Data.name + "님, 안녕하세요?");
                    this.txtBarcodeInput.Visibility = System.Windows.Visibility.Visible;
                    this.txtBarcodeInput.Text       = "";
                    this.txtBarcodeInput.Focus();
                    System.Windows.Input.Keyboard.Focus(this.txtBarcodeInput);
                    _Global_C_ShowWaitingScreen();
                }));
            }
        }
 private void _Main_P_RightHandUp(object sender, RoutedEventArgs e)
 {
     barcodeControl = new ReadBarcode();
     this._Global_C_RemoveControl(MainPageControl);
     MainPageControl.Dispose();
     MainPageControl = null;
     this._Global_C_AddControl(barcodeControl);
     _Barcode_Initialize();
 }
        private void _Barcode_Initialize(object membershipId)
        {   
            RESTful RestObj = new RESTful();

            IRestResponse<_REST_MembershipInfo> RESTMember = RestObj.RESTgetMember(Convert.ToInt64(membershipId));

            if (RESTMember.Data.membershipId == "0")
            {
                Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority.Send, new Action(delegate
                {
                    _NoticeScreen_Initialize("회원정보를 찾을 수 없습니다.");
                    _Global_C_ShowWaitingScreen();
                }));
                _Main_Initialize();
                MainPageControl = new MainPageComponent();
                _Global_C_AddControl(MainPageControl);
                _Global_C_RemoveControl(barcodeControl);

            }
            else
            {
                getCameraTS = new ThreadStart(this._Barcode_TS_setTimer);
                getCameraThread = new Thread(getCameraTS);
                getCameraThread.Start();

                getBarcodeTS = new ThreadStart(this._Barcode_TS_setBarcodeTimer);
                getBarcodeThread = new Thread(getBarcodeTS);
                getBarcodeThread.Start();

               

                Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority.Send, new Action(delegate
                {
                    _NoticeScreen_Initialize(RESTMember.Data.name + "님, 안녕하세요?");
                    this.txtBarcodeInput.Visibility = System.Windows.Visibility.Visible;
                    this.txtBarcodeInput.Text = "";
                    this.txtBarcodeInput.Focus();
                    System.Windows.Input.Keyboard.Focus(this.txtBarcodeInput);
                    _Global_C_ShowWaitingScreen();
                }));
            }
        }
 private void _Main_P_RightHandUp(object sender, EventArgs e)
 {
     membershipControl = new ReadMembership();
     this._Global_C_RemoveControl(MainPageControl);
     MainPageControl.Dispose();
     MainPageControl = null;
     this._Global_C_AddControl(membershipControl);
     _Membership_Initialize();
 }
 private void _SaleCupon_P_RightHandUp(object sender, EventArgs e)
 {
     MainPageControl = new MainPageComponent();
     _Main_Initialize();
     _Global_C_AddControl(MainPageControl);
     _Global_C_RemoveControl(SaleCuponControl);
     SaleCuponControl.Dispose();
     SaleCuponControl = null;
 }