コード例 #1
0
        private void SalesModule_Load(object sender, EventArgs e)
        {
            // TODO: This line of code loads data into the 'stockManagementSystemDataSet2.Sales' table. You can move, or remove it, as needed.
            // this.salesTableAdapter.Fill(this.stockManagementSystemDataSet2.Sales);
            //_sales.Category = comboBoxCategory.Text;

            comboBoxCategory.DataSource  = _salesManager.ComboBoxCategoryList();
            comboBoxProduct.DataSource   = _salesManager.ComboBoxProductsList();
            dataGridViewSales.DataSource = _salesManager.ShowSaleses(_sales);
        }