Exemplo n.º 1
0
        private void Button_Click_5(object sender, RoutedEventArgs e)
        {
            Window3 win3 = new Window3(Convert.ToString(labelUser.Content));

            this.Hide();
            win3.ShowDialog();
        }
Exemplo n.º 2
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            Window3 win3 = new Window3(user);

            this.Hide();
            win3.ShowDialog();
        }
Exemplo n.º 3
0
        private void Button_Click_1(object sender, RoutedEventArgs e)
        {
            Login login = new Login();

            try
            {
                login.Name     = textbox1.Text;
                login.Password = passwordbox1.Password;
                login.UserSearch();
                MainWindow main = new MainWindow();
                Window3    win3 = new Window3(textbox1.Text);
                main.labelUser.Content = textbox1.Text;
                main.labelLog.Content  = "Prisijunges:";
                this.Hide();
                main.ShowDialog();
            }
            catch (Exception exc)
            {
                MessageBox.Show(exc.Message);
                textbox1.Clear();
                passwordbox1.Clear();
            }
        }