private void RegisterAction() { bool res = authServer.Register(username.Text, name.Text, password.Text); if (!res) { status.Text = "Failed to Register"; } else { status.Text = "Register Successful"; WindowManager.getInstance().Register(); } }