Exemple #1
0
 public Play()
 {
     Drawings = new List<Drawing>();
     Tags = new StringTagStore();
     Players = new PlayersTagStore();
     Teams = new TeamsTagStore();
 }
Exemple #2
0
 public void AddTeamSubcategory(TeamSubCategory subcat, TeamsTagStore tags,
                                string localTeam, string visitorTeam)
 {
     /* the notebook starts invisible */
     tagsnotebook.Visible = true;
     taggerwidget1.AddTeamSubCategory(subcat, tags, localTeam, visitorTeam);
 }
Exemple #3
0
 public Play()
 {
     Drawings = new List <Drawing>();
     Tags     = new StringTagStore();
     Players  = new PlayersTagStore();
     Teams    = new TeamsTagStore();
 }
        public void AddTeamSubCategory(TeamSubCategory subcat, TeamsTagStore tags,
		                               string localTeam, string visitorTeam)
        {
            TeamTaggerWidget tagger = new TeamTaggerWidget(subcat, tags,
                                                           localTeam, visitorTeam);
            table1.Attach(tagger,0, 1, table1.NRows-1, table1.NRows);
            table1.NRows ++;
            tagger.Show();
        }
Exemple #5
0
 public Play()
 {
     Drawings     = new List <Drawing>();
     Tags         = new StringTagStore();
     Players      = new PlayersTagStore();
     Teams        = new TeamsTagStore();
     Fps          = 25;
     PlaybackRate = 1.0;
 }
Exemple #6
0
        public void AddTeamSubCategory(TeamSubCategory subcat, TeamsTagStore tags,
                                       string localTeam, string visitorTeam)
        {
            TeamTaggerWidget tagger = new TeamTaggerWidget(subcat, tags,
                                                           localTeam, visitorTeam);

            table1.Attach(tagger, 0, 1, table1.NRows - 1, table1.NRows);
            table1.NRows++;
            tagger.Show();
        }
        public TeamTaggerWidget(TeamSubCategory subcat, TeamsTagStore tags, 
		                         string localTeam, string visitorTeam)
        {
            this.Build ();
            this.subcat = subcat;
            this.tags = tags;
            this.localTeam = localTeam;
            this.visitorTeam = visitorTeam;
            Title = subcat.Name;
            dict = new Dictionary<TeamTag, CheckButton>();
            AddTagWidget(new TeamTag{Value=Team.LOCAL, SubCategory=subcat});
            AddTagWidget(new TeamTag{Value=Team.VISITOR, SubCategory=subcat});
            UpdateTags();
        }
 public TeamTaggerWidget(TeamSubCategory subcat, TeamsTagStore tags,
                         string localTeam, string visitorTeam)
 {
     this.Build();
     this.subcat      = subcat;
     this.tags        = tags;
     this.localTeam   = localTeam;
     this.visitorTeam = visitorTeam;
     Title            = subcat.Name;
     dict             = new Dictionary <TeamTag, CheckButton>();
     AddTagWidget(new TeamTag {
         Value = Team.LOCAL, SubCategory = subcat
     });
     AddTagWidget(new TeamTag {
         Value = Team.VISITOR, SubCategory = subcat
     });
     UpdateTags();
 }
        public void AddTeamSubcategory(TeamSubCategory subcat, TeamsTagStore tags,
		                                string localTeam, string visitorTeam)
        {
            /* the notebook starts invisible */
            tagsnotebook.Visible = true;
            taggerwidget1.AddTeamSubCategory(subcat, tags, localTeam, visitorTeam);
        }
Exemple #10
0
        public TaggerDialog(Category cat, StringTagStore tags, PlayersTagStore players, TeamsTagStore teams,
                            TeamTemplate localTeamTemplate, TeamTemplate visitorTeamTemplate)
        {
            this.Build();

            tagsnotebook.Visible = false;

            this.localTeamTemplate   = localTeamTemplate;
            this.visitorTeamTemplate = visitorTeamTemplate;

            /* Iterate over all subcategories, adding a widget only for the FastTag ones */
            foreach (var subcat in cat.SubCategories)
            {
                if (!subcat.FastTag)
                {
                    continue;
                }
                if (subcat is TagSubCategory)
                {
                    var tagcat = subcat as TagSubCategory;
                    AddTagSubcategory(tagcat, tags);
                }
                else if (subcat is PlayerSubCategory)
                {
                    var tagcat = subcat as PlayerSubCategory;
                    AddPlayerSubcategory(tagcat, players);
                }
                else if (subcat is TeamSubCategory)
                {
                    var tagcat = subcat as TeamSubCategory;
                    AddTeamSubcategory(tagcat, teams,
                                       localTeamTemplate.TeamName,
                                       visitorTeamTemplate.TeamName);
                }
            }
        }