private void hal9000Brain_HAL9000StatusChangeg(HAL9000StatusArgs args) { if (this.InvokeRequired) { this.BeginInvoke(this.dlgStatusChangedEH, args); return; } if (args.IsSystemReady) { this.lblGeneralStatus.ForeColor = Color.Black; } else { this.lblGeneralStatus.ForeColor = Color.Red; } if (!args.IsPaused) { this.lblGeneralStatus.Text = args.GeneralStatus; } else { this.lblGeneralStatus.Text = "SYSTEM PAUSED"; } this.lblExecuting.Text = "Executing: " + args.TestBeingExecuted + " |"; if (args.TestBeingExecuted.ToLower().Contains("none")) { this.btnPresentation.Enabled = true; } }
public void OnStatusChanged(HAL9000StatusArgs args) { if (this.HAL9000StatusChangeg != null) this.HAL9000StatusChangeg(args); }
private void hal9000Brain_HAL9000StatusChangeg(HAL9000StatusArgs args) { if (this.InvokeRequired) { this.BeginInvoke(this.dlgStatusChangedEH, args); return; } if (args.IsSystemReady) this.lblGeneralStatus.ForeColor = Color.Black; else this.lblGeneralStatus.ForeColor = Color.Red; if (!args.IsPaused) this.lblGeneralStatus.Text = args.GeneralStatus; else this.lblGeneralStatus.Text = "SYSTEM PAUSED"; this.lblExecuting.Text = "Executing: " + args.TestBeingExecuted + " |"; if (args.TestBeingExecuted.ToLower().Contains("none")) this.btnPresentation.Enabled = true; }