/// <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(); }
/// <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); }