private void btnRoomDetail_Click(object sender, EventArgs e) { FormRoomDetail frmRoomDetail = new FormRoomDetail(); if (frmRoomDetail.ShowDialog() == DialogResult.OK) { ShowRoom(int.Parse(tbcRoomInfo.SelectedTab.Name)); } }