/// <summary> /// Handles the completion event on the tag expression editor to begin /// the test run using the user-provided settings. /// </summary> /// <param name="sender">The source object.</param> /// <param name="e">The event arguments.</param> protected virtual void OnTagExpressionSelected(object sender, TagExpressionEventArgs e) { TagEditor te = sender as TagEditor; if (te != null) { te.Complete -= OnTagExpressionSelected; } overlayGrid.Children.Clear(); overlayGrid.Visibility = Visibility.Collapsed; if (_harness != null) { if (e != null && _harness.Settings != null) { _harness.Settings.TagExpression = e.TagExpression; // Provide clear indication of a tag expression when in use. if (!string.IsNullOrEmpty(e.TagExpression)) { Notifications.AddNotification(new Notification { Title = "Tag Expression in Use", Content = e.TagExpression, }); } } // Start the test run StartTestRun(); } }
/// <summary> /// Fires the Complete event. /// </summary> /// <param name="e">The event arguments.</param> protected virtual void OnComplete(TagExpressionEventArgs e) { EventHandler <TagExpressionEventArgs> handler = Complete; if (handler != null) { handler(this, e); } }
/// <summary> /// Fires the Complete event. /// </summary> /// <param name="e">The event arguments.</param> protected virtual void OnComplete(TagExpressionEventArgs e) { IsolatedStorageSettings.ApplicationSettings[TagLastRunHistoryKey] = _lastRunUsedExpressions; EventHandler <TagExpressionEventArgs> handler = Complete; if (handler != null) { handler(this, e); } }
/// <summary> /// Handles the completion event on the tag expression editor to begin /// the test run using the user-provided settings. /// </summary> /// <param name="sender">The source object.</param> /// <param name="e">The event arguments.</param> protected virtual void OnTagExpressionSelected(object sender, TagExpressionEventArgs e) { TagEditor te = sender as TagEditor; if (te != null) { te.Complete -= OnTagExpressionSelected; } // overlayGrid.Children.Clear(); // overlayGrid.Visibility = System.Windows.Visibility.Collapsed; if (_harness != null) { if (e != null && _harness.Settings != null) { _harness.Settings.TagExpression = e.TagExpression; } // Start the test run StartTestRun(); } }
/// <summary> /// Fires the Complete event. /// </summary> /// <param name="e">The event arguments.</param> protected virtual void OnComplete(TagExpressionEventArgs e) { EventHandler<TagExpressionEventArgs> handler = Complete; if (handler != null) { handler(this, e); } }
/// <summary> /// Fires the Complete event. /// </summary> /// <param name="e">The event arguments.</param> protected virtual void OnComplete(TagExpressionEventArgs e) { IsolatedStorageSettings.ApplicationSettings[TagLastRunHistoryKey] = _lastRunUsedExpressions; EventHandler<TagExpressionEventArgs> handler = Complete; if (handler != null) { handler(this, e); } }