private void mantenimientoToolStripMenuItem_Click(object sender, EventArgs e) { IngresoForm frm = IngresoForm.GetInstancia(); frm.Idtrabajador = Convert.ToInt32(this.ObtenerID); AbrirFormEnPanel(frm); }
public static IngresoForm GetInstancia() { if (_instancia == null) { _instancia = new IngresoForm(); } return(_instancia); }
private void dataListado_DoubleClick(object sender, EventArgs e) { IngresoForm form = IngresoForm.GetInstancia(); string par1, par2; par1 = Convert.ToString(dataListado.CurrentRow.Cells["idarticulo"].Value); par2 = Convert.ToString(dataListado.CurrentRow.Cells["nombre"].Value); form.setArticulo(par1, par2); this.Hide(); }
private void dataListado_DoubleClick(object sender, EventArgs e) { if (dataListado.Rows.Count >= 1) { IngresoForm form = IngresoForm.GetInstancia(); string par1, par2; par1 = Convert.ToString(dataListado.CurrentRow.Cells["idproveedor"].Value); par2 = Convert.ToString(dataListado.CurrentRow.Cells["razon_social"].Value); form.setProveedor(par1, par2); this.Hide(); } }
private void IngresoForm_FormClosing(object sender, FormClosingEventArgs e) { _instancia = null; }