private void buttonAutorization_Click(object sender, EventArgs e)
        {
            string str = _client.Authorization(LoginTextBox.Text, PasswordTextBox.Text);

            if (str == "+OK")
            {
                label1.Visible                = false;
                _client.currentUser._login    = LoginTextBox.Text;
                _client.currentUser._password = PasswordTextBox.Text;
                autorization = true;
                this.Close();
            }
            else
            {
                autorization   = false;
                label1.Visible = true;
            }
        }
Beispiel #2
0
 static private void _client_Connected()
 {
     Data.IsOnline = true;
     _client.Authorization(Data.Nickname);
     Connected?.Invoke(null, EventArgs.Empty);
 }