private void StartScanBtn_Click(object sender, EventArgs e) { if (IsScanWindowOpen()) { SSW.Activate(); } else { List <int> IDs = new List <int>(); foreach (DataGridViewRow Row in LogGrid.Rows) { if ((bool)Row.Cells[0].Value) { IDs.Add((int)Row.Cells[1].Value); } } SSW = new ScanSelectedWizard(); SSW.SetSourceAndLogs(this.CurrentSearchSource, IDs); SSW.Show(); } }
private void StartScanBtn_Click(object sender, EventArgs e) { if (IsScanWindowOpen()) { SSW.Activate(); } else { List<int> IDs = new List<int>(); foreach (DataGridViewRow Row in LogGrid.Rows) { if ((bool)Row.Cells[0].Value) IDs.Add((int)Row.Cells[1].Value); } SSW = new ScanSelectedWizard(); SSW.SetSourceAndLogs(this.CurrentSearchSource, IDs); SSW.Show(); } }