Ejemplo n.º 1
0
        private void fillOrderList()
        {
            Data orderList = ShardDb.getOrderListByCustomerId(tbCustomerID.Text);

            if (!orderList.Success)
            {
                this.Close();
                return;
            }
            dataGridViewOrder.DataSource            = orderList.DataTable;
            dataGridViewOrder.Columns["id"].Visible = false;
            changeOrderDataGridViewHeader();
            if (orderList.DataTable.Rows.Count > 0)
            {
                combBoxCity.Enabled   = false;
                comboBoxStore.Enabled = false;
            }
        }