示例#1
0
        private void LoadContacts()
        {
            ContactDB contacts2 = new ContactDB();

            bll = new BLL(contacts2);
            UpdateView();
            bindingNavigator1.BindingSource = bindingSource1;
            dataGridView1.DataSource        = bindingSource1;
        }
示例#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;
        }