private void MENU_FILE_SWITCH_USER_Click(object sender, EventArgs e) { DialogResult dr = MessageManager.DisplayMessage("17", MessageBoxButtons.YesNo); if (dr == DialogResult.Yes) { Preferences.ClearCredentials(); this.Hide(); Login objLogin = new Login(); objLogin.Show(); } }