private void planillaToolStripMenuItem1_Click(object sender, EventArgs e) { frmPlanillas frm = frmPlanillas.GetMiInstancia(); frm.MdiParent = this; frm.Show(); }
private void iconPlanilla_Click(object sender, EventArgs e) { frmPlanillas frm = frmPlanillas.GetMiInstancia(); frm.MdiParent = this; frm.Show(); }
public static frmPlanillas GetMiInstancia() { if (_MiInstancia == null) { _MiInstancia = new frmPlanillas(); } return(_MiInstancia); }
private void dgvEmpleado_DoubleClick(object sender, EventArgs e) { frmPlanillas form = frmPlanillas.GetMiInstancia(); string par1, par2, par3, par4, par5; par1 = Convert.ToString(this.dgvEmpleado.CurrentRow.Cells["idempleado"].Value); par2 = Convert.ToString(this.dgvEmpleado.CurrentRow.Cells["identidad"].Value); par3 = Convert.ToString(this.dgvEmpleado.CurrentRow.Cells["primer_nombre"].Value) + " " + Convert.ToString(this.dgvEmpleado.CurrentRow.Cells["primer_apellido"].Value); par4 = Convert.ToString(this.dgvEmpleado.CurrentRow.Cells["salario_base"].Value); par5 = Convert.ToString(this.dgvEmpleado.CurrentRow.Cells["cargo_empleado"].Value); //MessageBox.Show(par1 + par2 + par3 + par4 + par5); form.setEmpleado(par1, par2, par3, par4, par5); this.Hide(); }
private void frmPlanillas_FormClosed(object sender, FormClosedEventArgs e) { _MiInstancia = null; }