public Dish_menu() { InitializeComponent(); DataDisplayController.CategoryTableAdapter.Fill(restDataSet.dish_category); DataDisplayController.FillComboBox(restDataSet.dish_category as DataTable, dataGridView1, comboBoxDishCategory, restDataSet); DataDisplayController.DataGridViewDisplayDataTable(dataGridView1, restDataSet, restDataSet.dish_menu as DataTable); DataDisplayController.DishMenuAdapter.Fill(restDataSet.dish_menu); dataGridView1.Columns[0].Visible = false; }
private void buttonAddOrder_Click(object sender, EventArgs e) { DataDisplayController.AddOrder(dateTimePickerOrder, textBoxTableID); DataDisplayController.DishDictionaryAdapter.Fill(DataDisplayController.restDataSet.dish_dictionary); DataDisplayController.FillComboBox(DataDisplayController.restDataSet.dish_dictionary as DataTable, dataGridView1, comboBoxDish, DataDisplayController.restDataSet); DataDisplayController.orderTableAdapter.Fill(DataDisplayController.restDataSet.order); DataDisplayController.FillComboBox(DataDisplayController.restDataSet.order as DataTable, dataGridView1, comboBoxOrder, DataDisplayController.restDataSet, 0); DataDisplayController.FillComboBox(DataDisplayController.restDataSet.order as DataTable, dataGridView1, comboBoxOrderDetails, DataDisplayController.restDataSet, 0); }
public MainForm() { InitializeComponent(); dataGridView1.AutoSize = true; DataDisplayController.DishDictionaryAdapter.Fill(DataDisplayController.restDataSet.dish_dictionary); DataDisplayController.FillComboBox(DataDisplayController.restDataSet.dish_dictionary as DataTable, dataGridView1, comboBoxDish, DataDisplayController.restDataSet); DataDisplayController.orderTableAdapter.Fill(DataDisplayController.restDataSet.order); DataDisplayController.FillComboBox(DataDisplayController.restDataSet.order as DataTable, dataGridView1, comboBoxOrder, DataDisplayController.restDataSet, 0); DataDisplayController.FillComboBox(DataDisplayController.restDataSet.order as DataTable, dataGridView1, comboBoxOrderDetails, DataDisplayController.restDataSet, 0); }
public Staff() { InitializeComponent(); DataDisplayController.staffTableAdapter.Fill(restDataSet.staff); DataDisplayController.positionTableAdapter.Fill(restDataSet.position); DataDisplayController.FillComboBox(restDataSet.staff as DataTable, dataGridView1, comboBoxFire, restDataSet); DataDisplayController.FillComboBox(restDataSet.position as DataTable, dataGridView1, comboBoxPosition, restDataSet); DataDisplayController.DataGridViewDisplayDataTable(dataGridView1, restDataSet, restDataSet.rest_staff); DataDisplayController.RestStaffAdapter.Fill(restDataSet.rest_staff); dataGridView1.Columns[0].Visible = false; }