Exemple #1
0
        private void LogInButtonClick(object sender, RoutedEventArgs e)
        {
            string          login    = textBoxLogin.Text;
            string          password = textBoxPass.Password;
            SslTcpClient    c        = new SslTcpClient();
            DataManipulator data     = new DataManipulator(c);
            string          token    = data.LogIn(login, password);

            if (token.CompareTo("") != 0)
            {
                DataManipulation win2 = new DataManipulation(token, data);
                win2.Show();
                this.Close();
            }
            else
            {
                MessageBox.Show("Credentials incorrect");
            }
        }
 public DataManipulator(SslTcpClient c)
 {
     tcpClient = c;
 }