Пример #1
0
 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;
 }
Пример #2
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;
 }
Пример #3
0
        private void OrderDetails_Load(object sender, EventArgs e)
        {
            DataDisplayController.InitOrderDetailAdapter(OrderId);
            DataDisplayController.OrderDetailsAdapter.Fill(DataDisplayController.restDataSet.OrderComments);
            DataDisplayController.DataGridViewDisplayDataTable(dataGridViewComments, DataDisplayController.restDataSet, DataDisplayController.restDataSet.OrderComments as DataTable);

            DataDisplayController.InitServiceDetailAdapter(OrderId);
            DataDisplayController.ServiceDetailsAdapter.Fill(DataDisplayController.restDataSet.ServiceDetails);
            DataDisplayController.DataGridViewDisplayDataTable(dataGridViewService, DataDisplayController.restDataSet, DataDisplayController.restDataSet.ServiceDetails as DataTable);
            dataGridViewService.Columns[0].Visible = false;
            dataGridViewService.Columns[3].Visible = false;

            DataDisplayController.InitFineDetailAdapter(OrderId);
            DataDisplayController.FineDetailsAdapter.Fill(DataDisplayController.restDataSet.FineDetails);
            DataDisplayController.DataGridViewDisplayDataTable(dataGridViewFines, DataDisplayController.restDataSet, DataDisplayController.restDataSet.FineDetails as DataTable);
            dataGridViewFines.Columns[0].Visible = false;
            dataGridViewFines.Columns[3].Visible = false;
        }
Пример #4
0
 private void Form1_Load(object sender, EventArgs e)
 {
     DataDisplayController.DataGridViewDisplayDataTable(dataGridView1, DataDisplayController.restDataSet, DataDisplayController.restDataSet.order_list as DataTable);
     DataDisplayController.OrderListAdapter.Fill(DataDisplayController.restDataSet.order_list);
     dataGridView1.Columns[0].Name = "Order №";
 }