Example #1
0
        private void btnGuestAdd_Click(object sender, EventArgs e)
        {
            frmGuest frmGuest = new frmGuest();

            frmGuest.ShowDialog();
            LoadGuests();
        }
Example #2
0
        private void btnGuestUpdate_Click(object sender, EventArgs e)
        {
            Guest    guestToEdit = _guestService.Get(Int16.Parse(dgvGuests.SelectedRows[0].Cells[0].Value.ToString()));
            frmGuest frmGuest    = new frmGuest(guestToEdit);

            frmGuest.ShowDialog();
            LoadGuests();
        }