private void buttonContinue_Click(object sender, EventArgs e) { this.Close(); UserStartWindow userStartWindow = new UserStartWindow(user); userStartWindow.Show(); }
public void Exit() { if (user.Role == "Admin") { AdminStartWindow adminStart = new AdminStartWindow(user); adminStart.Show(); } else { UserStartWindow userStart = new UserStartWindow(user); userStart.Show(); } this.Close(); }