Exemplo n.º 1
0
 private void WorkflowScannerWindow_FormClosing(object sender, FormClosingEventArgs e)
 {
     try
     {
         WorkflowScanner.StopWorkFlowScans();
     }
     catch { }
 }
Exemplo n.º 2
0
 private void WorkflowScannerWindow_Load(object sender, EventArgs e)
 {
     foreach (string Host in WorkflowScanner.GetWorkflowHostsList())
     {
         HostnamesScopeGrid.Rows.Add(new object[] { true, Host });
     }
     foreach (int[] Marker in WorkflowScanner.GetWorkflowMarkersList())
     {
         WorkflowsGrid.Rows.Add(new object[] { WorkflowsGrid.Rows.Count + 1, string.Format("{0} - {1}", Marker[0], Marker[1]) });
     }
 }
Exemplo n.º 3
0
 private void ScanBtn_Click(object sender, EventArgs e)
 {
     if (ScanBtn.Text.Equals("Scan Workflows"))
     {
         ScanBtn.Text = "Stop Scan";
         List <string> AllowedHosts = new List <string>();
         foreach (DataGridViewRow Row in HostnamesScopeGrid.Rows)
         {
             if ((bool)Row.Cells[0].Value)
             {
                 AllowedHosts.Add(Row.Cells[1].Value.ToString());
             }
         }
         StatusProgressBar.Visible = true;
         WorkflowScanner.SetAllowedWorkflowHosts(AllowedHosts);
         WorkflowScanner.StartWorkFlowScans();
     }
     else
     {
         WorkflowScanner.StopWorkFlowScans();
         StatusProgressBar.Visible = false;
         ScanBtn.Text = "Scan Workflows";
     }
 }