random-file-runner/Models/AppSession.cs

34 lines
1011 B
C#
Raw Normal View History

2021-10-30 23:40:58 +00:00
using System.Collections.Generic;
namespace RandomFileRunner
2021-10-24 15:49:48 +00:00
{
public class AppSession
{
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;
}
2021-10-30 23:40:58 +00:00
public string SearchFilePattern { get; set; } = "*";
public List<string> SearchItems { get; set; } = new List<string>();
public bool SearchTopDirectoryOnly { get; set; } = false;
public bool ClosePrevOnNext { get; set; } = false;
2021-10-30 02:21:45 +00:00
public int RetryOnError { get; set; } = 8;
2021-10-30 02:21:45 +00:00
public HotKeyOptions NextHotKey { get; set; } = new HotKeyOptions();
2021-10-24 15:49:48 +00:00
}
}