public static frmSubsiyNoSubsi GetInstance() { if (instance == null) { instance = new frmSubsiyNoSubsi(); } return(instance); }
private void btnFaltas_Click(object sender, EventArgs e) { frmSubsiyNoSubsi fr = frmSubsiyNoSubsi.GetInstance(); fr.Text = "NO LABORADOS / NO SUBSIDIADOS"; fr.StartPosition = FormStartPosition.CenterParent; tipoform = "NO SUBSIDIADOS"; fr.ShowDialog(); }
private void ImprimirDatos() { frmSubsiyNoSubsi formdiasSubsidiados = (frmSubsiyNoSubsi)Owner; formdiasSubsidiados.txtcodsub.Text = dgvnosubsidiados.CurrentRow.Cells[1].Value.ToString(); formdiasSubsidiados.txtdescrip.Text = dgvnosubsidiados.CurrentRow.Cells[2].Value.ToString(); formdiasSubsidiados.txtidsubsidio.Text = dgvnosubsidiados.CurrentRow.Cells[0].Value.ToString(); //formdiasSubsidiados.ShowDialog(); this.Close(); }
private void btnSubsidiados_Click(object sender, EventArgs e) { frmSubsiyNoSubsi fr = frmSubsiyNoSubsi.GetInstance(); fr.txtmes.Text = this.txtmes.Text; fr.Text = "SUBSIDIADOS"; fr.StartPosition = FormStartPosition.CenterParent; tipoform = "SUBSIDIADOS"; fr.ShowDialog(); }