private void btnAdd_Click(object sender, EventArgs e) { FRoomEdit f = new FRoomEdit("", "Add"); f.refresh += new FRoomEdit.refreshData(ShowSearch); f.Show(); }
private void btnEdit_Click(object sender, EventArgs e) { string roomid = dataGridView_RoomShow.CurrentRow.Cells["roomID"].Value.ToString(); FRoomEdit f = new FRoomEdit(roomid, "Edit"); f.refresh += new FRoomEdit.refreshData(ShowSearch); f.Show(); }