/// <summary> /// Constructor. /// </summary> /// <param name="fromState">State before event.</param> /// <param name="toState">State after event.</param> /// <param name="msg">A freeform string message for the user.</param> /// <param name="causingException">Possible exception that caused an error.</param> public ScallopNetworkStatusChangedEventArgs(ScallopNetworkState fromState, ScallopNetworkState toState, string msg, Exception causingException) { this.oldState = fromState; this.newState = toState; this.causingException = causingException; this.msg = msg; }
private void doStateChanged(object sender, ScallopNetworkStatusChangedEventArgs e) { this.myState = e.NewState; if (StatusChanged != null) { StatusChanged(sender, e); } }
private void doStateChanged(object sender, ScallopNetworkStatusChangedEventArgs e) { this.myState = e.NewState; if (StatusChanged != null) StatusChanged(sender, e); }
/// <summary> /// Constructor. /// </summary> /// <param name="fromState">State before event.</param> /// <param name="toState">State after event.</param> /// <param name="msg">A freeform string message for the user.</param> public ScallopNetworkStatusChangedEventArgs(ScallopNetworkState fromState, ScallopNetworkState toState, string msg) : this(fromState, toState, msg, null) { }
/// <summary> /// Constructor. /// </summary> /// <param name="fromState">State before event.</param> /// <param name="toState">State after event.</param> public ScallopNetworkStatusChangedEventArgs(ScallopNetworkState fromState, ScallopNetworkState toState) : this(fromState, toState, null, null) { }