void ChangeNumberOfParallelDownloads() { ChangeNumberItemsTransfer u = new ChangeNumberItemsTransfer(groups[0].MaxItemsDownload); u.ShowDialog(); if (u.Flags) { groups[0].MaxItemsDownload = u.Number; } }
private void numberOfParallelDownloadsToolStripMenuItem_Click(object sender, EventArgs e) { if (parents != null && parents.Count == 1) { ChangeNumberItemsTransfer f = new ChangeNumberItemsTransfer(parents[0].MaxItemsDownload); f.ShowDialog(mainform); if (f.NumberItems != parents[0].MaxItemsDownload) { parents[0].MaxItemsDownload = f.NumberItems; } } }