void brainRunStateUpdate() { if (backlogic.Is_calculation_running) { stopBTN.Visible = !(SRB_config.Enabled = ScanNodeBTN.Enabled = runBTN.Visible = nodesTable.Enabled = false); if (config_ctrl != null) { config_ctrl.Enabled = false; } if (scanNodeCtrl != null) { scanNodeCtrl.Enabled = false; } backlogic.endScan(); foreach (BaseNode n in backlogic.Nodes) { if (n != null) { n.closeNodeForm(); } } } else { stopBTN.Visible = !(SRB_config.Enabled = ScanNodeBTN.Enabled = runBTN.Visible = nodesTable.Enabled = true); if (config_ctrl != null) { config_ctrl.Enabled = true; } if (scanNodeCtrl != null) { scanNodeCtrl.Enabled = true; } } }
private void toolStripButton1_Click(object sender, EventArgs e) { backlogic.endScan(); }