示例#1
0
        private void mantenimientoToolStripMenuItem_Click(object sender, EventArgs e)
        {
            IngresoForm frm = IngresoForm.GetInstancia();

            frm.Idtrabajador = Convert.ToInt32(this.ObtenerID);
            AbrirFormEnPanel(frm);
        }
示例#2
0
 public static IngresoForm GetInstancia()
 {
     if (_instancia == null)
     {
         _instancia = new IngresoForm();
     }
     return(_instancia);
 }
示例#3
0
        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();
        }
示例#4
0
 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();
     }
 }
示例#5
0
 private void IngresoForm_FormClosing(object sender, FormClosingEventArgs e)
 {
     _instancia = null;
 }