1 |
william |
20 |
using System; |
2 |
|
|
using System.Collections.Generic; |
3 |
|
|
using System.Linq; |
4 |
|
|
using System.Text; |
5 |
|
|
using System.Reflection; |
6 |
|
|
using RomCheater.Logging; |
7 |
|
|
|
8 |
|
|
namespace RomCheater |
9 |
|
|
{ |
10 |
|
|
public static class AppConsts |
11 |
|
|
{ |
12 |
|
|
#region Application Constants |
13 |
|
|
public const string AppName = "Rom Cheater"; |
14 |
|
|
public const string AppLogFile = RomCheater.Logging.LogWriter.LOG_FILE; |
15 |
|
|
public static string AppVersion = Assembly.GetEntryAssembly().GetName().Version.ToString(); |
16 |
|
|
#if DEBUG |
17 |
|
|
public const string AppBuild = "Debug"; |
18 |
|
|
#else |
19 |
|
|
public const string AppBuild = "Release"; |
20 |
|
|
#endif |
21 |
|
|
#endregion |
22 |
|
|
|
23 |
|
|
#region Logging Constants |
24 |
|
|
public static void LogApplicationStatup() |
25 |
william |
21 |
{ |
26 |
william |
20 |
logger.WriteLine("{0} created on {1}", AppLogFile, DateTime.Now.ToString()); |
27 |
|
|
logger.WriteLine("{0} version: {1} {2} build", AppName, AppVersion, AppBuild); |
28 |
|
|
} |
29 |
|
|
#endregion |
30 |
|
|
} |
31 |
|
|
} |