diff --git a/PolyChat/Controller.cs b/PolyChat/Controller.cs index 096b832..fa5e171 100644 --- a/PolyChat/Controller.cs +++ b/PolyChat/Controller.cs @@ -42,8 +42,8 @@ namespace PolyChat Serve(); // test + UIController.OnIncomingConnection("localhost"); /* - UIController.OnIncomingConnection("1.1.1.1"); UIController.OnIncomingConnection("1.2.3.4"); UIController.OnIncomingConnection("1.2.4.8"); */ diff --git a/PolyChat/MainPage.xaml b/PolyChat/MainPage.xaml index 1ed214d..550dcc3 100644 --- a/PolyChat/MainPage.xaml +++ b/PolyChat/MainPage.xaml @@ -96,13 +96,16 @@ + + + - - - - - + + + diff --git a/PolyChat/MainPage.xaml.cs b/PolyChat/MainPage.xaml.cs index 2e976d2..8a4388d 100644 --- a/PolyChat/MainPage.xaml.cs +++ b/PolyChat/MainPage.xaml.cs @@ -87,16 +87,16 @@ namespace PolyChat public async void OnOpenNewChatDialog(object sender = null, RoutedEventArgs e = null) { // test - /* + /**/ OnIncomingMessage( - "1.1.1.1", + "localhost", new JObject( - new JProperty("type", "username"), - new JProperty("content", "Cloudflare") + new JProperty("type", "message"), + new JProperty("content", "Test") ).ToString(), DateTime.Now ); - */ + /**/ NewChatDialog dialog = new NewChatDialog(); var result = await SafelyOpenDialog(dialog); if (result == ContentDialogResult.Primary)