示例#1
0
        public GamesViewModel(GameViewModel[] gameViewModels, ProfileManager profileManager,
                              ProfilePreviewModel profilePreviewModel)
        {
            DisplayName     = "Games";
            _gameViewModels = gameViewModels;

            profileManager.ProfilePreviewModel = profilePreviewModel;
            profileManager.GameViewModels.AddRange(_gameViewModels);
        }
示例#2
0
 public WindowsProfileViewModel(MainManager main, IProfileEditorVmFactory pFactory,
                                ProfilePreviewModel profilePreviewModel, WindowsProfileModel model) : base(main, model)
 {
     DisplayName         = "Windows Profile";
     PFactory            = pFactory;
     ProfilePreviewModel = profilePreviewModel;
     EffectSettings      = ((WindowsProfileModel)EffectModel).Settings;
     ProfileEditor       = PFactory.CreateProfileEditorVm(main, (WindowsProfileModel)EffectModel,
                                                          ((WindowsProfileSettings)EffectSettings).LastProfile);
     ProfilePreviewModel.Profile    = ProfileEditor.SelectedProfile;
     ProfileEditor.PropertyChanged += ProfileUpdater;
     MainManager.EffectManager.EffectModels.Add(EffectModel);
 }
示例#3
0
        public WindowsProfileViewModel(ILogger logger, MainManager main, IEventAggregator events,
                                       IProfileEditorVmFactory pFactory, ProfilePreviewModel profilePreviewModel)
            : base(main, new WindowsProfileModel(logger, main, new WindowsProfileSettings()))
        {
            DisplayName         = "Windows Profile";
            PFactory            = pFactory;
            ProfilePreviewModel = profilePreviewModel;
            EffectSettings      = ((WindowsProfileModel)EffectModel).Settings;
            ProfileEditor       = PFactory.CreateProfileEditorVm(events, main, (WindowsProfileModel)EffectModel,
                                                                 ((WindowsProfileSettings)EffectSettings).LastProfile);
            ProfilePreviewModel.Profile = ProfileEditor.SelectedProfile;

            events.Subscribe(this);
            ProfileEditor.PropertyChanged += ProfileUpdater;
            MainManager.EffectManager.EffectModels.Add(EffectModel);
        }
 public AudioVisualizerViewModel(MainManager main, ProfilePreviewModel model) : base(main, model)
 {
     DisplayName = "Audio Visualization / Key waves";
 }