Пример #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();
        }
Пример #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()));
 }