Beispiel #1
0
 private void Button_Click_1(object sender, RoutedEventArgs e)
 {
     if (CheckUserLogin(UsernameBox.Text, PasswordBox.Password))
     {
         ChatWindow AppWindow = new ChatWindow();
         AppWindow.ChatNameBox.Content = UsernameBox.Text;
         ServerWindow ServerWind = new ServerWindow();
         ServerWind.Show();
         ServerWind.Start();
         AppWindow.Show();
         this.Close();
     }
 }
Beispiel #2
0
 private void Button_Click_2(object sender, RoutedEventArgs e)
 {
     ServerWindow srw = new ServerWindow();
     srw.Show();
 }