Esempio n. 1
0
        private void CreateDefaultPlayerSubCategories()
        {
            PlayerSubCategory subcat;

            /* Local team players */
            playerSubcatList = new List <PlayerSubCategory>();
            subcat           = new PlayerSubCategory {
                Name = Catalog.GetString("Local team players"), AllowMultiple = true, FastTag = true
            };
            subcat.Add(Team.LOCAL);
            playerSubcatList.Add(subcat);

            /* Visitor team players */
            subcat = new PlayerSubCategory {
                Name = Catalog.GetString("Visitor team players"), AllowMultiple = true, FastTag = true
            };
            subcat.Add(Team.VISITOR);
            playerSubcatList.Add(subcat);

            /* Local and Visitor team players */
            subcat = new PlayerSubCategory {
                Name = Catalog.GetString("All teams players"), AllowMultiple = true, FastTag = true
            };
            subcat.Add(Team.LOCAL);
            subcat.Add(Team.VISITOR);
            playerSubcatList.Add(subcat);
        }
Esempio n. 2
0
        public void AddDefaultItem(int index)
        {
            PlayerSubCategory localplayers, visitorplayers;
            TagSubCategory    period;
            TeamSubCategory   team;
            Color             c = new Color((Byte)255, (Byte)0, (Byte)0);
            HotKey            h = new HotKey();

            team = new TeamSubCategory {
                Name          = Catalog.GetString("Team"),
                AllowMultiple = false,
                FastTag       = true
            };
            team.Add(Team.LOCAL);
            team.Add(Team.VISITOR);

            localplayers = new PlayerSubCategory {
                Name          = Catalog.GetString("Local Team Players"),
                AllowMultiple = true,
                FastTag       = true
            };
            localplayers.Add(Team.LOCAL);

            visitorplayers = new PlayerSubCategory {
                Name          = Catalog.GetString("Visitor Team Players"),
                AllowMultiple = true,
                FastTag       = true
            };
            visitorplayers.Add(Team.VISITOR);

            period = new TagSubCategory {
                Name          = Catalog.GetString("Period"),
                AllowMultiple = false,
                FastTag       = true,
            };
            period.Add("1");
            period.Add("2");

            Category cat = new Category {
                Name  = "Category " + index,
                Color = c,
                Start = new Time {
                    Seconds = 10
                },
                Stop = new Time {
                    Seconds = 10
                },
                SortMethod = SortMethodType.SortByStartTime,
                HotKey     = h,
                Position   = index - 1,
            };

            cat.SubCategories.Add(team);
            cat.SubCategories.Add(localplayers);
            cat.SubCategories.Add(visitorplayers);
            cat.SubCategories.Add(period);
            Insert(index, cat);
        }
Esempio n. 3
0
        public void AddDefaultSubcategories(Category cat)
        {
            PlayerSubCategory localplayers, visitorplayers;

            localplayers = new PlayerSubCategory {
                Name          = Catalog.GetString("Local Team Players"),
                AllowMultiple = true,
                FastTag       = true
            };
            localplayers.Add(Team.LOCAL);

            visitorplayers = new PlayerSubCategory {
                Name          = Catalog.GetString("Visitor Team Players"),
                AllowMultiple = true,
                FastTag       = true
            };
            visitorplayers.Add(Team.VISITOR);

            cat.SubCategories.Add(localplayers);
            cat.SubCategories.Add(visitorplayers);
        }