示例#1
0
 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();
     }
 }
示例#2
0
        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();
            }
        }