Exemplo n.º 1
0
 private void MainWindow_OnLoaded(object sender, RoutedEventArgs e)
 {
     client = new BoardClient(IPAddress.Parse("127.0.0.1"), 11000);
     client.StartClient();
     Task.Run(CheckConnection);
     Content = new LoginPage(client, this);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Background connection check
 /// </summary>
 private void CheckConnection()
 {
     while (true)
     {
         if (!client.Connected)
         {
             client.StartClient();
         }
     }
 }