Пример #1
0
        // Sign in button click
        private void btnSignIn_Click(object sender, RoutedEventArgs e)
        {
            var window = new SecondWindow();

            Application.Current.MainWindow = window;
            Close();
            window.Show();
        }
Пример #2
0
        private void uxSubmit_Click(object sender, RoutedEventArgs e)
        {
            MessageBox.Show("Login Submited");
            var window = new SecondWindow();

            Application.Current.MainWindow = window;
            Close();
            window.Show();
        }
Пример #3
0
        private void UxSubmit_Click(object sender, RoutedEventArgs e)
        {
            MessageBox.Show("Submitting password:" + uxPassword.Text);
            var window = new SecondWindow();

            Application.Current.MainWindow = window;
            Close();
            window.Show();
        }
Пример #4
0
        private void uxSubmit_Click(object sender, RoutedEventArgs e)
        {
            MessageBox.Show($"Submitting your password {uxName.Text}: {uxPassword.Password}");
            var window = new SecondWindow();

            Application.Current.MainWindow = window;
            Close();
            window.Show();
        }
Пример #5
0
        private void uxSubmit_Click(object sender, RoutedEventArgs e)
        {
            MessageBox.Show($"Submitting password: {uxPassword.Text}");
            SecondWindow sw = new SecondWindow();

            Application.Current.MainWindow = sw;
            Close();
            sw.Show();
        }
Пример #6
0
        private void uxSubmit_Click(object sender, RoutedEventArgs e)
        {
            MessageBox.Show("Submitting password:" + uxPassword.Text);
            uxName.Text     = string.Empty;
            uxPassword.Text = string.Empty;

            SecondWindow secondWindow = new SecondWindow();

            secondWindow.Show();
        }
        private void uxSubmit_Click(object sender, RoutedEventArgs e)
        {
            string sMsg = "Submitting password: " + uxPassword.Text;

            MessageBox.Show(sMsg);
            buttonThumbsUp.Visibility = Visibility.Visible;

            var window = new SecondWindow();

            Application.Current.MainWindow = window;
            Close();
            window.Show();
        }
Пример #8
0
        private void uxSubmit_click(object sender, RoutedEventArgs e)
        {
            int x = 1;

            x = x / (x - 1);

            MessageBox.Show("Submitting password:" + uxPassword.Text);

            //close the current window and launch the second window
            var window = new SecondWindow();

            Application.Current.MainWindow = window;
        }
Пример #9
0
        private void uxSubmit_Click(object sender, RoutedEventArgs e)
        {
            //int x = 1;
            //x = x / (x - 1);

            MessageBox.Show("Submitting password:" + uxPassword.Password);

            var window = new SecondWindow();

            Application.Current.MainWindow = window;
            Close();
            window.Show();
        }
Пример #10
0
        private void UxSubmit_Click(object sender, RoutedEventArgs e)
        {
            int x = 1;

            x = x / (x - 1); // Induce a DivideByZeroException

            MessageBox.Show("Submitting password:" + uxPassword.Text);

            var window = new SecondWindow();

            Application.Current.MainWindow = window;
            Close();
            window.Show();
        }
Пример #11
0
        private void uxSubmit_Click(object sender, RoutedEventArgs e)
        {
            //if (uxPassword != null)
            //{

            //    if
            //        (uxName.Text.Length <= 0)
            //        uxSubmit.IsEnabled = false;
            //    else
            //    {
            //        uxSubmit.IsEnabled = true;
            MessageBox.Show("Submitting password:" + uxPassword.Password);

            var window = new SecondWindow();

            Application.Current.MainWindow = window;
            Close();
            window.Show();
            //    }
            //}
        }
Пример #12
0
        private void uxSubmit_Click(object sender, RoutedEventArgs e)
        {
            MessageBox.Show("Submitting password:" + uxPassword.Password);

            //Clear contents of both the text boxes after submit button is clicked
            // and set the focus back to Name text box
            //Disable Submit button after it has been clicked


            uxName.Clear();
            uxPassword.Clear();
            uxSubmit.IsEnabled = false;

            uxName.Focus();
            uxNameHasText     = false;
            uxPasswordHasText = false;

            var window = new SecondWindow();

            Application.Current.MainWindow = window;
            Close();
            window.Show();
        }