Widow – Diff between revs 23 and 28

Subversion Repositories:
Rev:
Only display areas with differencesIgnore whitespace
Rev 23 Rev 28
1 using System; 1 using System;
2 using System.IO; 2 using System.IO;
3 using System.Reflection; 3 using System.Reflection;
4 using System.Runtime.InteropServices; 4 using System.Runtime.InteropServices;
5   5  
6 namespace Widow 6 namespace Widow
7 { 7 {
8 public static class Constants 8 public static class Constants
9 { 9 {
10 #region Static Fields and Constants 10 #region Static Fields and Constants
11   11  
12 public static readonly string AssemblyName = Assembly.GetEntryAssembly().GetName().Name; 12 public static readonly string AssemblyName = Assembly.GetEntryAssembly().GetName().Name;
13   13  
14 public static readonly string AssemblyVersion = Assembly.GetEntryAssembly().GetName().Version.ToString(); 14 public static readonly string AssemblyVersion = Assembly.GetEntryAssembly().GetName().Version.ToString();
15   15  
16 public static readonly string AssemblyGuid = 16 public static readonly string AssemblyGuid =
17 ((GuidAttribute) Assembly.GetEntryAssembly().GetCustomAttributes(typeof(GuidAttribute), true)[0]).Value; 17 ((GuidAttribute) Assembly.GetEntryAssembly().GetCustomAttributes(typeof(GuidAttribute), true)[0]).Value;
18   18  
19 #endregion 19 #endregion
20   20  
21 #region Public Enums, Properties and Fields 21 #region Public Enums, Properties and Fields
22   22  
23 public static string WindowsSettingsFile => Path.Combine(UserApplicationDirectory, @"Windows.xml"); 23 public static string WindowsSettingsFile => Path.Combine(UserApplicationDirectory, @"Windows.xml");
24   24  
25 #endregion 25 #endregion
26   26  
27 #region Private Delegates, Events, Enums, Properties, Indexers and Fields 27 #region Private Delegates, Events, Enums, Properties, Indexers and Fields
28   28  
29 private static string UserApplicationDirectory => Path.Combine( 29 public static string UserApplicationDirectory => Path.Combine(
30 Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), @"Wizardry and Steamworks", @"Widow"); 30 Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), @"Wizardry and Steamworks", @"Widow");
31   31  
32 #endregion 32 #endregion
33 } 33 }
34 } 34 }
35   35  
36
Generated by GNU Enscript 1.6.5.90.
36
Generated by GNU Enscript 1.6.5.90.
37   37  
38   38  
39   39