/// <summary> /// Start the installation. /// </summary> public void Install() { var t = new System.Threading.Thread(() => { ProgressReported?.Invoke(0); StatusReported?.Invoke(""); Run(); ProgressReported?.Invoke(100); StatusReported?.Invoke("Installation completed."); InstallCompleted?.Invoke(); }); t.IsBackground = true; t.Start(); }
public void ReportStatus(string message) { StatusReported?.Invoke(this, new ProgressEventArgs(message)); }
private void OnStatusReported(JobStatus status) { StatusReported?.Invoke(this, new StatusReportedEventArgs(status)); }
/// <inheritdoc /> public void Report(string message, bool isError) { StatusReported?.Invoke(this, new CardMimicStatusEventArgs(message, isError)); }
/// <inheritdoc /> public void Report(string value) { StatusReported?.Invoke(this, new CardMimicStatusEventArgs(value, false)); }
/// <summary> /// Sets the install status text. /// </summary> /// <param name="status">Text to display as status.</param> protected void SetStatus(string status) { StatusReported?.Invoke(status); }