예제 #1
0
 /// <summary>
 /// Set Original size
 /// </summary>
 /// <param name="originalSize">Original size to set</param>
 public void SetOriginalSize(RegusKioskOriginalSize originalSize)
 {
     if (!SetOption(originalSize.GetDescription()))
     {
         throw new DeviceWorkflowException($"Can not set original size :: {originalSize.GetDescription()}");
     }
 }
예제 #2
0
        /// <summary>
        /// Set paper source
        /// </summary>
        /// <param name="papersource">paper source to set</param>
        public void SetPaperSource(RegusKioskOriginalSize papersource)
        {
            if (!_controller.Click(new UiSelector().ResourceId($"{_packageName}:id/paper_src_btn")))
            {
                throw new DeviceWorkflowException($"Failed to click Paper Source list :: {papersource.GetDescription()}");
            }

            if (!SetOption(papersource.GetDescription()))
            {
                throw new DeviceWorkflowException($"Can not set paper source :: {papersource.GetDescription()}");
            }
        }
예제 #3
0
        private void GetResuceEnlargeDataSource()
        {
            RegusKioskOriginalSize originalSize = EnumUtil.GetByDescription <RegusKioskOriginalSize>(originalsize_ComboBox.SelectedItem.ToString());

            switch (originalSize)
            {
            case RegusKioskOriginalSize.A3:
                reduceenlarge_ComgoBox.DataSource = EnumUtil.GetDescriptions <RegusKioskA3ReduceEnlarge>().ToList();
                break;

            case RegusKioskOriginalSize.A4:
                reduceenlarge_ComgoBox.DataSource = EnumUtil.GetDescriptions <RegusKioskA4ReduceEnlarge>().ToList();
                break;

            case RegusKioskOriginalSize.A5:
                reduceenlarge_ComgoBox.DataSource = EnumUtil.GetDescriptions <RegusKioskA5ReduceEnlarge>().ToList();
                break;

            case RegusKioskOriginalSize.B4:
                reduceenlarge_ComgoBox.DataSource = EnumUtil.GetDescriptions <RegusKioskB4ReduceEnlarge>().ToList();
                break;

            case RegusKioskOriginalSize.B5:
                reduceenlarge_ComgoBox.DataSource = EnumUtil.GetDescriptions <RegusKioskB5ReduceEnlarge>().ToList();
                break;

            case RegusKioskOriginalSize.Executive:
                reduceenlarge_ComgoBox.DataSource = EnumUtil.GetDescriptions <RegusKioskExecutiveReduceEnlarge>().ToList();
                break;

            case RegusKioskOriginalSize.Ledger:
                reduceenlarge_ComgoBox.DataSource = EnumUtil.GetDescriptions <RegusKioskLedgerReduceEnlarge>().ToList();
                break;

            case RegusKioskOriginalSize.Legal:
                reduceenlarge_ComgoBox.DataSource = EnumUtil.GetDescriptions <RegusKioskLegalReduceEnlarge>().ToList();
                break;

            case RegusKioskOriginalSize.Letter:
                reduceenlarge_ComgoBox.DataSource = EnumUtil.GetDescriptions <RegusKioskLetterReduceEnlarge>().ToList();
                break;

            case RegusKioskOriginalSize.Statement:
                reduceenlarge_ComgoBox.DataSource = EnumUtil.GetDescriptions <RegusKioskStatementReduceEnlarge>().ToList();
                break;
            }
        }