Esempio n. 1
0
        private void Form1_Load(object sender, EventArgs e)
        {
            TssFecha.Text = DateTime.Today.ToLongDateString();
            Servicio_registro servreg = new Servicio_registro();

            if (servreg.validarfechatrial() == false)
            {
                servreg.registrarlicencia(12171746247722944848);
                MessageBox.Show(servreg.validarlicencia().ToString());
            }
        }
Esempio n. 2
0
        private void administrarClientesToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Servicio_registro servreg = new Servicio_registro();

            if (servreg.validarlicencia())
            {
                FrmCliente clie = new FrmCliente();
                clie.MdiParent = this;
                clie.Show();
            }
            else
            {
                MessageBox.Show("Debe tener una licencia registrada para realizar esta accion");
            }
        }
Esempio n. 3
0
        private void aBMProductosToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Servicio_registro servreg = new Servicio_registro();

            if (servreg.validarlicencia())
            {
                Frmproductos frmprod = new Frmproductos();
                frmprod.MdiParent = this;
                frmprod.Show();
            }
            else
            {
                MessageBox.Show("Debe tener una licencia registrada para realizar esta accion");
            }
        }
Esempio n. 4
0
        private void administrarPeluquerosYEstilistasToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Servicio_registro servreg = new Servicio_registro();

            if (servreg.validarlicencia())
            {
                Frmpeluqueros peluq = new Frmpeluqueros();
                peluq.MdiParent = this;
                peluq.Show();
            }
            else
            {
                MessageBox.Show("Debe tener una licencia registrada para realizar esta accion");
            }
        }
Esempio n. 5
0
        private void MtbNumLicencia_TextChanged(object sender, EventArgs e)
        {
            if (MtbNumLicencia.Text.Replace(".", "").Length == 20)
            {
                Servicio_registro servreg = new Servicio_registro();

                if (Servicio_convertir.stringaulong(MtbNumLicencia.Text.Replace(".", "")) && servreg.validalicencianoregistrada(Convert.ToUInt64(MtbNumLicencia.Text.Replace(".", ""))))
                {
                    Btnvalidar.BackColor = Color.Green;
                }
                else
                {
                    Btnvalidar.BackColor = Color.Red;
                }
            }
        }
Esempio n. 6
0
        private void BtnRegistrar_Click(object sender, EventArgs e)
        {
            Servicio_registro servreg = new Servicio_registro();

            servreg.registrarlicencia(Convert.ToUInt64(MtbNumLicencia.Text.Replace(".", "")));
        }