private void adviserButton_Click(object sender, EventArgs e) { if (adminPanel.Visible == true) { adminLogoutWindow = new adminLogoutForm(this); if (adminLogoutWindow.ShowDialog() == DialogResult.OK) { hidePanels(); bunifuTransition1.ShowSync(adviserPanel); } } else if (adviserPanel.Visible == false) { hidePanels(); bunifuTransition1.ShowSync(adviserPanel); } }
private void adviserLogoutButton_Click(object sender, EventArgs e) { adminLogoutWindow = new adminLogoutForm(this); adminLogoutWindow.ShowDialog(); }