/// <summary> /// Invokes the ClientStatus event. /// </summary> /// <param name="status">The current status.</param> /// <param name="percent">The current progress position in %.</param> internal void OnClientStatus(ClientStatusValue status, int percent) { if (ClientStatus != null) { try { ClientStatus(this, new ClientStatusEventArgs(status, percent)); } catch { } } }
public ClientStatusEventArgs(ClientStatusValue status, int percent) { this.status = status; this.percent = percent; }
/// <summary> /// Invokes the ClientStatus event. /// </summary> /// <param name="status">The current status.</param> internal void OnClientStatus(ClientStatusValue status) { OnClientStatus(status, -1); }