private void _bProductInf_Initialize(object barcode) { _Global_C_RemoveControl(barcodeControl); barcodeControl.Dispose(); barcodeControl = null; RESTful NetworkObj = new RESTful(); IRestResponse <_REST_ProductInfo> Product = NetworkObj.RESTgetProductByBarCode((string)barcode); if (Product.Data == null) { Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority.Send, new Action(delegate { _NoticeScreen_Initialize("상품정보를 찾을 수 없습니다."); _bProductInf_P_LeftHandUp(null, null); })); } else { if (Product.Data.lookType == 0) { if (TopLookId == 0) { TopLookId = Product.Data.id; } } else if (Product.Data.lookType == 1) { if (DownLookId == 0) { DownLookId = Product.Data.id; } } Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority.Send, new Action(delegate { bProductInfoControl = new BarcodeProductInfo(); bProductInfoControl.setProductInfo(Product); _Global_C_AddControl(bProductInfoControl); })); bProductInfoControl.btnNext.Click += new RoutedEventHandler(_bProductInf_P_RightHandUp); bProductInfoControl.btnReTakePicture.Click += new RoutedEventHandler(_bProductInf_P_LeftHandUp); bProductInfoControl.btnAddProduct.Click += new RoutedEventHandler(_bProductInf_P_HandOverHead); if (CurrentBarcodeReadMode == 1) { bProductInfoControl.hiddenUiAddProduct(); } _Global_C_ShowWaitingScreen(); } }
private void _bProductInf_Initialize(string barcode) { _Global_C_RemoveControl(barcodeControl); barcodeControl.Dispose(); barcodeControl = null; RESTful Network = new RESTful(); //Network.RESTfulSingleParmRequest(); bProductInfoControl = new BarcodeProductInfo(); _Global_C_AddControl(bProductInfoControl); Action <string> PostureEventHandler = _bProductInf_PostureAction; KinectController.ChangePostureEventHandler(PostureEventHandler); if (CurrentBarcodeReadMode == 1) { bProductInfoControl.hiddenUiAddProduct(); } }