/// <summary> /// Called when Save is changed on an object. /// </summary> private static void OnSaveInvalidated(DependencyObject dependencyObject, DependencyPropertyChangedEventArgs e) { Window Window = dependencyObject as Window; if (Window != null) { if ((bool)e.NewValue) { WindowsSettings settings = new WindowsSettings(Window); settings.Attach(); } } }
#pragma warning disable 618 // PersistId is an obsolete property and may be removed in a future release. The value of this property is not defined. /// <summary> /// Construcor /// </summary> /// <param name="_windowSettings"></param> public WindowApplicationSettings(WindowsSettings windowSettings) : base(windowSettings._window.PersistId.ToString()) { _windowSettings = windowSettings; }