private void logout_Click(object sender, EventArgs e) { var confirmResult = MessageBox.Show("ログアウトしますか ?", "Confirm Logout !", MessageBoxButtons.YesNo); if (confirmResult == DialogResult.Yes) { frm_login frmlogin = new frm_login(); this.Hide(); frmlogin.Show(); } else { this.Show(); } }
public frm_shaiinrisuto(frm_login frm_login) { this.frm_login = frm_login; }