private void CommandOnCommandCompleted(object sender, CommandCompletedEventArgs e) { EventHandler <CommandCompletedEventArgs> handler = CommandCompleted; if (handler != null) { handler(sender, e); } }
protected virtual void OnCommandCompleted(CommandCompletedEventArgs e) { EventHandler <CommandCompletedEventArgs> handler = CommandCompleted; if (handler != null) { handler(this, e); } }
internal virtual void OnRaiseCommandCompleted(object sender, CommandCompletedEventArgs e) { EventHandler <CommandCompletedEventArgs> handler = CommandCompleted; if (handler != null) { handler(sender, e); } }
private void TestSuiteCommandCompleted(object sender, CommandCompletedEventArgs e) { dataGridView1.Rows.Add( "Command", e.CompletedExecutionTime, e.Package, e.CommandName, null, e.Results, true); }
/// <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); }
public void CommandCompletedChangedEvent(CommandCompletedEventArgs e) { CommandCompletedChanged?.Invoke(null, e); }
/// <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++; }
private void TestCaseCommandCompleted(object sender, CommandCompletedEventArgs e) { OnRaiseCommandCompleted(sender, e); }