Exemplo n.º 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)
     {
         if ((bool)e.NewValue)
         {
             var settings = new WindowSettings(window);
             settings.Attach();
         }
     }
 }
Exemplo n.º 2
0
        /// <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)
                {
                    WindowSettings settings = new WindowSettings(window);
                    settings.Attach();
                }
            }
        }
Exemplo n.º 3
0
 public WindowApplicationSettings(WindowSettings windowSettings)
     : base(windowSettings.window.PersistId.ToString())
 {
     this.windowSettings = windowSettings;
 }
Exemplo n.º 4
0
 public WindowApplicationSettings(WindowSettings windowSettings)
     : base(windowSettings._window.PersistId.ToString())
 {
 }