-
Notifications
You must be signed in to change notification settings - Fork 0
/
AppWrapper.cs
45 lines (45 loc) · 1.66 KB
/
AppWrapper.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Configuration;
namespace AppWrapper
{
public enum PermissionLevel
{
None,
Admin,
Manager,
Developer
}
public static class AppWrapper
{
public static PermissionLevel UserPermissionLevel { get; set; }
public enum WindowEventType
{
EventHook = 0, // SetWinEventHook to use events
Polling =1 // poll on timer thru GetWindowTitle
}
public static string DevTrkrConnectionString
{
get { return ConfigurationManager.ConnectionStrings[DBName].ConnectionString; }
}
public const string AppName = "DevTracker";
public const string Settings = "Settings";
public const string MainOnTop = "MainOnTop";
//public const string RunFileWatcher = "RunFileWatcher";
public const string ProgramError = "Program Error";
public const string DBName = "DevTrkr";
// NOTE: Config Option Names
public const string PollingTimeInterval = "POLLINGTIMEINTERVAL";
public const string WindowTypeEvents = "WINDOWTYPEEVENTS";
public const string DevProjFileExtension = "IDEPROJECTFILEEXTENSION";
public const string RecordApps = "RECORDAPPS";
public const string RecordFiles = "RECORDFILES";
public const string CacheExpirationTime = "CACHEEXPIRATIONTIME";
public const string FileWatcherDirecory = "FILEWATCHERDIRECTORY";
public const string CalendarQueriedTime = "CALENDARQUERIEDTIME";
// NOTE: End of Config Option Names
}
}