private static void OnSendMessage(DialogMessage dialogMessage) { if (dialogMessage != null) { MessageView msg = new MessageView(); msg.Diaglog = dialogMessage; msg.ShowDialog(); } }