Exemplo n.º 1
0
    public void Choice(int temp)
    {
        switch (temp)
        {
        case 1:      //BDE
            choixAssos = "BDE";
            break;

        case 2:       // Sepefrei
            choixAssos = "Sepefrei";
            break;

        case 3:       // Effor
            choixAssos = "EFFOR";
            break;

        case 4:       // Ogma
            choixAssos = "Ogma";
            break;

        case 5:       // Piste
            choixAssos = "Piste";
            break;

        case 6:       // AI EFREI
            choixAssos = "AI efrei";
            break;

        case 7:       // EPS
            choixAssos = "EPS";
            break;

        case 8:       // Rename
            choixAssos = "Rename";
            break;

        case 9:       // Ready o
            choixAssos = "Ready o";
            break;

        case 10:       // Efrei int
            choixAssos = "Efrei international";
            break;

        case 11:       // Asian
            choixAssos = "Asian";
            break;

        case 12:       // I week
            choixAssos = "I week";
            break;

        case 13:       // Infitah
            choixAssos = "Infitah";
            break;

        case 14:       // Yé mistikrirk
            choixAssos = "Ye Mistikrik";
            break;

        case 15:       // Live Efrei
            choixAssos = "Live Efrei";
            break;

        case 16:       // Club Rézo
            choixAssos = "Club Rézo";
            break;


        case 17:       // Efrei Poker
            choixAssos = "Efrei Poker";
            break;

        case 18:       // Taverne
            choixAssos = "Taverne";
            break;

        case 19:       // Millésisme
            choixAssos = "Millésisme";
            break;

        case 20:       // Groupe Escape
            choixAssos = "Groupe Escape";
            break;

        case 21:       // Pen soul
            choixAssos = "Pen Soul";
            break;

        case 22:       // Le Continental
            choixAssos = "Continental";
            break;

        case 23:       // EfreiChef
            choixAssos = "Efrei Chefs";
            break;

        case 24:       // Hifi Lix
            choixAssos = "Hifi Lix";
            break;

        case 25:       // bds
            choixAssos = "bds";
            break;

        case 26:       // efreestyle
            choixAssos = "efreestyle";
            break;

        case 27:       // efight
            choixAssos = "efight";
            break;

        case 28:       // ef racing
            choixAssos = "ef racing";
            break;

        case 29:       // ef ride
            choixAssos = "ef ride";
            break;

        case 30:       // cap efrei
            choixAssos = "cap efrei";
            break;

        case 31:       // efrei climbing
            choixAssos = "climbing";
            break;

        case 32:       // para
            choixAssos = "para";
            break;

        case 33:       // efray
            choixAssos = "efray";
            break;

        case 34:       // hock
            choixAssos = "Hock'Efrei";
            break;

        case 35:       // 4e sport
            choixAssos = "4e sport";
            break;

        case 36:       // wei
            choixAssos = "WEI";
            break;

        case 37:       // gala
            choixAssos = "Gala";
            break;

        case 38:       // ice
            choixAssos = "Ice";
            break;

        case 39:       // microsoft
            choixAssos = "Microsoft";
            break;

        case 40:       // 3d
            choixAssos = "3D";
            break;

        case 41:       // crobotic
            choixAssos = "Crobotic";
            break;

        case 42:       // linux
            choixAssos = "Linux";
            break;

        case 43:       // aero
            choixAssos = "Aero";
            break;

        case 44:       // get
            choixAssos = "get";
            break;

        case 45:       // crypto
            choixAssos = "Crypto";
            break;

        case 46:       // fap
            choixAssos = "FAP";
            break;

        case 47:       // eah
            choixAssos = "EAH";
            break;

        case 48:       // symbioz
            choixAssos = "Symbioz";
            break;

        case 49:       // entraide
            choixAssos = "Entraide";
            break;

        case 50:       // human app
            choixAssos = "Human'app";
            break;

        case 51:       // 4L
            choixAssos = "4L FAONS";
            break;

        case 52:       // Spot
            choixAssos = "Spot";
            break;

        case 53:     // Mist
            choixAssos = "Mist";
            break;

        case 54:      // Bureau BDS
            choixAssos = "Bureau BDS";
            break;

        case 55:      // Athlé
            choixAssos = "Athlé";
            break;

        case 56:      // EGE
            choixAssos = "EGE";
            break;

        case 57:      // Foot
            choixAssos = "Foot";
            break;

        case 58:      // Tennis
            choixAssos = "Tennis";
            break;

        case 59:      // Natation
            choixAssos = "Natation";
            break;

        case 60:      // Basket
            choixAssos = "Basket";
            break;

        case 61:      // Rugby
            choixAssos = "Rugby";
            break;

        case 62:      // Bad
            choixAssos = "Bad";
            break;

        case 63:      // Volley
            choixAssos = "Volley";
            break;

        case 64:      // Pandora
            choixAssos = "Pandora";
            break;
        }

        if (!save.Found_assos(choixAssos))
        {
            save.Add_assos(choixAssos);
            save.Save_Parameters();
        }

        if (langue == 0)
        {
            choixAssos1.text = "Tes associations : ";
        }
        else
        {
            choixAssos1.text = "Your associations : ";
        }


        choixAssos2.text = save.Get_Tab_assos(0);

        if (save.Get_Tab_assos(1) != "none")
        {
            choixAssos3.text = save.Get_Tab_assos(1);
        }

        if (save.Get_Tab_assos(2) != "none")
        {
            choixAssos4.text = save.Get_Tab_assos(2);
        }
    }