Esempio n. 1
0
        /// <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();
        }
Esempio n. 2
0
 public void ReportStatus(string message)
 {
     StatusReported?.Invoke(this, new ProgressEventArgs(message));
 }
Esempio n. 3
0
 private void OnStatusReported(JobStatus status)
 {
     StatusReported?.Invoke(this, new StatusReportedEventArgs(status));
 }
Esempio n. 4
0
 /// <inheritdoc />
 public void Report(string message, bool isError)
 {
     StatusReported?.Invoke(this, new CardMimicStatusEventArgs(message, isError));
 }
Esempio n. 5
0
 /// <inheritdoc />
 public void Report(string value)
 {
     StatusReported?.Invoke(this, new CardMimicStatusEventArgs(value, false));
 }
Esempio n. 6
0
 /// <summary>
 /// Sets the install status text.
 /// </summary>
 /// <param name="status">Text to display as status.</param>
 protected void SetStatus(string status)
 {
     StatusReported?.Invoke(status);
 }