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

            frm.MdiParent = this;
            frm.Show();
        }
 public static FormNotaVenta GetInstancia()
 {
     if (_Instancia == null)
     {
         _Instancia = new FormNotaVenta();
     }
     return(_Instancia);
 }
示例#3
0
        private void dtGV_Listado_DoubleClick(object sender, EventArgs e)
        {
            FormNotaVenta form = FormNotaVenta.GetInstancia();
            string        par1, par2;
            decimal       par3;
            int           par4;

            par1 = Convert.ToString(this.dtGV_Listado.CurrentRow.Cells["ArtCodigo"].Value);
            par2 = Convert.ToString(this.dtGV_Listado.CurrentRow.Cells["ArtDescripcion"].Value);
            par3 = Convert.ToDecimal(this.dtGV_Listado.CurrentRow.Cells["ArtPrecio_Venta"].Value);
            par4 = Convert.ToInt32(this.dtGV_Listado.CurrentRow.Cells["ArtUnidades"].Value);

            form.setArticulo(par1, par2, par3, par4);
            this.Hide();
        }
 private void FormNotaVenta_FormClosing(object sender, FormClosingEventArgs e)
 {
     _Instancia = null;
 }