Пример #1
0
 public NewProjectVM()
 {
     TeamTagger = new LMTeamTaggerVM();
     TeamTagger.ShowSubstitutionButtons = false;
     TeamTagger.SubstitutionMode        = true;
     Project = new LMProjectVM();
 }
Пример #2
0
 public SubstitutionsEditorVM()
 {
     SaveCommand = new AsyncCommand(Save);
     TeamTagger  = new LMTeamTaggerVM();
     TeamTagger.ShowSubstitutionButtons = false;
     InPlayer  = new LMPlayerVM();
     OutPlayer = new LMPlayerVM();
 }
Пример #3
0
 public PlayEditorVM()
 {
     TeamTagger = new LMTeamTaggerVM();
     TeamTagger.ShowSubstitutionButtons = false;
     TeamTagger.Compact          = true;
     TeamTagger.SelectionMode    = MultiSelectionMode.Multiple;
     TeamTagger.ShowTeamsButtons = true;
 }
Пример #4
0
 public NewProjectVM()
 {
     TeamTagger = new LMTeamTaggerVM();
     TeamTagger.ShowSubstitutionButtons = false;
     TeamTagger.SubstitutionMode        = true;
     Project    = new LMProjectVM();
     Dashboards = new DashboardsManagerVM();
     Teams      = new TeamsManagerVM();
 }
Пример #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;
 }
Пример #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);
 }
Пример #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;
 }
Пример #8
0
 public LMDrawingToolVM()
 {
     TeamTagger = new LMTeamTaggerVM();
     TeamTagger.ShowSubstitutionButtons = false;
     ResetTeamTagger();
 }