コード例 #1
0
 public LMProjectVM()
 {
     HomeTeam  = new LMTeamVM();
     AwayTeam  = new LMTeamVM();
     Timeline  = new LMTimelineVM(HomeTeam, AwayTeam);
     Dashboard = new LMDashboardVM();
 }
コード例 #2
0
 public LMTeamTaggerVM()
 {
     HomeTeam = new LMTeamVM();
     AwayTeam = new LMTeamVM();
     ShowSubstitutionButtons = true;
     SelectionMode           = MultiSelectionMode.Single;
     CurrentTime             = new Time(0);
 }
コード例 #3
0
 public LMProjectVM()
 {
     HomeTeam  = new LMTeamVM();
     AwayTeam  = new LMTeamVM();
     Timeline  = new LMTimelineVM(HomeTeam, AwayTeam);
     Dashboard = new LMDashboardVM();
     ShowMenu  = new Command(() => IsMenuVisible = !IsMenuVisible);
     Visible   = true;
 }
コード例 #4
0
        protected override TeamVM CreateInstance(Team model)
        {
            LMTeamVM lMTeamVM = new LMTeamVM {
                Model = (LMTeam)model
            };

            if (model.Static)
            {
                StaticViewModels.Add(lMTeamVM);
            }

            return(lMTeamVM);
        }
コード例 #5
0
 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;
     }
 }
コード例 #6
0
        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;
        }
コード例 #7
0
 public LMTimelineVM(LMTeamVM homeTeam, LMTeamVM awayTeam)
 {
     homeTeamVM = homeTeam;
     awayTeamVM = awayTeam;
 }