/// -------------------------------------------------------------------- /// <summary> /// Handles the click event for the Start App button. /// </summary> /// <param name="sender">The object that raised the event.</param> /// <param name="e">Event arguments.</param> /// -------------------------------------------------------------------- private void buttonStartTarget_Click(object sender, RoutedEventArgs e) { _targetApp = StartTargetApp(_filePath); if (_targetApp == null) { Feedback("Unable to start target application."); SetClientControlState(ControlState.UIAStopped); return; } Feedback("Target started."); _targetHandler = new TargetHandler(this, _targetApp); _targetHandler.StartWork(); SetClientControlState(ControlState.TargetStarted); }