Пример #1
0
 public static Frmingreso GetInstancia()
 {
     if (_instancia == null)
     {
         _instancia = new Frmingreso();
     }
     return(_instancia);
 }
Пример #2
0
        private void ingresosToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Frmingreso Form = Frmingreso.GetInstancia();

            Form.MdiParent = this;
            Form.Show();
            Datoscahe.Idusuario = Convert.ToInt32(Form.Idtrabajador);
        }
Пример #3
0
        private void datagridproveedor_DoubleClick(object sender, EventArgs e)
        {
            Frmingreso Form = Frmingreso.GetInstancia();
            string     par1, par2;

            par1 = Convert.ToString(this.datagridproveedor.CurrentRow.Cells["idproveedor"].Value);
            par2 = Convert.ToString(this.datagridproveedor.CurrentRow.Cells["razonsocial"].Value);
            Form.SetProveedor(par1, par2);
            this.Hide();
        }
Пример #4
0
        private void datagridcategoria_DoubleClick(object sender, EventArgs e)
        {
            Frmingreso Form = Frmingreso.GetInstancia();
            string     par1, par2;

            par1 = Convert.ToString(this.datagridcategoria.CurrentRow.Cells["idarticulo"].Value);
            par2 = Convert.ToString(this.datagridcategoria.CurrentRow.Cells["nombre"].Value);
            Form.SetArticulo(par1, par2);
            this.Hide();
        }
Пример #5
0
 private void Frmingreso_FormClosing(object sender, FormClosingEventArgs e)
 {
     _instancia = null;
 }