コード例 #1
0
ファイル: Entry.cs プロジェクト: nymda/KDownloader-Recoded
 private void Entry_Load(object sender, EventArgs e)
 {
     populateDefaultCdatItems();
     CDATselect.CheckOnClick = true;
     setTemplate             = template169;
     readCamConf();
 }
コード例 #2
0
ファイル: Entry.cs プロジェクト: nymda/KDownloader-Recoded
 private void rb43_CheckedChanged(object sender, EventArgs e)
 {
     if (rb43.Checked)
     {
         setTemplate     = template43;
         nudWidth.Value  = setTemplate.width;
         nudHeight.Value = setTemplate.height;
         aspectRatio nar = calcAspectRatio(setTemplate.width, setTemplate.height, (int)nudWidth.Value);
         setAspectRatio = nar;
     }
 }
コード例 #3
0
ファイル: Entry.cs プロジェクト: nymda/KDownloader-Recoded
 private void nudWidth_ValueChanged(object sender, EventArgs e)
 {
     if (rb169.Checked || rb43.Checked)
     {
         aspectRatio nar = calcAspectRatio(setTemplate.width, setTemplate.height, (int)nudWidth.Value);
         setAspectRatio  = nar;
         nudHeight.Value = nar.height;
     }
     else
     {
         setAspectRatio = new aspectRatio((int)nudWidth.Value, (int)nudHeight.Value);
     }
 }
コード例 #4
0
ファイル: Entry.cs プロジェクト: nymda/KDownloader-Recoded
        private void btnStart_Click(object sender, EventArgs e)
        {
            if (rbCustom.Checked)
            {
                setAspectRatio = new aspectRatio((int)nudWidth.Value, (int)nudHeight.Value);
            }

            Form loading = new spawningThreadMsg();

            loading.Show();

            this.Hide();

            if (CBrandOrd.Checked)
            {
                RNGCryptoServiceProvider rnd2 = new RNGCryptoServiceProvider();
                ipAddrs = ipAddrs.OrderBy(x => GetNextInt32(rnd2)).ToList();
            }

            entryViewerLink enl = new entryViewerLink();

            enl.threadCount    = threadCount;
            enl.cdat           = setCamData;
            enl.imgdir         = saveImgPath;
            enl.outdir         = savePath;
            enl.ips            = ipAddrs;
            enl.showing        = loading;
            enl.console        = CBthreadDebug.Checked;
            enl.ipTag          = cbIpStamp.Checked;
            enl.style          = setStyle;
            enl.luc            = font;
            enl.normaliseImage = isNormalising;
            enl.setAR          = setAspectRatio;
            enl.normaliseImage = isNormalising;
            enl.setAR          = setAspectRatio;
            enl.timestamp      = cbTime.Checked;
            enl.anonFileNames  = cbCenNames.Checked;

            using (var form = new viewer(enl)){
                var res = form.ShowDialog();
                if (res == DialogResult.OK)
                {
                    this.Show();
                }
            }
        }
コード例 #5
0
 public viewer(entryViewerLink enl)
 {
     InitializeComponent();
     this.showing       = enl.showing;
     this.threadCount   = enl.threadCount;
     this.setCamData    = enl.cdat;
     this.imgdir        = enl.imgdir;
     this.outdir        = enl.outdir;
     this.console       = enl.console;
     this.ipTag         = enl.ipTag;
     this.style         = enl.style;
     this.luc           = enl.luc;
     this.normalising   = enl.normaliseImage;
     this.setAR         = enl.setAR;
     this.ipAddrs       = enl.ips;
     this.timestamp     = enl.timestamp;
     this.anonFileNames = enl.anonFileNames;
 }