ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/RomCheater/trunk/RomCheater/AppConsts.cs
Revision: 21
Committed: Wed May 9 08:42:07 2012 UTC (11 years, 1 month ago) by william
File size: 958 byte(s)
Log Message:

File Contents

# Content
1 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 {
26 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 }