private void FormInsertReservations_Load(object sender, EventArgs e) { cmbSearchRoom.SelectedIndex = 1; cmbSourceClient.SelectedIndex = 1; dgvClient.DataSource = clientBLL.GetAllClientsByActive(); dgvRooms.DataSource = roomBLL.GetAllRoomsAvailable(); }
private void FormInsertCheckIn_Load(object sender, EventArgs e) { cmbSearchClient.SelectedIndex = 1; dgvClients.DataSource = clientBLL.GetAllClientsByActive().Data; cmbSearchRoom.SelectedIndex = 1; dgvRooms.DataSource = roomTypeBLL.GetAllRoomsType().Data; cmbSearchEmployee.SelectedIndex = 1; dgvEmployees.DataSource = employeeBLL.GetAllEmployeesByActive().Data; }
private void btnDelete_Click(object sender, EventArgs e) { MessageBox.Show(clientBLL.Delete(client).Message); dgvClients.DataSource = clientBLL.GetAllClientsByActive().Data; }
private void FormUpdateClient_Load(object sender, EventArgs e) { cmbSearch.SelectedIndex = 1; dgvClients.DataSource = clientBLL.GetAllClientsByActive().Data; }