예제 #1
0
파일: Principal.cs 프로젝트: zenenhm85/FVA
        private void timer1_Tick(object sender, EventArgs e)
        {
            int b = Environment.TickCount;

            if ((b - time) >= 1000)
            {
                timer1.Enabled       = false;
                progressBar1.Visible = false;

                progressBar1.Value = 0;
                if (!fba2)
                {
                    //fba.Close();
                    fba           = new FVA();
                    fba.MdiParent = this;

                    fba.Show();
                }
                else
                {
                }
            }
            else
            {
                //progressBar1.Step += 200;
                if (progressBar1.Value + 150 < progressBar1.Maximum)
                {
                    progressBar1.Value += 150;
                }
                else
                {
                    progressBar1.Value = 0;
                }
            }
        }
예제 #2
0
        private void button4_Click(object sender, EventArgs e)
        {
            Principal.yaabriconstraint = false;
            FVA fba = new FVA();

            fba.MdiParent = Principal.ActiveForm;
            fba.Show();

            Close();
        }