public static void SignOutUser(MainForm form) { form.Hide(); PasswordLoginForm passwordLoginForm = new PasswordLoginForm(); passwordLoginForm.Closed += (s, args) => form.Close(); passwordLoginForm.Show(); }
private void SignOut_Clicked(object sender, EventArgs e) { this.Hide(); LoginForm loginForm = new PasswordLoginForm(); loginForm.Closed += (s, args) => this.Close(); loginForm.Show(); }