Exemplo n.º 1
0
 private void chkDoublePages_Click(object sender, EventArgs e)
 {
     IniInfo.PageDodule = chkDoublePages.Checked.ToString();
     ClsWriteIni.WriteScan();
 }
Exemplo n.º 2
0
 private void rdHorpages_Click(object sender, EventArgs e)
 {
     IniInfo.ImgDirection = "1";
     ClsWriteIni.WriteScan();
 }
Exemplo n.º 3
0
 private void GetScanCs()
 {
     try {
         ClsWriteIni.Getscan();
         if (IniInfo.PageDodule.Length > 0)
         {
             chkDoublePages.Checked = Convert.ToBoolean(IniInfo.PageDodule);
         }
         if (IniInfo.PageSize.Length > 0)
         {
             comPagesSize.SelectedIndex = Convert.ToInt32(IniInfo.PageSize);
         }
         else
         {
             comPagesSize.SelectedIndex = 1;
         }
         if (IniInfo.ImgDirection.Length > 0)
         {
             if (IniInfo.ImgDirection == "0")
             {
                 rdVerPages.Checked = true;
             }
             else
             {
                 rdHorpages.Checked = true;
             }
         }
         else
         {
             rdVerPages.Checked = true;
         }
         if (IniInfo.PageColor.Length > 0)
         {
             if (IniInfo.PageColor == "黑白")
             {
                 rdColorWithe.Checked = true;
             }
             else if (IniInfo.PageColor == "灰度")
             {
                 rdColorGray.Checked = true;
             }
             else
             {
                 rdColorRed.Checked = true;
             }
         }
         else
         {
             rdColorRed.Checked = true;
         }
         if (IniInfo.FeedModule.Length > 0)
         {
             if (IniInfo.FeedModule == "1")
             {
                 rdFeedFlat.Checked = true;
             }
             else
             {
                 rdFeedAuto.Checked = true;
             }
         }
         else
         {
             rdFeedAuto.Checked = true;
         }
         if (IniInfo.PageDpi.Length > 0)
         {
             comBoxDpi.Text = IniInfo.PageDpi;
         }
         else
         {
             comBoxDpi.SelectedIndex = 0;
         }
         if (IniInfo.ScanModule.Length > 0)
         {
             comBoxScanMode.SelectedIndex = Convert.ToInt32(IniInfo.ScanModule);
         }
         else
         {
             comBoxScanMode.SelectedIndex = 0;
         }
     } catch { }
 }