From 80cfcdf53883853c763c2a2e35754d6c2c1f532e Mon Sep 17 00:00:00 2001 From: Waldi Date: Tue, 4 Oct 2016 14:02:30 +0200 Subject: [PATCH 1/6] Chat ist jetzt .... immer noch schoen --- BeWo/View/ChatView.xaml | 470 +++++++++++++++++++------------------ BeWo/View/ChatView.xaml.cs | 8 +- 2 files changed, 253 insertions(+), 225 deletions(-) diff --git a/BeWo/View/ChatView.xaml b/BeWo/View/ChatView.xaml index 3818ac494..40944c47c 100644 --- a/BeWo/View/ChatView.xaml +++ b/BeWo/View/ChatView.xaml @@ -2,250 +2,276 @@ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:view="clr-namespace:BeWo.View" - Title="Chat View" Height="800" Width="800" WindowStartupLocation="CenterScreen" WindowStyle="None" + Title="Chat View" WindowStartupLocation="CenterScreen" WindowStyle="None" AllowsTransparency="True" Background="Transparent" + ResizeMode="CanResizeWithGrip" x:Name="ChatViewName"> - - - + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + - - - - - + + + + + + + + + + + - - - - - + + + + + + + + + + + + + + - - - - - + + + + + + + + + + + + + + + + + + + + + - - - + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + + + diff --git a/BeWo/View/ChatView.xaml.cs b/BeWo/View/ChatView.xaml.cs index 216f5a437..3bfe7d85a 100644 --- a/BeWo/View/ChatView.xaml.cs +++ b/BeWo/View/ChatView.xaml.cs @@ -73,7 +73,7 @@ namespace BeWo.View { InitializeComponent(); - rootGroupBox.Header = nameinf; + rootGroupBox.Header = nameinf; this.tcpClient = tcpClient; @@ -82,6 +82,8 @@ namespace BeWo.View ErstelleContextMenue(); // SetChatSetting(); + Width = System.Windows.SystemParameters.PrimaryScreenWidth /2; + Height = System.Windows.SystemParameters.PrimaryScreenWidth / 2; } /*private void SetChatSetting() @@ -1367,7 +1369,7 @@ namespace BeWo.View private void Chatbox_OnTextChanged(object sender, TextChangedEventArgs e) { - if (ChatViewName.Height < 850 && Chatbox.LineCount >= 3) + /* if (ChatViewName.Height < 850 && Chatbox.LineCount >= 3) { ChatViewName.Height = ChatViewName.Height + 50; @@ -1375,7 +1377,7 @@ namespace BeWo.View if(Chatbox.LineCount <=2) { ChatViewName.Height = 800; - } + }*/ } From 130ad0d72c84abef3309033519c9065c1f44ccf2 Mon Sep 17 00:00:00 2001 From: Waldi Date: Wed, 5 Oct 2016 14:09:15 +0200 Subject: [PATCH 2/6] kleinigkeiten update --- BeWo/View/ChatDokumentationsView.xaml.cs | 19 --------- BeWo/View/ChatView.xaml | 54 ++++++++++++++---------- BeWo/View/ChatView.xaml.cs | 18 ++++---- 3 files changed, 40 insertions(+), 51 deletions(-) diff --git a/BeWo/View/ChatDokumentationsView.xaml.cs b/BeWo/View/ChatDokumentationsView.xaml.cs index 5d82ae403..d781b21ad 100644 --- a/BeWo/View/ChatDokumentationsView.xaml.cs +++ b/BeWo/View/ChatDokumentationsView.xaml.cs @@ -148,26 +148,7 @@ namespace BeWo.View popup_contentChat.Visibility = Visibility.Visible; - - - //newView.SetStartTimeEndTime(first, last); - //newView.SetLoggedOnEmployee(); - }))); - - - - - - /* - //rootGroupBox.Header = nameinf; - - this.tcpClient = tcpClient; - - closeWindow(); - LoadallChatKontakts(); - ErstelleContextMenue(); - SetChatSetting();*/ } private CompactSupportConceptDC HoleHilfeplanAusListe(List scList, CompactCustomerDC customerCompact, DateTime firstTime, DateTime lastTime) diff --git a/BeWo/View/ChatView.xaml b/BeWo/View/ChatView.xaml index 40944c47c..136597d10 100644 --- a/BeWo/View/ChatView.xaml +++ b/BeWo/View/ChatView.xaml @@ -30,7 +30,8 @@ - + + @@ -40,19 +41,20 @@ - - - + + + + - + - + + + @@ -174,13 +188,13 @@ - + - + @@ -192,7 +206,7 @@ - + @@ -258,18 +272,12 @@