public RunWindow(ControllerComparisonFaultModel faultModel, Action<string> logFunction) { InitializeComponent(); this.log = logFunction; this.faultModel = faultModel; this.EnableDWMDropShadow = true; this.testModel = TestRunWorker.TestModel.Both; }
private void ComboBox_SelectionChanged(object sender, SelectionChangedEventArgs e) { switch((e.Source as ComboBox).SelectedIndex) { case 0: testModel = TestRunWorker.TestModel.Both; break; case 1: testModel = TestRunWorker.TestModel.ProjectModel; break; case 2: testModel = TestRunWorker.TestModel.ComparedModel; break; } }