private void DetallesRep_Load(object sender, EventArgs e) { MetodosRepresentante m = new MetodosRepresentante(); m.DetallesRepresentante(Id, txId, nombre, apellido, dir, tel, ced); txId.Enabled = false; nombre.Enabled = false; apellido.Enabled = false; dir.Enabled = false; tel.Enabled = false; ced.Enabled = false; }
private void button1_Click(object sender, EventArgs e) { int IdRep = Convert.ToInt32(txId.Text); MetodosRepresentante m = new MetodosRepresentante(); if (nombre.Text.Length == 0 || apellido.Text.Length == 0 || dir.Text.Length == 0 || tel.Text.Length == 0) { MessageBox.Show("Complete los campos y luego actualice", ""); } else { m.ActualizarRepresentante(IdRep, nombre.Text, apellido.Text, dir.Text, tel.Text); this.Dispose(); } }
private void DetallesRepresentante_Load(object sender, EventArgs e) { txEnabledFalse(); txId.Enabled = false; m = new MetodosRepresentante(); m.DetallesRepresentante(Id, txId, nombre, apellido, dir, tel, ced); }
private void button1_Click(object sender, EventArgs e) { MetodosRepresentante r = new MetodosRepresentante(); r.AgregarRep(Id, ced.Text,nombre.Text, apellido.Text, dir.Text, tel.Text); }