Exemplo n.º 1
0
 private void frmCategoria_Load(object sender, EventArgs e)
 {
     //Lista = TbCategoriaDAO.SelectAll();
     //Lista = TbCategoriaBL.SelectAll();
     //ProxyMantenimiento.ManServiceClient proxyMan = new ProxyMantenimiento.ManServiceClient("HTTP_EndPoint");
     ProxyManIis.ManServiceClient proxyManIis = new ProxyManIis.ManServiceClient("BasicHttpBinding_IManService");
     Lista = proxyManIis.SelectAllFromCategoria();
     this.TbCategoriaBindingSource.DataSource = Lista;
     this.dataGridView1.SelectionMode         = DataGridViewSelectionMode.FullRowSelect;
 }
Exemplo n.º 2
0
 private void frmCliente_Load(object sender, EventArgs e)
 {
     //Lista = TbClienteBE.SelectAll(); anterior
     //Lista = TbClienteDao.SelectAll();
     //Lista = TbClienteBL.SelectAll();
     ProxyManIis.ManServiceClient proxyManCLiente = new ProxyManIis.ManServiceClient("BasicHttpBinding_IManService");
     Lista = proxyManCLiente.SelectAllFromCliente();
     TbClientebindingSource.DataSource = Lista;
     this.dataGridView1.SelectionMode  =
         DataGridViewSelectionMode.FullRowSelect;
 }