示例#1
0
文件: Menu.cs 项目: Dar9586/comGUI
 void buttonClick(object sender, EventArgs e) {
     int sen=lst.IndexOf((sender as Button));
     Form s=null;
     switch(sen) {
         case 0 :s=new Test();break;
         case 1 :s=new First();break;
         case 2 :s=new MCD();break;
         case 3 :s=new Tris();break;
         case 4 :s=new Game2048();break;
         case 5 :s=new Calcolatrice();break;
         case 6 :s=new Convertitore();break;
         case 7 :s=new Tiles();break;
         case 8 :s=new Scomposizione();break;
         case 9 :s=new Semplificazione();break;
         case 10:s=new Notazione();break;
         case 11:s=new Password();break;
         case 12:s=new Simon();break;
         case 13:s=new MemorySetting();break;
         case 14:s=new SwitchSetting();break;
         case 15:s=new SnakeSingle();break;
         case 16:s=new Sudoku();break;
         case 17:s=new Piano();break;
         case 18:s=new Anagrammi();break;
         case 19:s=new Galattron();break;
         case 20:s=new MineSweeper();break;
         case 21:s=new Squash();break;
         case 22:s=new Ruffini();break;
         case 23:s=new SpinTheCircle();break;
         case 24:s=new BlackJack();break;
         case 25:s=new Sette_e_Mezzo();break;
         case 26:s=new Ten();break;
         case 27:s=new Arkanoid();break;
         case 28:s=new Browser();break;
         case 29:s=new Forza4();break;
         case 30:s=new Game1010();break;
         case 31:s=new Tower();break;
         case 32:s=new Dama();break;
     }if(lst[sen].Text!="WIP") { s.Show();Hide(); }
 }
示例#2
0
        void buttonClick(object sender, EventArgs e)
        {
            int  sen = lst.IndexOf((sender as Button));
            Form s   = null;

            switch (sen)
            {
            case 0: s = new Test(); break;

            case 1: s = new First(); break;

            case 2: s = new MCD(); break;

            case 3: s = new Tris(); break;

            case 4: s = new Game2048(); break;

            case 5: s = new Calcolatrice(); break;

            case 6: s = new Convertitore(); break;

            case 7: s = new Tiles(); break;

            case 8: s = new Scomposizione(); break;

            case 9: s = new Semplificazione(); break;

            case 10: s = new Notazione(); break;

            case 11: s = new Password(); break;

            case 12: s = new Simon(); break;

            case 13: s = new MemorySetting(); break;

            case 14: s = new SwitchSetting(); break;

            case 15: s = new SnakeSingle(); break;

            case 16: s = new Sudoku(); break;

            case 17: s = new Piano(); break;

            case 18: s = new Anagrammi(); break;

            case 19: s = new Galattron(); break;

            case 20: s = new MineSweeper(); break;

            case 21: s = new Squash(); break;

            case 22: s = new Ruffini(); break;

            case 23: s = new SpinTheCircle(); break;

            case 24: s = new BlackJack(); break;

            case 25: s = new Sette_e_Mezzo(); break;

            case 26: s = new Ten(); break;

            case 27: s = new Arkanoid(); break;

            case 28: s = new Browser(); break;

            case 29: s = new Forza4(); break;

            case 30: s = new Game1010(); break;

            case 31: s = new Tower(); break;

            case 32: s = new Dama(); break;
            }
            if (lst[sen].Text != "WIP")
            {
                s.Show(); Hide();
            }
        }