Beispiel #1
0
        private void HandleMenuLogin(object sender, RoutedEventArgs e)
        {
            var dialog = new LoginModal();
            dialog.Owner = clientMiniCheckers;
            dialog.ShowDialog();

            var secondDialog = new LoginErrorModal();
            secondDialog.Owner = clientMiniCheckers;
            secondDialog.ShowDialog();
        }
Beispiel #2
0
 private void HandleMenuLogin(object sender, RoutedEventArgs e)
 {
     username = "";
     var dialog = new LoginModal();
     dialog.Owner = clientMiniCheckers;
     dialog.ShowDialog();
     messageSent = MessageSent.LOGIN;
     username = dialog.GetUsername();
     udpHandler.SendRequest(string.Format("LOGIN,{0},{1}", username, dialog.GetPassword()));
 }