Artemis.Modules.Effects.WindowsProfile.WindowsProfileViewModel.WindowsProfileViewModel C# (CSharp) Method

WindowsProfileViewModel() public method

public WindowsProfileViewModel ( MainManager main, IProfileEditorVmFactory pFactory, ProfilePreviewModel profilePreviewModel, WindowsProfileModel model ) : System.ComponentModel
main Artemis.Managers.MainManager
pFactory IProfileEditorVmFactory
profilePreviewModel Artemis.Modules.Effects.ProfilePreview.ProfilePreviewModel
model WindowsProfileModel
return System.ComponentModel
        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);
        }