예제 #1
0
 /// <summary>
 /// Creates a new instance of WpfWindowManager.
 /// </summary>
 /// <param name="parent">The window for which properties are managed.</param>
 public WpfWindowManager(Window parent) : base(parent)
 {
     if (AppInfo.IsPortable.GetValueOrDefault())
     {
         PortableSettingsProvider.ApplyProvider(Properties.Settings.Default);
     }
     setCulture();
 }
예제 #2
0
 /// <summary>
 /// Make the given settings portable if application is portable.
 /// </summary>
 /// <param name="settings">An array of ApplicationSettingsBase.</param>
 public void ApplyToSettings(params ApplicationSettingsBase[] settings)
 {
     if (AppInfo.IsPortable.GetValueOrDefault())
     {
         PortableSettingsProvider.ApplyProvider(settings);
     }
     applicationSettings.AddRange(settings);
 }