Пример #1
0
        void timer_Tick(object sender, EventArgs e)
        {
            count += 2;
            //metroStyleManager1.Style = (MetroFramework.MetroColorStyle)10;
            //mtlblProgress.Text = "Welcome";
            //this.Text = "Welcome";

            if (count == 10)
            {
                mtlblProgress.Text = "Welcome";
                pnlLearn _pnlLearn = new pnlLearn(this);
                _pnlLearn.Closed += _pnlLearn_Closed;
                _pnlLearn.Shown  += _pnlLearn_Shown;
                _pnlLearn.swipe(true);


                while (true)
                {
                    count += 2;
                    //metroStyleManager1.Style = (MetroFramework.MetroColorStyle)m;

                    if (count == 90)
                    {
                        _pnlLearn.cc();


                        break;
                    }
                }
            }

            if (count == 120)
            {
                mtlblProgress.Text = "Loading Components...";
                pnlStaff _pnlStaff = new pnlStaff(this);

                _pnlStaff.swipe(true);

                while (true)
                {
                    count += 2;
                    if (count == 200)
                    {
                        _pnlStaff.cc();

                        break;
                    }
                }
            }
            //mtlblProgress.Text = "Initializing Components...";

            if (count == 230)
            {
                pnlLecturer _pnlLecturer = new pnlLecturer(this);

                _pnlLecturer.swipe(true);

                while (true)
                {
                    count += 2;
                    if (count == 310)
                    {
                        _pnlLecturer.cc();

                        break;
                    }
                }
            }


            if (count == 400)
            {
                timer.Stop();
                this.Close();
            }
        }
Пример #2
0
        private void btnStaff_Click(object sender, EventArgs e)
        {
            pnlStaff pnlStaff = new pnlStaff(this);

            pnlStaff.swipe(true);
        }