private void DOWNLOAD_BUTTON_Click(object sender, EventArgs e) { Webtoon.DownloadBlockList.Clear( ); int count = 0; for (int i = 0; i < webtoonPageList.Controls.Count; i++) { WebtoonListChild webtoonListChild = ( WebtoonListChild )webtoonPageList.Controls[i]; if (webtoonListChild.blocked) { Webtoon.DownloadBlockList.Add(webtoonListChild.info.num); count++; } } if (count >= baseInformation.pages.Count) { NotifyBox.Show(this, "오류", "최소 1개의 화는 다운받아야 합니다.", NotifyBoxType.OK, NotifyBoxIcon.Error); return; } FolderBrowserDialog dialog = new FolderBrowserDialog( ) { ShowNewFolderButton = true, Description = "해당 웹툰을 어디에 저장하시겠습니까?" }; if (dialog.ShowDialog( ) == DialogResult.OK) { Webtoon.BaseDirectory = dialog.SelectedPath; DownloadOptionReturn.Invoke(DownloadOptionResult.DownloadClick, null); } }
private void CLOSE_BUTTON_Click(object sender, EventArgs e) { NotifyBoxResult result = NotifyBox.Show(this, "질문", "다운로드를 취소하시겠습니까?", NotifyBoxType.YesNo, NotifyBoxIcon.Question); if (result == NotifyBoxResult.Yes) { DownloadOptionReturn.Invoke(DownloadOptionResult.Cancel, null); } }