Ejemplo n.º 1
0
        public Form1()
        {
            InitializeComponent();
            Size        = new Size(1100, 768);
            labelx      = this.label1;
            labely      = this.NAME;
            labelz      = this.TIME;
            MainPage    = new MainpageStage();
            this.Cursor = new Cursor("icon\\mouse.ico");

            /************初始化( 測試時方便跳觀用 )************/
            //turntableStage = new TurnTableStage();
            //stage01 = new Stage01();
            //level01 = new Level01();
            //stage02 = new Stage02();
            //level02 = new Level02();
            //stage03 = new Stage03();
            /**************************************************/
        }
Ejemplo n.º 2
0
 public static void NewStage(pageName pageName)
 {
     if (pageName == pageName.mainPage)
     {
         MainPage = new MainpageStage();
     }
     if (pageName == pageName.turntablePage)
     {
         turntableStage = new TurnTableStage(); stage01 = null; stage02 = null; stage03 = null;
     }
     if (pageName == pageName.stage01)
     {
         stage01  = new Stage01();
         level01  = null;
         MainPage = null;
     }
     if (pageName == pageName.level01)
     {
         level01 = new Level01(); turntableStage = null;
     }
     if (pageName == pageName.stage02)
     {
         stage02  = new Stage02();
         level02  = null;
         MainPage = null;
     }
     if (pageName == pageName.level02)
     {
         level02 = new Level02(); turntableStage = null;
     }
     if (pageName == pageName.stage03)
     {
         stage03 = new Stage03();
     }
     GC.Collect();
 }