Exemplo n.º 1
0
        void BtnSendToUploadManagerClick(object sender, EventArgs e)
        {
            if (log.IsInfoEnabled)
            {
                log.Info("Adding new scan to upload manager queue");
            }

            ToggleUIControls();
            _scan.modelingOptions          = _modelOpts;
            _scan.metadata.uploadStartTime = DateTime.Now.ToString(Scan.DATE_FORMAT);
            _scan.WriteManifest();
            _uploader.AddScanToQueue(_scan.metadata.scanID);
            string message = "The order has been added to the upload queue and will be processed by the upload manager.";

            if (!_uploader.CheckForInternetConnection())
            {
                message = "There is currently no internet connection on this machine.  The order has been added to the upload queue and will be processed by the upload manager once internet connetivity is restored.";
            }
            LogWriteLn(message);
            ToggleUIControls();
        }