diff --git a/chatclient/App.xaml b/chatclient/App.xaml index 76fd1be..234aed7 100644 --- a/chatclient/App.xaml +++ b/chatclient/App.xaml @@ -1,18 +1,18 @@  - - - - - - - + xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" + xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes" + xmlns:local="clr-namespace:chatclient" + StartupUri="MainWindow.xaml"> + + + + + + + - - + + diff --git a/chatclient/Data/chatapi.cs b/chatclient/Data/chatapi.cs index 2e0c7d2..720508d 100644 --- a/chatclient/Data/chatapi.cs +++ b/chatclient/Data/chatapi.cs @@ -1,4 +1,6 @@ -namespace chatclient.Data +using System.Security.RightsManagement; + +namespace chatclient.Data { internal class Server { @@ -32,11 +34,16 @@ { public string? type { get; set; } } - internal class ChatData + internal class ChatRegisterData { public string? user { get; set; } = "Unnamed"; public string? message { get; set; } = null; public string? image { get; set; } = null; public DateTime timestamp { get; set; } = DateTime.Now; } + internal class ChatData + { + public required string type { get; set; } = "chat"; + public required string message { get; set; } = "message"; + } } diff --git a/chatclient/MainWindow.xaml b/chatclient/MainWindow.xaml index 18a8066..258ffb7 100644 --- a/chatclient/MainWindow.xaml +++ b/chatclient/MainWindow.xaml @@ -1,10 +1,11 @@ - @@ -14,7 +15,7 @@ @@ -54,39 +55,73 @@ + Padding="10" Background="{DynamicResource MaterialDesignPaper}"> - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + - + TextWrapping="Wrap" MinHeight="60" MaxHeight="120" Margin="5"/>