Ejemplo n.º 1
0
        public static FrmPostulanteMant Instance()
        {
            if (frmInstance == null || frmInstance.IsDisposed == true)
            {
                frmInstance = new FrmPostulanteMant();
            }

            frmInstance.BringToFront();

            return(frmInstance);
        }
Ejemplo n.º 2
0
        private void btnNuevo_Click(object sender, EventArgs e)
        {
            try
            {
                var frmPostulanteNew = FrmPostulanteMant.Instance();
                frmPostulanteNew.MdiParent = this.MdiParent;
                frmPostulanteNew.Show();

                frmPostulanteNew.Cargar();
                frmPostulanteNew.frmList = this;
            }
            catch (Exception ex)
            {
                Util.ErrorMessage(ex.Message);
            }
        }
Ejemplo n.º 3
0
        private void btnEditar_Click(object sender, EventArgs e)
        {
            try
            {
                if (this.dgvPostulantes.CurrentRow != null)
                {
                    var uiPostulante = (BE.UI.Postulante) this.dgvPostulantes.CurrentRow.DataBoundItem;

                    var bePostulante = new LN.Postulante().Obtener(uiPostulante.Id);

                    var frmPostulanteEdit = FrmPostulanteMant.Instance();
                    frmPostulanteEdit.MdiParent = this.MdiParent;
                    frmPostulanteEdit.Show();

                    frmPostulanteEdit.Cargar(bePostulante);
                    frmPostulanteEdit.frmList = this;
                }
            }
            catch (Exception ex)
            {
                Util.ErrorMessage(ex.Message);
            }
        }