private void TablesSettingForm_Load(object sender, EventArgs e) { cmbStatus.Items.Add("True"); cmbStatus.Items.Add("False"); txtId.Visible = false; dgvTableList.DataSource = tb.GetAll(); Temizle(); }
private void ReservationForm_Load(object sender, EventArgs e) { dgvRezerve.ClearSelection(); dgvRezerve.DataSource = rb.Reservations(); cmbCustomerSearch.BindCombobox <Customer>("NameSurname", "CustomerID", cb.GetAll()); cmbTableNumber.BindCombobox <Table>("TableID", "TableID", tb.GetAll()); dgvRezerve.Rows[selectedIndex].Selected = false; Temizle(); }