Esempio n. 1
0
        public MainForm()
        {
            InitializeComponent();

            string cnStr =
            @"Data Source=(local)\SQLEXPRESS;Initial Catalog=AutoLot;" +
             "Integrated Security=True;Pooling=False";

            // Create our data access object.
            dal = new InventoryDALDisLayer(cnStr);

            // Fill up our grid!
            inventoryGrid.DataSource = dal.GetAllInventory();
        }
Esempio n. 2
0
 public MainForm() {
     InitializeComponent();
     string cnStr = @"Data Source=(local)\SQLExpress;Initial Catalog=AutoLot;Integrated Security=True";
     dal = new InventoryDALDisLayer(cnStr);
     inventoryGrid.DataSource = dal.GetAllInventory();
 }