public void OnServerMessage(string message, MessageType type) { if (!string.IsNullOrEmpty(message)) { ServerMessageEvent?.Invoke(message, new ServerMessageEventArgs(message, type)); } }
public static void InvokeServerMessageEvent(ServerMessageEventArgs args) { ServerMessageEvent?.Invoke(args); }
/// <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); }
private void RaiseServerMessageEvent(string message) { ServerMessageEvent?.Invoke(this, new StringEventArgs(message)); }