예제 #1
0
 private void ConnectionChanged(object sender, bool connected)
 {
     ConnectionChangeEvent?.Invoke(this, communication.IsConnected);
 }
예제 #2
0
 /// <summary>
 /// Causes the ConnectionChangeEvent to occur
 /// </summary>
 protected virtual void OnConnectionChangeEvent()
 {
     ConnectionChangeEvent?.Invoke(this, new ConnectionChangeEventArgs(isConnected));
 }