コード例 #1
0
        private void downloadToSubfolderToolStripMenuItem_Click(object sender, EventArgs e)
        {
            SubFolderDialog dialog = new SubFolderDialog();
            DialogResult    dr     = dialog.ShowDialog(this);

            if (dr == DialogResult.OK)
            {
                Search        search;
                Search.Result result;
                for (int n = 0; n < resultsDataGridView.SelectedRows.Count; n++)
                {
                    if (resultsDataGridView.Tag != null && Core.Searches.TryGetValue((string)resultsDataGridView.Tag, out search) && search.Results.TryGetValue(((RandomTag <string>)resultsDataGridView.SelectedRows[n].Tag).Tag, out result))
                    {
                        Core.AddDownload(result, dialog.getName());
                    }
                }
            }
            dialog.Dispose();
        }
コード例 #2
0
        private void downloadToSubfolderToolStripMenuItem_Click(object sender, EventArgs e)
        {
            SubFolderDialog dialog = new SubFolderDialog();
            DialogResult dr = dialog.ShowDialog(this);

            if (dr == DialogResult.OK)
            {
                Search search;
                Search.Result result;
                for (int n = 0; n < resultsDataGridView.SelectedRows.Count; n++)
                    if (resultsDataGridView.Tag != null && Core.Searches.TryGetValue((string)resultsDataGridView.Tag, out search) && search.Results.TryGetValue(((RandomTag<string>)resultsDataGridView.SelectedRows[n].Tag).Tag, out result))
                        Core.AddDownload(result, dialog.getName());
            }
            dialog.Dispose();
        }