public LMProjectAnalysisVM() { TeamTagger = new LMTeamTaggerVM(); TeamTagger.Compact = true; TeamTagger.SelectionMode = MultiSelectionMode.Multiple; TeamTagger.ShowTeamsButtons = true; Project = new LMProjectVM(); SaveCommand = new Command( () => App.Current.EventsBroker.Publish(new SaveEvent <LMProjectVM> { Object = Project }), () => Project.Edited); ShowStatsCommand = new Command( () => App.Current.EventsBroker.Publish(new ShowProjectStatsEvent { Project = Project.Model })); CloseCommand = new AsyncCommand(Close); ShowWarningLimitation = new LimitationCommand(VASFeature.OpenMultiCamera.ToString(), () => { }); ShowWarningLimitation.LimitationCondition = () => Project.FileSet.Count() > 1; }
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; } }