public LMProjectVM() { HomeTeam = new LMTeamVM(); AwayTeam = new LMTeamVM(); Timeline = new LMTimelineVM(HomeTeam, AwayTeam); Dashboard = new LMDashboardVM(); }
public LMTeamTaggerVM() { HomeTeam = new LMTeamVM(); AwayTeam = new LMTeamVM(); ShowSubstitutionButtons = true; SelectionMode = MultiSelectionMode.Single; CurrentTime = new Time(0); }
public LMProjectVM() { HomeTeam = new LMTeamVM(); AwayTeam = new LMTeamVM(); Timeline = new LMTimelineVM(HomeTeam, AwayTeam); Dashboard = new LMDashboardVM(); ShowMenu = new Command(() => IsMenuVisible = !IsMenuVisible); Visible = true; }
protected override TeamVM CreateInstance(Team model) { LMTeamVM lMTeamVM = new LMTeamVM { Model = (LMTeam)model }; if (model.Static) { StaticViewModels.Add(lMTeamVM); } return(lMTeamVM); }
public TeamsManagerVM() { LoadedTemplate = new LMTeamVM(); NewCommand.Icon = App.Current.ResourcesLocator.LoadIcon("vas-add", Sizes.TemplatesIconSize); SaveCommand.Icon = App.Current.ResourcesLocator.LoadIcon("vas-save", Sizes.TemplatesIconSize); DeleteCommand.Icon = App.Current.ResourcesLocator.LoadIcon("vas-delete", Sizes.TemplatesIconSize); ExportCommand.Icon = App.Current.ResourcesLocator.LoadIcon("lm-export", Sizes.TemplatesIconSize); ImportCommand.Icon = App.Current.ResourcesLocator.LoadIcon("vas-import", Sizes.TemplatesIconSize); TeamTagger = new LMTeamTaggerVM(); TeamTagger.HomeTeam = (LMTeamVM)LoadedTemplate; TeamTagger.AwayTeam = null; TeamTagger.Background = App.Current.HHalfFieldBackground; TeamTagger.SelectionMode = MultiSelectionMode.MultipleWithModifier; TeamEditor = new LMTeamEditorVM(); TeamEditor.Team = (LMTeamVM)LoadedTemplate; TeamEditor.Team.TemplateEditorMode = true; if (LimitationChart != null) { LimitationChart.Dispose(); LimitationChart = null; } }
public LMTimelineVM(LMTeamVM homeTeam, LMTeamVM awayTeam) { homeTeamVM = homeTeam; awayTeamVM = awayTeam; Filters.IgnoreEvents = true; CategoriesPredicate = new OrPredicate <TimelineEventVM> { Name = Catalog.GetString("Categories") }; TeamsPredicate = new OrPredicate <TimelineEventVM> { Name = Catalog.GetString("Teams"), }; EventTypesTimeline.ViewModels.CollectionChanged += (sender, e) => UpdateEventTypesPredicates(); // FIXME: Filters are not working, keep this until user story LON-993 is done // otherwise openning a project hide incorrectly some events Filters.Add(new Predicate { Name = "EnableAll", Expression = ev => true }); //Filters.Add (CategoriesPredicate); //Filters.Add (TeamsPredicate); Filters.IgnoreEvents = false; }
public LMTimelineVM(LMTeamVM homeTeam, LMTeamVM awayTeam) { homeTeamVM = homeTeam; awayTeamVM = awayTeam; }