This just feels “hacky” to me in terms of having to do both enable/disable for both of these. Since one of them could already have been turned “on” I need to turn them back off or on again. I feel as though I can dodge one of the checks somehow:
private void SetPanels()
{
if(userIsLoggedIn)
{
pnlAuthed.Visible = true;
pnlNotAuthed.Visible = false;
}
else
{
pnlSignUpForm_NotAuthed.Visible = true;
pnlSignUpForm_Authed.Visible = false;
}
}
I think you’re looking for something like this: