diff options
author | sr55 <[email protected]> | 2019-06-24 21:15:49 +0100 |
---|---|---|
committer | sr55 <[email protected]> | 2019-06-24 21:16:01 +0100 |
commit | b52b25d167d76106c8666c788c17e7a33f713f4d (patch) | |
tree | a01ff14c78959c9b4151819c78e46701c1cbf53b /win/CS/HandBrakeWPF/Model | |
parent | 1613a41853551dedc5b3219f05ed32aacbc85b79 (diff) |
WinGui: Refactor "When Done" to use an enum to avoid language issues. Also change "suspend" to "sleep" to be consistent with the OS. Fixes #2162
Diffstat (limited to 'win/CS/HandBrakeWPF/Model')
-rw-r--r-- | win/CS/HandBrakeWPF/Model/Options/WhenDone.cs | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/win/CS/HandBrakeWPF/Model/Options/WhenDone.cs b/win/CS/HandBrakeWPF/Model/Options/WhenDone.cs new file mode 100644 index 000000000..d15e27b26 --- /dev/null +++ b/win/CS/HandBrakeWPF/Model/Options/WhenDone.cs @@ -0,0 +1,39 @@ +// -------------------------------------------------------------------------------------------------------------------- +// <copyright file="WhenDone.cs" company="HandBrake Project (http://handbrake.fr)"> +// This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License. +// </copyright> +// <summary> +// Defines the WhenDone type. +// </summary> +// -------------------------------------------------------------------------------------------------------------------- + +namespace HandBrakeWPF.Model.Options +{ + using HandBrake.Interop.Attributes; + + using HandBrakeWPF.Properties; + + public enum WhenDone + { + [DisplayName(typeof(Resources), "WhenDone_DoNothing")] + DoNothing = 0, + + [DisplayName(typeof(Resources), "WhenDone_Shutdown")] + Shutdown = 1, + + [DisplayName(typeof(Resources), "WhenDone_Suspend")] + Sleep = 2, + + [DisplayName(typeof(Resources), "WhenDone_Hibernate")] + Hibernate = 3, + + [DisplayName(typeof(Resources), "WhenDone_LockSystem")] + LockSystem = 4, + + [DisplayName(typeof(Resources), "WhenDone_Logoff")] + LogOff = 5, + + [DisplayName(typeof(Resources), "WhenDone_QuitHandBrake")] + QuickHandBrake = 6, + } +} |