Archived
Added: autosave
This commit is contained in:
1 parent
eff57558ca
commit
b73a03683c
7 files changed
+143
-29
No files matched your search
@@ -1,5 +1,4 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Drawing;
|
||||
|
||||
namespace AppLauncher.Models
|
||||
{
|
||||
@@ -15,7 +14,13 @@ namespace AppLauncher.Models
|
||||
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;
|
||||
@@ -23,6 +28,7 @@ namespace AppLauncher.Models
|
||||
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<TileGroupModel> Groups { get; set; } = new List<TileGroupModel>();
|
||||
|
||||
public LauncherSession ToSimple()
|
||||
@@ -34,6 +40,7 @@ namespace AppLauncher.Models
|
||||
AlwaysOnTop = this.AlwaysOnTop,
|
||||
HideOnClose = this.HideOnClose,
|
||||
HideOnClick = this.HideOnClick,
|
||||
AutoSave = this.AutoSave,
|
||||
Groups = null
|
||||
};
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user