private void TestForm_Load(object sender, EventArgs e) { foreach (IModuleDescriptor effectDescriptor in _effects) { comboBoxEffect.Items.Add(effectDescriptor.TypeName); } foreach (ChannelNode node in _nodes) { checkedListBox.Items.Add(node.Name); } try { if (!Execution.IsInTest) { if (Execution.IsOpen) { Execution.CloseExecution(); } Execution.OpenTest(); if (!Execution.IsInTest) { throw new Exception("Could not get into the test state."); } } } catch (Exception ex) { MessageBox.Show(ex.Message); DialogResult = DialogResult.Cancel; } }
private void stopToolStripMenuItem_Click(object sender, EventArgs e) { Execution.CloseExecution(); }