using System.Collections.Generic; namespace AppLauncher.Models { public class LauncherSession { public class HotKeyOptions { public bool IsCtrl { get; set; } = false; public bool IsAlt { get; set; } = false; public bool IsShift { get; set; } = false; public int Key { get; set; } = (int)System.Windows.Forms.Keys.None; public int ModifierCode => ((this.IsAlt ? 1 : 0) + (this.IsCtrl ? 2 : 0) + (this.IsShift ? 4 : 0)); public System.Windows.Forms.Keys KeyCode => (System.Windows.Forms.Keys)this.Key; } public enum AutoSaveOption { Prompt = 0, Yes, No } public int DefaultHeight { get; set; } = 280; public HotKeyOptions HotKey { get; set; } = null; public bool AlwaysOnTop { get; set; } = false; public bool HideOnClose { get; set; } = false; public bool HideOnClick { get; set; } = false; public AutoSaveOption AutoSave { get; set; } = AutoSaveOption.Prompt; public List Groups { get; set; } = new List(); public LauncherSession ToSimple() { return new LauncherSession() { DefaultHeight = this.DefaultHeight, HotKey = this.HotKey, AlwaysOnTop = this.AlwaysOnTop, HideOnClose = this.HideOnClose, HideOnClick = this.HideOnClick, AutoSave = this.AutoSave, Groups = null }; } } }