public MainWindow() { InitializeComponent(); InitializeTimer(); AppUser = new User(); Home.SetUser(AppUser); ListBooks.SetUser(AppUser); //this comment does nothing try { _client = new TcpClient(); _client.Connect("127.0.0.1", 5555); Thread t = new Thread(() => HandleCommunication()); t.Start(); } catch (Exception) { MessageBox.Show("No Server Detected"); _isConnected = false; } }
public void ListBookUpdateAfterRemove() { ListBooks.UpdateDisplayAfterDelete(); }