예제 #1
0
        private void Btn_auth_Click(object sender, RoutedEventArgs e)
        {
            tb_page.Clear();
            string url = tb_link.Text;

            tb_page.Text = GetPage.GettingPage(url);
        }
예제 #2
0
        private void Btn_auth_Click_1(object sender, RoutedEventArgs e)
        {
            string  login    = tb_login.Text;
            string  password = tb_pwd.Text;
            GetPage auth     = new GetPage();

            if (auth.Post_Auth(login, password))
            {
                MessageBox.Show("Успешно авторизован", "Info", MessageBoxButton.OK, MessageBoxImage.Information);
            }
            else
            {
                MessageBox.Show("Неверная почта/пароль", "Info", MessageBoxButton.OK, MessageBoxImage.Hand);
            }
        }