/// <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);
            }
        }
Ejemplo n.º 2
0
        /// <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;
            }

            //TagEditorHolder.Children.Clear();
            TagEditorHolder.Visibility = Visibility.Collapsed;
            TestExecution.Visibility   = Visibility.Visible;

            if (_harness != null)
            {
                if (e != null && _harness.Settings != null)
                {
                    _harness.Settings.TagExpression = e.TagExpression;
                }

                // Start the test run
                StartTestRun();
            }
        }
Ejemplo n.º 3
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);
   }
 }
Ejemplo n.º 4
0
    /// <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;
      }

      //TagEditorHolder.Children.Clear();
      TagEditorHolder.Visibility = Visibility.Collapsed;
      TestExecution.Visibility = Visibility.Visible;

      if (_harness != null)
      {
        if (e != null && _harness.Settings != null)
        {
          _harness.Settings.TagExpression = e.TagExpression;
        }

        // Start the test run
        StartTestRun();
      }
    }