コード例 #1
0
ファイル: EffectViewModel.cs プロジェクト: jgheld/Artemis
        public void SaveSettings()
        {
            EffectSettings?.Save();
            if (!EffectEnabled)
            {
                return;
            }

            // Restart the effect if it's currently running to apply settings.
            MainManager.EffectManager.ChangeEffect(EffectModel);
        }
コード例 #2
0
        private void ProfileUpdater(object sender, PropertyChangedEventArgs e)
        {
            if (e.PropertyName != "SelectedProfile" && IsActive)
            {
                return;
            }
            EffectModel.Profile         = ProfileEditor.SelectedProfile;
            ProfilePreviewModel.Profile = ProfileEditor.SelectedProfile;

            if (e.PropertyName != "SelectedProfile" || !ProfileEditor.ProfileViewModel.Activated ||
                ProfileEditor.ProfileViewModel.SelectedProfile == null)
            {
                return;
            }
            ((WindowsProfileSettings)EffectSettings).LastProfile = ProfileEditor.ProfileViewModel.SelectedProfile.Name;
            EffectSettings.Save();
        }