Exemplo n.º 1
0
 public NewProjectVM()
 {
     TeamTagger = new LMTeamTaggerVM();
     TeamTagger.ShowSubstitutionButtons = false;
     TeamTagger.SubstitutionMode        = true;
     Project = new LMProjectVM();
 }
Exemplo n.º 2
0
 public SubstitutionsEditorVM()
 {
     SaveCommand = new AsyncCommand(Save);
     TeamTagger  = new LMTeamTaggerVM();
     TeamTagger.ShowSubstitutionButtons = false;
     InPlayer  = new LMPlayerVM();
     OutPlayer = new LMPlayerVM();
 }
Exemplo n.º 3
0
 public PlayEditorVM()
 {
     TeamTagger = new LMTeamTaggerVM();
     TeamTagger.ShowSubstitutionButtons = false;
     TeamTagger.Compact          = true;
     TeamTagger.SelectionMode    = MultiSelectionMode.Multiple;
     TeamTagger.ShowTeamsButtons = true;
 }
Exemplo n.º 4
0
 public NewProjectVM()
 {
     TeamTagger = new LMTeamTaggerVM();
     TeamTagger.ShowSubstitutionButtons = false;
     TeamTagger.SubstitutionMode        = true;
     Project    = new LMProjectVM();
     Dashboards = new DashboardsManagerVM();
     Teams      = new TeamsManagerVM();
 }
Exemplo n.º 5
0
 public TeamsManagerVM()
 {
     LoadedTemplate                     = new LMTeamVM();
     NewCommand.Icon                    = App.Current.ResourcesLocator.LoadIcon("vas-add", StyleConf.TemplatesIconSize);
     SaveCommand.Icon                   = App.Current.ResourcesLocator.LoadIcon("vas-save", StyleConf.TemplatesIconSize);
     DeleteCommand.Icon                 = App.Current.ResourcesLocator.LoadIcon("vas-delete", StyleConf.TemplatesIconSize);
     ExportCommand.Icon                 = App.Current.ResourcesLocator.LoadIcon("lm-export", StyleConf.TemplatesIconSize);
     ImportCommand.Icon                 = App.Current.ResourcesLocator.LoadIcon("vas-import", StyleConf.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;
 }
Exemplo n.º 6
0
 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);
 }
Exemplo n.º 7
0
 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;
 }
Exemplo n.º 8
0
 public LMDrawingToolVM()
 {
     TeamTagger = new LMTeamTaggerVM();
     TeamTagger.ShowSubstitutionButtons = false;
     ResetTeamTagger();
 }