예제 #1
0
파일: GpuRow.cs 프로젝트: ywscr/xenadmin
        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);
        }
예제 #2
0
 private void editButton_Click(object sender, EventArgs e)
 {
     using (var dlog = new GpuConfiguration(SelectedPGPUs))
         dlog.ShowDialog(Program.MainWindow);
 }