public void ViewDetail(int selectedRoomID) { DialogResult result = RoomDetail.Show(this.ParentForm, selectedRoomID, null); if (result == DialogResult.OK) { RefreshGrid(); MessageForm.Show(this.ParentForm, MsgE.InfoSaveRoom); } }
public static DialogResult Show(Form owner, int roomID, Room room) { RoomDetail frm = new RoomDetail(); frm.roomDetailUc1.RoomID = roomID; frm.roomDetailUc1.Room = room; DialogResult result = frm.ShowDialog(owner); return(result); }