예제 #1
0
        private void btSincronizar_Click(object sender, EventArgs e)
        {
            btCancelar.Enabled = false;

            var txts = new ArrayList()
            {
                "Sincronizando", "Sincronizando.", "Sincronizando.."
            };

            lblSincronizar.Visible = true;

            for (var i = 0; i < 5; i++)
            {
                lblSincronizar.Text = (string)txts[i - 3 * ((int)(i / 3))];
                lblSincronizar.Refresh();

                progressBar1.Value = i * 4;

                Thread.Sleep(200);
            }

            DummyServices.Init();
            var lista = new ListServicios();

            lista.Show();
            Close();
        }
예제 #2
0
파일: Detalle.cs 프로젝트: jesumarquez/lt
        private void btCancelar_Click(object sender, EventArgs e)
        {
            var list = new ListServicios();

            list.Show();
            Close();
        }
예제 #3
0
        private void menuItem1_Click(object sender, EventArgs e)
        {
            var servicios = new ListServicios();

            servicios.Show();
            servicios.BringToFront();
            Close();
        }
예제 #4
0
파일: Login.cs 프로젝트: jesumarquez/lt
        private void menuItem1_Click(object sender, EventArgs e)
        {
            if (sq.read(String.Concat("SELECT * FROM distribuidores where usuario = '", txtUser.Text, "'")))
            {
                if (sq.dataSet.Tables[0].Rows.Count == 0)
                {
                    MessageBox.Show("Usuario incorrecto");
                    txtUser.SelectAll();
                    txtUser.Focus();
                }
                else
                {
                    if (sq.dataSet.Tables[0].Rows[0]["clave"].ToString() == GetMd5(txtPass.Text))
                    {
                        txtPass.Text = "";
                        //cargar servicios

                        Rutas.Init();

                        var servicios = new ListServicios();
                        servicios.Show();
                        servicios.BringToFront();
                    }
                    else
                    {
                        MessageBox.Show("Contraseña incorrecta");
                        txtPass.SelectAll();
                        txtPass.Focus();
                    }
                }
            }
            else
            {
                MessageBox.Show("No se puede acceder a los datos");
            }
        }