예제 #1
0
        /// <summary>
        /// Called when Save is changed on an object.
        /// </summary>
        private static void OnSaveInvalidated(DependencyObject dependencyObject, DependencyPropertyChangedEventArgs e)
        {
            var window = dependencyObject as Window;

            if (window == null || !((bool)e.NewValue))
            {
                return;
            }
            var settings = new MainWindowSettings(window);

            settings.Attach();
        }
예제 #2
0
 public WindowApplicationSettings(MainWindowSettings windowSettings)
     : base(windowSettings._window.GetType().FullName)
 {
 }
예제 #3
0
 public WindowApplicationSettings(MainWindowSettings windowSettings)
     : base(windowSettings._window.GetType().FullName)
 {
 }
예제 #4
0
 /// <summary>
 /// Called when Save is changed on an object.
 /// </summary>
 private static void OnSaveInvalidated(DependencyObject dependencyObject, DependencyPropertyChangedEventArgs e)
 {
     var window = dependencyObject as Window;
     if (window == null || !((bool)e.NewValue))
         return;
     var settings = new MainWindowSettings(window);
     settings.Attach();
 }