Пример #1
0
        private void timer2_Tick(object sender, EventArgs e)
        {
            Lgestionventa FAC = new Lgestionventa();

            facturane = FAC.codfactura();
            if (facturane == "1")
            {
                label2.Text = facturane;
            }
            else
            {
                ap          = Convert.ToInt32(facturane) + 1;
                label2.Text = ap.ToString();
            }
        }
Пример #2
0
        private void PnDomicilios_Load(object sender, EventArgs e)
        {
            Lgestionventa FAC = new Lgestionventa();

            factura = FAC.codfactura();

            if (factura == "1")
            {
                label2.Text = "1";
            }
            else
            {
                int a = Convert.ToInt32(factura) + 1;
                label2.Text = a.ToString();
            }
        }