Example #1
0
        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;

                fba           = new Rna();
                fba.MdiParent = this;
                fba.Show();
            }
            else
            {
                if (progressBar1.Value + 150 < progressBar1.Maximum)
                {
                    progressBar1.Value += 150;
                }
                else
                {
                    progressBar1.Value = 0;
                }
            }
        }
Example #2
0
        private void button2_Click(object sender, EventArgs e)
        {
            Principal.yaabriconstraint = false;
            Rna fba = new Rna();

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

            Close();
        }