Ejemplo n.º 1
0
        public void AddPlayerSubcategory(PlayerSubCategory subcat, PlayersTagStore tags)
        {
            TeamTemplate local = null, visitor = null;

            /* the notebook starts invisible */
            playersnotebook.Visible = true;
            if (subcat.Contains(Team.LOCAL))
            {
                local = localTeamTemplate;
            }
            if (subcat.Contains(Team.VISITOR))
            {
                visitor = visitorTeamTemplate;
            }

            PlayersTaggerWidget widget = new PlayersTaggerWidget(subcat, local, visitor, tags);

            widget.Show();
            playersbox.PackStart(widget, true, true, 0);
        }
Ejemplo n.º 2
0
        public void AddPlayerSubcategory(PlayerSubCategory subcat, PlayersTagStore tags)
        {
            TeamTemplate local=null, visitor=null;

            /* the notebook starts invisible */
            playersnotebook.Visible = true;
            if (subcat.Contains(Team.LOCAL))
                local = localTeamTemplate;
            if (subcat.Contains(Team.VISITOR))
                visitor = visitorTeamTemplate;

            PlayersTaggerWidget widget = new PlayersTaggerWidget(subcat, local, visitor, tags);
            widget.Show();
            playersbox.PackStart(widget, true, true, 0);
        }
Ejemplo n.º 3
0
        public void AddPlayerSubcategory(PlayerSubCategory subcat, PlayersTagStore tags)
        {
            TeamTemplate template;

            /* the notebook starts invisible */
            playersnotebook.Visible = true;
            if (subcat.Contains(Team.LOCAL))
            {
                template = localTeamTemplate;
            }
            /* FIXME: Add support for subcategories with both teams */
            //else if (subcat.Contains(Team.VISITOR))
            else
            {
                template = visitorTeamTemplate;
            }

            PlayersTaggerWidget widget = new PlayersTaggerWidget(subcat, template, tags);

            widget.Show();
            playersbox.PackStart(widget, false, true, 0);
        }