コード例 #1
0
 /// <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;
 }
コード例 #2
0
 private void doStateChanged(object sender, ScallopNetworkStatusChangedEventArgs e)
 {
     this.myState = e.NewState;
     if (StatusChanged != null)
     {
         StatusChanged(sender, e);
     }
 }
コード例 #3
0
 private void doStateChanged(object sender, ScallopNetworkStatusChangedEventArgs e)
 {
     this.myState = e.NewState;
      if (StatusChanged != null)
     StatusChanged(sender, e);
 }
コード例 #4
0
 /// <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)
 {
 }
コード例 #5
0
 /// <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)
 {
 }
コード例 #6
0
 /// <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;
 }
コード例 #7
0
 /// <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)
 {
 }
コード例 #8
0
 /// <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)
 {
 }