diff options
author | sr55 <[email protected]> | 2017-09-08 22:14:26 +0100 |
---|---|---|
committer | sr55 <[email protected]> | 2017-09-08 22:14:26 +0100 |
commit | e17f33293848a5f3a783f09377adc94ffedb0f44 (patch) | |
tree | 7e4e44df742d3f82c4ab142ee1a35073e7ac984a /win/CS/HandBrakeWPF/Services/Presets | |
parent | b2f2e30f942a917348703e28418be97595ad5e8d (diff) |
WinGui: Implementing the new Preset design that does away with the legacy style preset pane and re-arranges parts of the main window for better process flow.
Diffstat (limited to 'win/CS/HandBrakeWPF/Services/Presets')
-rw-r--r-- | win/CS/HandBrakeWPF/Services/Presets/Interfaces/IPresetService.cs | 10 | ||||
-rw-r--r-- | win/CS/HandBrakeWPF/Services/Presets/PresetService.cs | 33 |
2 files changed, 0 insertions, 43 deletions
diff --git a/win/CS/HandBrakeWPF/Services/Presets/Interfaces/IPresetService.cs b/win/CS/HandBrakeWPF/Services/Presets/Interfaces/IPresetService.cs index f75c054c5..6c6b8ceb6 100644 --- a/win/CS/HandBrakeWPF/Services/Presets/Interfaces/IPresetService.cs +++ b/win/CS/HandBrakeWPF/Services/Presets/Interfaces/IPresetService.cs @@ -36,16 +36,6 @@ namespace HandBrakeWPF.Services.Presets.Interfaces void Load();
/// <summary>
- /// Save the state of the Preset Treview
- /// </summary>
- void SaveCategoryStates();
-
- /// <summary>
- /// Load the state of the Preset Treeview.
- /// </summary>
- void LoadCategoryStates();
-
- /// <summary>
/// Add a new preset to the system
/// </summary>
/// <param name="preset">
diff --git a/win/CS/HandBrakeWPF/Services/Presets/PresetService.cs b/win/CS/HandBrakeWPF/Services/Presets/PresetService.cs index 14001040e..ea948344b 100644 --- a/win/CS/HandBrakeWPF/Services/Presets/PresetService.cs +++ b/win/CS/HandBrakeWPF/Services/Presets/PresetService.cs @@ -543,39 +543,6 @@ namespace HandBrakeWPF.Services.Presets selectedPreset.IsSelected = true;
}
- public void SaveCategoryStates()
- {
- StringCollection expandedPresets = new StringCollection();
- foreach (IPresetObject presetObject in this.presets)
- {
- PresetDisplayCategory category = presetObject as PresetDisplayCategory;
- if (category != null && category.IsExpanded)
- {
- expandedPresets.Add(category.Category);
- }
- }
-
- this.userSettingService.SetUserSetting(UserSettingConstants.PresetExpandedStateList, expandedPresets);
- }
-
- public void LoadCategoryStates()
- {
- StringCollection expandedPresets = this.userSettingService.GetUserSetting<StringCollection>(UserSettingConstants.PresetExpandedStateList);
- if (expandedPresets == null || expandedPresets.Count == 0)
- {
- return;
- }
-
- foreach (IPresetObject presetObject in this.presets)
- {
- PresetDisplayCategory category = presetObject as PresetDisplayCategory;
- if (category != null && expandedPresets.Contains(category.Category))
- {
- category.IsExpanded = true;
- }
- }
- }
-
#endregion
#region Private Helpers
|