예제 #1
0
 public void OnServerMessage(string message, MessageType type)
 {
     if (!string.IsNullOrEmpty(message))
     {
         ServerMessageEvent?.Invoke(message, new ServerMessageEventArgs(message, type));
     }
 }
예제 #2
0
 public static void InvokeServerMessageEvent(ServerMessageEventArgs args)
 {
     ServerMessageEvent?.Invoke(args);
 }
예제 #3
0
 /// <summary>
 /// Passes on a server update message to the view
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void ServerUpdate(object sender, PropertyChangedEventArgs e)
 {
     ServerMessageEvent?.Invoke(e.PropertyName);
 }
예제 #4
0
 private void RaiseServerMessageEvent(string message)
 {
     ServerMessageEvent?.Invoke(this, new StringEventArgs(message));
 }