diff --git a/DoctorApp/App.xaml b/DoctorApp/App.xaml index aac18d8..86b2dd4 100644 --- a/DoctorApp/App.xaml +++ b/DoctorApp/App.xaml @@ -9,11 +9,11 @@ - + - + diff --git a/DoctorApp/Utils/Client.cs b/DoctorApp/Utils/Client.cs index 4e727d0..f5fa102 100644 --- a/DoctorApp/Utils/Client.cs +++ b/DoctorApp/Utils/Client.cs @@ -111,7 +111,6 @@ namespace DoctorApp.Utils Console.WriteLine("Set resistance identifier"); break; case DataParser.NEW_CONNECTION: - Debug.WriteLine("doctor client new connection"); this.MainViewModel.NewConnectedUser(DataParser.getUsernameFromResponseJson(payloadbytes)); break; case DataParser.DISCONNECT: diff --git a/DoctorApp/ViewModels/MainViewModel.cs b/DoctorApp/ViewModels/MainViewModel.cs index b12d8dd..bd02499 100644 --- a/DoctorApp/ViewModels/MainViewModel.cs +++ b/DoctorApp/ViewModels/MainViewModel.cs @@ -3,6 +3,7 @@ using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.ComponentModel; +using System.Diagnostics; using System.Text; using System.Windows.Controls; using Util; @@ -26,6 +27,7 @@ namespace DoctorApp.ViewModels public void NewConnectedUser(string username) { + Debug.WriteLine("new tab with name " + username); App.Current.Dispatcher.Invoke((Action)delegate { Tabs.Add(new ClientInfoViewModel(MainWindowViewModel, username));