Esempio n. 1
0
        public void sendPituresToAPI(UPCProductReference UPCRefereceListSelected, KinectScanConfig kinectScanConfig)
        {
            TensorIoTAPI TensorAPI  = new TensorIoTAPI();
            string       sendResult = TensorAPI.SendPicturesToAWS(UPCRefereceListSelected.UPCcode, UPCRefereceListSelected.RefNo);

            if (!string.IsNullOrEmpty(sendResult))
            {
                mw.ErrorPopup(sendResult, backToMainPage: true, fromAPI: true);
            }
        }
Esempio n. 2
0
 private void PopulateProductFields(UPCProductReference UPCRefereceListSelected)
 {
     UPCcode_TextBox.Text     = UPCRefereceListSelected.UPCcode;
     SKUcode_TextBox.Text     = UPCRefereceListSelected.SKU;
     DescriptionTextBox.Text  = UPCRefereceListSelected.desc;
     RefNo_TextBox.Text       = UPCRefereceListSelected.RefNo;
     ManufacturerTextBox.Text = UPCRefereceListSelected.brandName;
     BrandTextBox.Text        = UPCRefereceListSelected.brandName;
     PackageGroupTextBox.Text = UPCRefereceListSelected.packageGroup;
     WeightTextBox.Text       = UPCRefereceListSelected.weight;
     HeightTextBox.Text       = UPCRefereceListSelected.height;
     WidthTextBox.Text        = UPCRefereceListSelected.width;
     LengthTextBox.Text       = UPCRefereceListSelected.length;
 }
Esempio n. 3
0
        public Scan1(UPCProductReference UPCRefereceListSelected)
        {
            this.UPCRefereceListSelected = UPCRefereceListSelected;
            InitializeComponent();
            //NavigationService.LoadCompleted += NavigationService_LoadCompleted;
            this.DataContext = this;
            //this.UPCtextbox = UPCtextbox;

            StopAndHideKinectStream();
            PopulateProductFields(UPCRefereceListSelected);
            PicturePreviewing();


            // create timer to continously read pictures created by KinectScan
            System.Windows.Threading.DispatcherTimer dispatcherTimer = new System.Windows.Threading.DispatcherTimer();
            dispatcherTimer.Tick    += dispatcherTimer_Tick;
            dispatcherTimer.Interval = new TimeSpan(0, 0, 1);
            dispatcherTimer.Start();
        }