private void LoginFromData(string uid, string pwd) { _secSystem = SecSystemBuilder.GetInstance(); _secSystem.LoginAs(uid, pwd); if (!_secSystem.LoginSuccessful) { MessageBox.Show("Login failed!", "Connection error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }