Example #1
0
File: App.xaml.cs Project: bdr27/c-
        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();
        }
Example #2
0
File: App.xaml.cs Project: bdr27/c-
 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()));
 }