public Play() { Drawings = new List<Drawing>(); Tags = new StringTagStore(); Players = new PlayersTagStore(); Teams = new TeamsTagStore(); }
public Play() { Drawings = new List <Drawing>(); Tags = new StringTagStore(); Players = new PlayersTagStore(); Teams = new TeamsTagStore(); }
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(); }
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(); }
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(); }
public Play() { Drawings = new List <Drawing>(); Tags = new StringTagStore(); Players = new PlayersTagStore(); Teams = new TeamsTagStore(); Fps = 25; PlaybackRate = 1.0; }
public StringTaggerWidget(TagSubCategory subcategory, StringTagStore tags) { this.Build(); this.subcategory = subcategory; this.tags = tags; count = 0; table.NColumns = 3; PopulateGui(); UpdateTags(); }
public StringTaggerWidget(TagSubCategory subcategory, StringTagStore tags) { this.Build (); this.subcategory = subcategory; this.tags = tags; count = 0; table.NColumns = 5; PopulateGui(); UpdateTags(); }
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); } } }
public void AddTagSubcategory(TagSubCategory subcat, StringTagStore tags) { /* the notebook starts invisible */ tagsnotebook.Visible = true; taggerwidget1.AddSubCategory(subcat, tags); }