private void OnOpenDirectoryButtonClick(object sender, EventArgs e) { if (this.DumpFile != null) { ExplorerUtils.Open(this.DumpFile); } }
public void OpenDownloadDirectory() { var config = DoujinshiDownloader.Instance.Config.Values; var directory = PathUtils.GetPath(config.Content.DownloadDirectory); Directory.CreateDirectory(directory); ExplorerUtils.Open(directory); }
private void OnOpenButtonClick(object sender, EventArgs e) { var task = this.Task; var file = task.DownloadFile; if (file == null) { MessageBox.Show(this, SR.Get("Download.OpenDirectory.NotExist"), SR.Get("Download.OpenDirectory"), MessageBoxButtons.OK, MessageBoxIcon.Error, MessageBoxDefaultButton.Button1); } else { ExplorerUtils.Open(file.FilePath); } }