HamBook – Blame information for rev 54
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | using System; |
12 | office | 2 | using System.Drawing; |
1 | office | 3 | using System.IO; |
4 | using System.Reflection; |
||
5 | using System.Runtime.InteropServices; |
||
6 | |||
7 | namespace HamBook |
||
8 | { |
||
9 | public class Constants |
||
10 | { |
||
11 | #region Static Fields and Constants |
||
12 | |||
13 | public static readonly string AssemblyName = Assembly.GetEntryAssembly().GetName().Name; |
||
14 | |||
15 | public static readonly string AssemblyVersion = Assembly.GetEntryAssembly().GetName().Version.ToString(); |
||
16 | |||
17 | public static readonly string AssemblyGuid = |
||
18 | ((GuidAttribute)Assembly.GetEntryAssembly().GetCustomAttributes(typeof(GuidAttribute), true)[0]).Value; |
||
19 | |||
20 | public static string ConfigurationXsd = "Configuration.xsd"; |
||
21 | |||
22 | public static string ConfigurationNamespace = "urn:hambook-configuration-schema"; |
||
23 | |||
54 | office | 24 | public static readonly string ManifestModuleName = |
25 | Assembly.GetEntryAssembly().ManifestModule.FullyQualifiedName; |
||
12 | office | 26 | |
27 | public static readonly Icon AssemblyIcon = Icon.ExtractAssociatedIcon(ManifestModuleName); |
||
28 | |||
1 | office | 29 | #endregion |
30 | |||
31 | #region Public Enums, Properties and Fields |
||
32 | |||
33 | public static string DatabaseDirectory => Path.Combine( |
||
34 | Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), @"Wizardry and Steamworks", @"HamBook"); |
||
35 | |||
36 | public static string ConfigurationFile => Path.Combine(UserApplicationDirectory, @"Configuration.xml"); |
||
37 | |||
38 | public static string UserApplicationDirectory => Path.Combine( |
||
39 | Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), @"Wizardry and Steamworks", @"HamBook"); |
||
40 | |||
41 | #endregion |
||
42 | } |
||
43 | } |