Esempio n. 1
0
 public Play()
 {
     Drawings = new List<Drawing>();
     Tags = new StringTagStore();
     Players = new PlayersTagStore();
     Teams = new TeamsTagStore();
 }
Esempio n. 2
0
 public Play()
 {
     Drawings = new List <Drawing>();
     Tags     = new StringTagStore();
     Players  = new PlayersTagStore();
     Teams    = new TeamsTagStore();
 }
Esempio n. 3
0
 public StringTaggerWidget(TagSubCategory subcategory, StringTagStore tags)
 {
     this.Build();
     this.subcategory = subcategory;
     this.tags        = tags;
     PopulateGui();
     UpdateTags();
 }
 public StringTaggerWidget(TagSubCategory subcategory, StringTagStore tags)
 {
     this.Build ();
     this.subcategory = subcategory;
     this.tags = tags;
     PopulateGui();
     UpdateTags();
 }
Esempio n. 5
0
        public void AddSubCategory(TagSubCategory subcat, StringTagStore tags)
        {
            StringTaggerWidget tagger = new StringTaggerWidget(subcat, tags);

            table1.Attach(tagger, 0, 1, table1.NRows - 1, table1.NRows);
            table1.NRows++;
            tagger.Show();
        }
Esempio n. 6
0
 public void AddSubCategory(TagSubCategory subcat, StringTagStore tags)
 {
     if (subcat.Count == 0)
         return;
     StringTaggerWidget tagger = new StringTaggerWidget(subcat, tags);
     table1.Attach(tagger,0, 1, table1.NRows-1, table1.NRows);
     table1.NRows ++;
     tagger.Show();
 }
Esempio n. 7
0
 public Play()
 {
     Drawings     = new List <Drawing>();
     Tags         = new StringTagStore();
     Players      = new PlayersTagStore();
     Teams        = new TeamsTagStore();
     Fps          = 25;
     PlaybackRate = 1.0;
 }
Esempio n. 8
0
 public StringTaggerWidget(TagSubCategory subcategory, StringTagStore tags)
 {
     this.Build();
     this.subcategory = subcategory;
     this.tags        = tags;
     count            = 0;
     table.NColumns   = 3;
     PopulateGui();
     UpdateTags();
 }
Esempio n. 9
0
 public StringTaggerWidget(TagSubCategory subcategory, StringTagStore tags)
 {
     this.Build ();
     this.subcategory = subcategory;
     this.tags = tags;
     count = 0;
     table.NColumns = 5;
     PopulateGui();
     UpdateTags();
 }
Esempio n. 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);
                }
            }
        }
Esempio n. 11
0
 public void AddTagSubcategory(TagSubCategory subcat, StringTagStore tags)
 {
     /* the notebook starts invisible */
     tagsnotebook.Visible = true;
     taggerwidget1.AddSubCategory(subcat, tags);
 }
Esempio n. 12
0
 public void AddTagSubcategory(TagSubCategory subcat, StringTagStore tags)
 {
     /* the notebook starts invisible */
     tagsnotebook.Visible = true;
     taggerwidget1.AddSubCategory(subcat, tags);
 }