Пример #1
0
        public void prepararLlistaTorneosTancat(Control_ListViewDBCreator lvTorneos)
        {
            Dictionary <string, string> headerCamps   = new Dictionary <string, string>();
            Dictionary <string, int>    ordreCamps    = new Dictionary <string, int>();
            Dictionary <string, bool>   campsVisibles = new Dictionary <string, bool>();

            double[] midesColumnes = { 20, 20, 20, 20 };

            campsVisibles["DataClosed"]     = true;
            campsVisibles["Desc"]           = true;
            campsVisibles["Ganador"]        = true;
            campsVisibles["DataAssignacio"] = true;
            campsVisibles["inscritA"]       = true;


            headerCamps["DataClosed"] = "Data  closed";
            headerCamps["Desc"]       = "Descripcion";
            headerCamps["Ganador"]    = "qtat partida";
            headerCamps["inscritA"]   = "inscritA";

            ordreCamps["DataClosed"] = 0;
            ordreCamps["Desc"]       = 1;
            ordreCamps["Ganador"]    = 2;
            ordreCamps["inscritA"]   = 3;


            lvTorneos.CampsVisibles = campsVisibles;
            lvTorneos.Capsaleres    = headerCamps;
            lvTorneos.OrdreCamps    = ordreCamps;
            lvTorneos.MidaColumnes  = midesColumnes;
        }
Пример #2
0
        public void prepararLlistaTorneos(Control_ListViewDBCreator lvTorneos)
        {
            Dictionary <string, string> headerCamps   = new Dictionary <string, string>();
            Dictionary <string, int>    ordreCamps    = new Dictionary <string, int>();
            Dictionary <string, bool>   campsVisibles = new Dictionary <string, bool>();

            double[] midesColumnes = { 20, 20, 20 };

            campsVisibles["DataInici"]      = true;
            campsVisibles["Qtgrup"]         = true;
            campsVisibles["Qtpartida"]      = true;
            campsVisibles["DataAssignacio"] = true;
            // campsVisibles["inscritA"] = true;


            headerCamps["DataInici"] = "Data Inici";
            headerCamps["Qtgrup"]    = "qtat grup";
            headerCamps["Qtpartida"] = "qtat partida";
            // headerCamps["inscritA"] = "inscritA";

            ordreCamps["DataInici"] = 0;
            ordreCamps["Qtgrup"]    = 1;
            ordreCamps["Qtpartida"] = 2;
            // ordreCamps["inscritA"] = 3;


            lvTorneos.CampsVisibles = campsVisibles;
            lvTorneos.Capsaleres    = headerCamps;
            lvTorneos.OrdreCamps    = ordreCamps;
            lvTorneos.MidaColumnes  = midesColumnes;
        }