public void AddTeamSubcategory(TeamSubCategory subcat, TeamsTagStore tags, string localTeam, string visitorTeam) { /* the notebook starts invisible */ tagsnotebook.Visible = true; taggerwidget1.AddTeamSubCategory(subcat, tags, localTeam, visitorTeam); }
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); }
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 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(); }