Exemple #1
0
        /// <summary>
        /// Reset copy command parameter to default value.
        /// </summary>
        public void ResetToDefaultValue()
        {
            bool bIsMetrice = dll.IsMetricCountry();

            m_scaling   = 100;
            m_scanMode  = EnumCopyScanMode.Photo;
            m_nin1      = EnumNin1._1up;
            m_dpi       = EnumCopyResln._300x300;
            m_mediaType = EnumMediaType.Plain;

            m_density = 2;
            chkBtnIDCardCopy.IsChecked = false;
            spinCtlCopies.Value        = 1;

            if (bIsMetrice)
            {
                m_docSize    = EnumPaperSizeInput._A4;
                m_outputSize = EnumPaperSizeOutput._A4;
            }
            else
            {
                m_docSize    = EnumPaperSizeInput._Letter;
                m_outputSize = EnumPaperSizeOutput._Letter;
            }
        }
Exemple #2
0
        private void btnDefault_Click(object sender, RoutedEventArgs e)
        {
            cboDocSize.Items.Clear();
            cboResolution.Items.Clear();
            cboOutputSize.Items.Clear();
            cboMediaType.Items.Clear();

            bool bIsMetrice = dll.IsMetricCountry();

            spinnerScaling.Value = 100;
            m_scanMode           = EnumCopyScanMode.Photo;

            if (bIsMetrice)
            {
                m_docSize    = EnumPaperSizeInput._A4;
                m_outputSize = EnumPaperSizeOutput._A4;
            }
            else
            {
                m_docSize    = EnumPaperSizeInput._Letter;
                m_outputSize = EnumPaperSizeOutput._Letter;
            }

            //if ( true == m_isIDCardCopy )
            //    m_outputSize = EnumPaperSizeOutput._A4;

            m_nin1      = EnumNin1._1up;
            m_dpi       = m_isIDCardCopy ? EnumCopyResln._600x600 : EnumCopyResln._300x300;
            m_mediaType = EnumMediaType.Plain;
            m_preNin1   = EnumNin1._2up;

            InitCboDocSize();
            InitCboResolution();
            InitCboOutputSize();
            InitCboMediaType();
            InitNin1();

            if (EnumCopyScanMode.Text == m_scanMode)
            {
                rdBtnScanModeTxt.IsChecked   = true;
                rdBtnScanModePhoto.IsChecked = false;
            }
            else if (EnumCopyScanMode.Photo == m_scanMode)
            {
                rdBtnScanModeTxt.IsChecked   = false;
                rdBtnScanModePhoto.IsChecked = true;
            }

            chkpopupIDCard.IsChecked = true;
            chkpopupNIn1.IsChecked   = true;
        }
Exemple #3
0
        private void SettingBtnClick(object sender, RoutedEventArgs e)
        {
            CopySetting win = new CopySetting();

            if (true == chkBtnIDCardCopy.IsChecked)
            {
                win.m_isIDCardCopy = true;
                ResetValueForIDCardCopy();
            }

            win.Owner = m_MainWin;

            win.spinnerScaling.Value = m_scaling;
            win.m_scanMode           = m_scanMode;
            win.m_docSize            = m_docSize;
            win.m_outputSize         = m_outputSize;
            win.m_nin1      = m_nin1;
            win.m_dpi       = m_dpi;
            win.m_mediaType = m_mediaType;

            win.m_popupDlgIDCardCopy = m_MainWin.m_popupIDCard;
            win.m_popupDlgNIn1Copy   = m_MainWin.m_popupNIn1;

            if (true == win.ShowDialog())
            {
                m_scaling    = (ushort)win.spinnerScaling.Value;
                m_scanMode   = win.m_scanMode;
                m_docSize    = win.m_docSize;
                m_outputSize = win.m_outputSize;
                m_nin1       = win.m_nin1;
                m_dpi        = win.m_dpi;
                m_mediaType  = win.m_mediaType;

                m_MainWin.m_popupIDCard = win.m_popupDlgIDCardCopy;
                m_MainWin.m_popupNIn1   = win.m_popupDlgNIn1Copy;
            }
        }
Exemple #4
0
 private void rdBtnScanModeTxt_Checked(object sender, RoutedEventArgs e)
 {
     m_scanMode = EnumCopyScanMode.Text;
 }
Exemple #5
0
 private void rdBtnScanModePhoto_Checked(object sender, RoutedEventArgs e)
 {
     m_scanMode = EnumCopyScanMode.Photo;
 }