示例#1
0
 public void getData()
 {
     try
     {
         BusinessManager BM = new BusinessManager();
         DataSet         ds = BM.BALGetInventoryData();
         dataGridView1.DataSource = ds.Tables["Inventory"].DefaultView;
         dataGridView1.DataSource = ds.Tables["Config"].DefaultView;
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }