A class for storing event information relating to a user's selected tag expression for a test run.
Inheritance: System.EventArgs
        /// <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();
            }
        }
Beispiel #2
0
        /// <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);
            }
        }
Beispiel #3
0
        /// <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);
     }
 }
Beispiel #6
0
        /// <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 = 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>
        /// 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();
            }
        }