/// <summary> /// Método que inicia sesion y abre el form del proceso /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnIniciarSesion_Click(object sender, EventArgs e) { Cliente oCliente = new Cliente(); IBLLCliente _BLLCliente = new BLLCliente(); if (_BLLCliente.BuscarClienteID(mskNumeroIdentificacion.Text) != null) { oCliente = _BLLCliente.BuscarClienteID(mskNumeroIdentificacion.Text); new frmProcesos(oCliente).Show(); mskNumeroIdentificacion.Text = ""; } else { MessageBox.Show("No esta registrado"); } }
public void BuscarClienteID() { string idcliente = "2-0794-0151"; Cliente oCliente = new Cliente(); IBLLCliente _BLLCliente = new BLLCliente(); oCliente = _BLLCliente.BuscarClienteID(idcliente); System.Diagnostics.Debug.Write(oCliente.IDCliente); }