Exemplo n.º 1
0
        private void LoadContacts()
        {
            ContactDB contacts2 = new ContactDB();

            bll = new BLL(contacts2);
            UpdateView();
            bindingNavigator1.BindingSource = bindingSource1;
            dataGridView1.DataSource        = bindingSource1;
        }
Exemplo n.º 2
0
        private void LoadContacts()
        {
            ContactDBMock contacts  = new ContactDBMock();
            ContactDB     contacts2 = new ContactDB();

            bll = new BLL(contacts2);

            bindingSource1.DataSource = bll.GetContacts();


            bindingNavigator1.BindingSource = bindingSource1;
            dataGridView1.DataSource        = bindingSource1;
        }