private void cbxOutputLevel_SelectionChanged(object sender, SelectionChangedEventArgs e) { var comboBox = sender as ComboBox; Properties.Settings.Default.IdxOutputLevel = comboBox.SelectedIndex; Properties.Settings.Default.Save(); m_mainEvents?.OnSetOutputLevel(comboBox.SelectedIndex + 1); }
/// <summary> /// Initializes a new instance of the <see cref="TestExecWindowControl"/> class. /// </summary> public TestExecWindowControl(IMainEvents in_mainEvents, IEventReceiver in_eventReceiver, IExecute in_executor) : this() { m_mainEvents = in_mainEvents; m_evenReceiver = in_eventReceiver; m_executor = in_executor; m_mainEvents.OnSetOutputLevel(Properties.Settings.Default.IdxOutputLevel + 1); m_executor.SetMemLeakCheck(Properties.Settings.Default.CheckForMemoryLeaks); }