Beispiel #1
0
        private void updateDataGridView产品()
        {
            bool isChecked = checkBox所有没有报价.Checked;

            if (isChecked)
            {
                dataGridView产品.DataSource = pMgr.GetProductsWithoutPrice();
            }
            else if (selectedOrderId != null)
            {
                dataGridView产品.DataSource = pMgr.GetProductsByOrder(selectedOrderId);
            }
            else
            {
                dataGridView产品.DataSource = null;
            }
            dataGridView产品.Update();
        }