private void editButton_Click(object sender, EventArgs e) { if (pGpus.Count == 0) { return; } var selectedPGPUs = pGpus.Count > 1 ? (from kvp in pGpus where kvp.Value != null && kvp.Value.Checked select kvp.Key).ToList() : new List <PGPU> { pGpus.Keys.ElementAt(0) }; using (var dlog = new GpuConfiguration(selectedPGPUs)) dlog.ShowDialog(Program.MainWindow); }
private void editButton_Click(object sender, EventArgs e) { using (var dlog = new GpuConfiguration(SelectedPGPUs)) dlog.ShowDialog(Program.MainWindow); }