diff --git a/stormchat-client-csharp/StormChatWPF/App.xaml b/stormchat-client-csharp/StormChatWPF/App.xaml index 1fc1979..c42445d 100644 --- a/stormchat-client-csharp/StormChatWPF/App.xaml +++ b/stormchat-client-csharp/StormChatWPF/App.xaml @@ -4,6 +4,10 @@ xmlns:local="clr-namespace:StormChatWPF" StartupUri="LogWindow.xaml"> - + + + + + diff --git a/stormchat-client-csharp/StormChatWPF/Chat.cs b/stormchat-client-csharp/StormChatWPF/Chat.cs index 28a6405..a756a8c 100644 --- a/stormchat-client-csharp/StormChatWPF/Chat.cs +++ b/stormchat-client-csharp/StormChatWPF/Chat.cs @@ -62,7 +62,7 @@ namespace StormChatWPF { if (MainWindow.Instence != null) { - MainWindow.Instence.ShowMessage(message); + MainWindow.Instence.UI_ShowMessage(message); } }//接受到新消息 @@ -71,7 +71,7 @@ namespace StormChatWPF Message msg = new Message(text,target); Action f = delegate (ResultHead head) { - MainWindow.Instence.ShowMessage(msg); + MainWindow.Instence.UI_ShowMessage(msg); }; StormClient.QueueSendMessage(msg,f); }//发送消息 diff --git a/stormchat-client-csharp/StormChatWPF/LogWindow.xaml b/stormchat-client-csharp/StormChatWPF/LogWindow.xaml index 86d517f..6f4d64c 100644 --- a/stormchat-client-csharp/StormChatWPF/LogWindow.xaml +++ b/stormchat-client-csharp/StormChatWPF/LogWindow.xaml @@ -21,7 +21,7 @@ -