private void LogBTN_Click(object sender, EventArgs e) { UserController user = new UserController(); string test = user.checkUser(NickName.Text, pass.Text); if (string.IsNullOrEmpty(test)) { Personnel personnel = new Personnel(); personnel.Show(); this.Close(); } else { MessageBox.Show(test); } }