public ListaContactos(SqlConnection Connection) { // // Required for Windows Form Designer support // InitializeComponent(); // // TODO: Add any constructor code after InitializeComponent call // mainDL = MainDataLayer.GetInstance(); mainDL.Connection = Connection; mainDL.CargaCatalogos(); contactos = new ContactosDL.Contactos(); cargaDatos(); }
public ListaContactos(SqlConnection Connection, int Cliente) { // // Required for Windows Form Designer support // InitializeComponent(); // // TODO: Add any constructor code after InitializeComponent call // this.Controls.Remove(tbDirectorioAlfabético1); tbAgregar.Enabled = false; tbAgregar.Visible = false; tbRefrescar.Enabled = false; tbRefrescar.Visible = false; mainDL = MainDataLayer.GetInstance(); mainDL.Connection = Connection; mainDL.CargaCatalogos(); contactos = new ContactosDL.Contactos(); cargaDatos(Cliente); }