Exemplo n.º 1
0
        private void CommandOnCommandCompleted(object sender, CommandCompletedEventArgs e)
        {
            EventHandler <CommandCompletedEventArgs> handler = CommandCompleted;

            if (handler != null)
            {
                handler(sender, e);
            }
        }
Exemplo n.º 2
0
        protected virtual void OnCommandCompleted(CommandCompletedEventArgs e)
        {
            EventHandler <CommandCompletedEventArgs> handler = CommandCompleted;

            if (handler != null)
            {
                handler(this, e);
            }
        }
Exemplo n.º 3
0
        internal virtual void OnRaiseCommandCompleted(object sender, CommandCompletedEventArgs e)
        {
            EventHandler <CommandCompletedEventArgs> handler = CommandCompleted;

            if (handler != null)
            {
                handler(sender, e);
            }
        }
Exemplo n.º 4
0
 private void TestSuiteCommandCompleted(object sender, CommandCompletedEventArgs e)
 {
     dataGridView1.Rows.Add(
         "Command",
         e.CompletedExecutionTime,
         e.Package,
         e.CommandName,
         null,
         e.Results,
         true);
 }
Exemplo n.º 5
0
        /// <summary>
        /// Handles the CommandCompleted event of the testRunner control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="Wax.CommandCompletedEventArgs"/> instance containing the event data.</param>
        void TestRunnerCommandCompleted(object sender, CommandCompletedEventArgs e)
        {
            if (this.InvokeRequired)
            {
                this.Invoke(new EventHandler<CommandCompletedEventArgs>(TestRunnerCommandCompleted), new object[] { sender, e });
                return;
            }

            this.resultsLabel.Visible = true;
            this.resultsLabel.Text = string.Format(CultureInfo.InvariantCulture, Resource.ResultsLabel, e.NumberOfCompletedCommands, e.NumberOfFailedCommands);
        }
Exemplo n.º 6
0
 public void CommandCompletedChangedEvent(CommandCompletedEventArgs e)
 {
     CommandCompletedChanged?.Invoke(null, e);
 }
Exemplo n.º 7
0
 /// <summary>
 /// Handles the CommandCompleted event of the testManager control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="Wax.CommandCompletedEventArgs"/> instance containing the event data.</param>
 void TestManagerCommandCompleted(object sender, CommandCompletedEventArgs e)
 {
     if (this.CommandCompleted != null)
     {
         this.CommandCompleted(sender, e);
     }
 }
        /// <summary>
        /// Handles the CommandCompleted event of the test control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
        private void OnCommandCompleted(object sender, CommandCompletedEventArgs e)
        {
            if (e.Success)
            {
                this.numberOfCompletedCommands = this.numberOfCompletedCommands + 1;
            }
            else
            {
                this.numberOfFailedCommands = this.numberOfFailedCommands + 1;
            }

            if (this.Progress != null)
            {
                this.Progress(this, new TestProgressEventArgs(this.totalNumberOfCommands, this.numberOfCompletedCommands));
            }

            if (this.CommandCompleted != null)
            {
                this.CommandCompleted(sender, new CommandCompletedEventArgs(this.numberOfCompletedCommands, this.numberOfFailedCommands, e.Success));
            }
        }
 /// <summary>
 /// 
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void testRunner_CommandCompleted(object sender, CommandCompletedEventArgs e)
 {
     commandCompletedCount++;
 }
Exemplo n.º 10
0
 private void TestCaseCommandCompleted(object sender, CommandCompletedEventArgs e)
 {
     OnRaiseCommandCompleted(sender, e);
 }