Exemple #1
0
        private void ini_DoubleClick(object sender, EventArgs e)
        {
            Ide id = new Ide();

            this.Hide();

            id.Show();
        }
Exemple #2
0
        private void timer1_Tick(object sender, EventArgs e)
        {
            int i = progressBar1.Minimum;

            total = total + 1;
            if (total == 2 && i < progressBar1.Maximum)
            {
                progressBar1.PerformStep();
                progressBar1.PerformStep();
                progressBar1.PerformStep();
                progressBar1.PerformStep();
                label1.Text = "cargando complementos.";
            }

            if (total == 3 && i < progressBar1.Maximum)
            {
                progressBar1.PerformStep();
                progressBar1.PerformStep();
                progressBar1.PerformStep();
                progressBar1.PerformStep();
                label1.Text = "cargando complementos..";
            }

            if (total == 4 && i < progressBar1.Maximum)
            {
                progressBar1.PerformStep();
                progressBar1.PerformStep();
                progressBar1.PerformStep();
                progressBar1.PerformStep();
                label1.Text = "cargando complementos...";
            }

            if (total == 5 && i < progressBar1.Maximum)
            {
                label1.Text = "sistema cargado";

                for (int isf = i; isf < progressBar1.Maximum; isf = isf + progressBar1.Step)
                {
                    //esta instrucción avanza la posición actual de la barra
                    progressBar1.PerformStep();
                    label1.Text = "sistema cargado";
                }
            }

            if (total == 6)
            {
                Ide id = new Ide();
                this.Hide();

                id.Show();
            }
        }