private void DownComic(object sender, EventArgs e) { if (downForm == null) { downForm = new DownLoadForm(); downForm.StartPosition = FormStartPosition.Manual; downForm.Location = new Point(this.Left + 55, this.Bottom - downForm.Height - 50); downForm.Show(); } else { downForm.Show(); } }
private void downnLoadTool_Click(object sender, EventArgs e)//下载漫画 { try { string savaPath = ""; DownLoadFile downFile; List <DownLoadFile> downFileList; downFileList = new List <DownLoadFile>(); ListViewItemInfo item = currentItem as ListViewItemInfo; if (downForm == null) { downForm = new DownLoadForm(); } if (File.Exists("CONFIG.INI")) { savaPath = ComicConfig.ReadConfig("savePath"); } else { savaPath = ".\\"; } foreach (Controls.CheckBoxEx i in checkPanel.Controls) { if (i.Checked) { if (item.UrlDictronary.ContainsKey(i.FullText)) { downFile = new DownLoadFile(); downFile.ComicUrl = item.UrlDictronary[i.FullText]; downFile.ComicName = comicNameLabel.Text.Substring(4) + i.Text; downFile.SavePath = savaPath; downFileList.Add(downFile); } } } downForm.StartPosition = FormStartPosition.Manual; downForm.Location = new Point(this.Left + 55, this.Bottom - downForm.Height - 50); downForm.Start(downFileList, decoder); downForm.Show(); } catch (Exception ex) { MessageBox.Show(ex.Message); } }
private void downnLoadTool_Click(object sender, EventArgs e)//下载漫画 { try { DownLoadFile downFile; List <DownLoadFile> downFileList; downFileList = new List <DownLoadFile>(); if (downForm == null) { downForm = new DownLoadForm(); } foreach (CheckBox i in checkPanel.Controls) { if (i.Checked) { if (downUrlDic.ContainsKey(i.Text)) { downFile = new DownLoadFile(); downFile.ComicUrl = downUrlDic[i.Text]; downFile.ComicName = comicNameLabel.Text.Substring(4) + i.Text; downFile.SavePath = "D:\\漫画\\"; downFileList.Add(downFile); } } } downForm.StartPosition = FormStartPosition.Manual; downForm.Location = new Point(this.Left + 55, this.Bottom - downForm.Height - 50); downForm.Start(downFileList, decoder); downForm.Show(); } catch (Exception ex) { MessageBox.Show(ex.Message); } }