コード例 #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();
                }
            }
        }
コード例 #2
0
 public WindowApplicationSettings(WindowSettings windowSettings)
     : base(windowSettings.window.Name + windowSettings.window.PersistId)
 {
 }
コード例 #3
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();
				}
			}
		}
コード例 #4
0
 public WindowApplicationSettings(WindowSettings windowSettings)
     : base(windowSettings.window.Name)
 {
 }
コード例 #5
0
			public WindowApplicationSettings( WindowSettings windowSettings )
				: base( windowSettings.window.Name + windowSettings.window.PersistId )
			{
			}