コード例 #1
0
            internal void Add(JobReservation jobReservation)
            {
                reservations.Insert(0, jobReservation);

                if (reservations.Count > 10)
                {
                    reservations.Remove(reservations.Last());
                }
            }
コード例 #2
0
        private void UpdateReservationLog(string jobName)
        {
            CloudBlockBlob blobReference = GetJobReservationBlob(jobName);

            JobReservationLog jobReservationLog = JobReservationLog.Make(blobReference.DownloadText());
            JobReservation    lastReservation   = jobReservationLog.LastReservation;

            if (lastReservation.Reserver == reserverName)
            {
                return;
            }

            UpdateBlobContent(jobReservationLog, blobReference);
        }
コード例 #3
0
        private static void JobReservationSettings(TwainDriverActivityData twainDriver)
        {
            _hpscanConfiguration.Button1903Button.PerformHumanAction(x => x.ClickWithMouse(MouseButton.Left, WindowsTimeout));
            string         machineName    = Environment.MachineName;
            JobReservation jobReservation = new JobReservation(_modelName, machineName);

            if (twainDriver.IsReservation)
            {
                if (!jobReservation.UsePINButton190CheckBox.IsEnabled())
                {
                    jobReservation.EnableReservatiCheckBox.PerformHumanAction(x => x.ClickWithMouse(MouseButton.Left, WindowsTimeout));
                }

                if (twainDriver.IsPinRequired)
                {
                    if (!jobReservation.JobNameHOLLAEdiEdit.IsEnabled())
                    {
                        jobReservation.UsePINButton190CheckBox.PerformHumanAction(x => x.ClickWithMouse(MouseButton.Left, WindowsTimeout));
                    }
                    jobReservation.JobNameHOLLAEdiEdit.PerformHumanAction(x => x.EnterText(twainDriver.Pin, WindowsTimeout));
                }
                else
                {
                    if (jobReservation.JobNameHOLLAEdiEdit.IsEnabled())
                    {
                        jobReservation.UsePINButton190CheckBox.PerformHumanAction(x => x.ClickWithMouse(MouseButton.Left, WindowsTimeout));
                    }
                }
            }
            else
            {
                if (jobReservation.UsePINButton190CheckBox.IsEnabled())
                {
                    jobReservation.EnableReservatiCheckBox.PerformHumanAction(x => x.ClickWithMouse(MouseButton.Left, WindowsTimeout));
                }
            }

            jobReservation.OKButton1156Button.PerformHumanAction(x => x.ClickWithMouse(MouseButton.Left, WindowsTimeout));
        }
コード例 #4
0
        internal void Add(JobReservation jobReservation)
        {
            reservations.Insert(0, jobReservation);

            if (reservations.Count > 10)
                reservations.Remove(reservations.Last());
        }