private void btnContinuar_Click(object sender, EventArgs e) { if (Vacio.txb(this)) { if (Vacio.cmb(this)) { string cn = txbCon.Text; string pt = cmbPue.Text; string tl = txbTel.Text; string cl = txbCel.Text; string em = txbMail.Text; Variables.Contacto(cn, pt, tl, cl, em); Limpiar.txb(this); Limpiar.cmb(this); this.Hide(); Foto fot = null; fot = Foto.Instancia(); fot.MdiParent = AdminMDI.ActiveForm; fot.MdiParent = UserMDI.ActiveForm; fot.Show(); } else { MessageBox.Show("Debes de Seleccionar una opcion", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } } else { MessageBox.Show("Debes de llenar todos los campos", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
private void btnRegistrar_Click(object sender, EventArgs e) { if (Vacio.txb(this)) { if (Vacio.cmb(this)) { string ef = cbxEntFed.Text; string dm = cbxDelMun.Text; string cl = txbCol.Text; string cp = txbCodPos.Text; string cy = txbCalle.Text; string ne = txbNumExt.Text; string ni = txbNumInt.Text; Variables.Domicilio(ef, dm, cl, cp, cy, ne, ni); Limpiar.txb(this); Limpiar.cmb(this); this.Hide(); Contacto con = null; con = Contacto.Instancia(); con.MdiParent = AdminMDI.ActiveForm; con.MdiParent = UserMDI.ActiveForm; con.Show(); } else { MessageBox.Show("Debes de Seleccionar una opcion", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } } else { MessageBox.Show("Debes de llenar todos los campos", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
private void btnCon_Click(object sender, EventArgs e) { if (Vacio.txb(this)) { if (Vacio.cmb(this)) { string aPat = txbApePat.Text; string aMat = txbApeMat.Text; string nAsp = txbNom.Text; string fNac = dtpFecNac.Text; string eFed = cbxEntFed.Text; string sAsp = cbxSex.Text; string dAsp = txbCurAut.Text + txbCurHom.Text; string rAsp = txbRfcAut.Text + txbRfcHom.Text; string ecAsp = cmbEdoCivil.Text; Variables.DatosPersonales(aPat, aMat, nAsp, fNac, eFed, sAsp, dAsp, rAsp, ecAsp); Limpiar.txb(this); dtpFecNac.ResetText(); Limpiar.cmb(this); this.Hide(); Domicilio dom = null; dom = Domicilio.Instancia(); dom.MdiParent = AdminMDI.ActiveForm; dom.MdiParent = UserMDI.ActiveForm; dom.Show(); } else { MessageBox.Show("Debes de Seleccionar una opcion", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } } else { MessageBox.Show("Debes de llenar todos los campos", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }