Subversion Repositories Code-Repo

Rev

Rev 48 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 48 Rev 50
Line 12... Line 12...
12
namespace SWAT_Office_App
12
namespace SWAT_Office_App
13
{
13
{
14
    public partial class Settings_Form : Form
14
    public partial class Settings_Form : Form
15
    {
15
    {
16
        public static bool defaultSettings { get; set; }
16
        public static bool defaultSettings { get; set; }
-
 
17
        public static bool showFileSizes { get; set; }
17
        public static List<string> systemAccounts = new List<string>();
18
        public static List<string> systemAccounts = new List<string>();
18
        public static List<string> hiddenAccounts = new List<string>();
19
        public static List<string> hiddenAccounts = new List<string>();
19
        public static string sharedFolderLocation { get; set; }
20
        public static string sharedFolderLocation { get; set; }
20
        public static string usbMasterx32CopyLocation { get; set; }
21
        public static string usbMasterx32CopyLocation { get; set; }
21
        public static string usbMasterx64CopyLocation { get; set; }
22
        public static string usbMasterx64CopyLocation { get; set; }
-
 
23
        
22
        public static List<string> driveLoggerDockLabels = new List<string>();
24
        // Static variables for use by DriveLogger
23
        public static int driveLoggerRefreshInterval { get; set; }
25
        public static int driveLoggerRefreshInterval { get; set; }
-
 
26
        public static List<string> driveLoggerDockLabels = new List<string>();
24
        public static List<string> driveLoggerDrivesToIgnore = new List<string>();
27
        public static List<string> driveLoggerDrivesToIgnore = new List<string>();
25
 
28
 
26
        private static Settings_Form _Settings_Form = null;
29
        private static Settings_Form _Settings_Form = null;
27
        // Singleton instance so the settings file isnt loaded every time
30
        // Singleton instance so the settings file isnt loaded every time
28
        public static Settings_Form settings_Form_Instance
31
        public static Settings_Form settings_Form_Instance
Line 68... Line 71...
68
                if (File.Exists("Settings.xml"))
71
                if (File.Exists("Settings.xml"))
69
                {
72
                {
70
                    // XML Parsing using System.XML.Linq
73
                    // XML Parsing using System.XML.Linq
71
                    XElement Settings = XElement.Load("Settings.xml");
74
                    XElement Settings = XElement.Load("Settings.xml");
72
 
75
 
-
 
76
                    showFileSizes = bool.Parse(Settings.Element("ProgramSettings").Element("ShowFileSizes").Value);
-
 
77
 
73
                    systemAccounts.Clear();
78
                    systemAccounts.Clear();
74
                    string tempSystemAccounts = Settings.Element("ProgramSettings").Element("SystemAccounts").Value;
79
                    string tempSystemAccounts = Settings.Element("ProgramSettings").Element("SystemAccounts").Value;
75
                    string[] tempStringArray = tempSystemAccounts.Split(new char[] { ',' });
80
                    string[] tempStringArray = tempSystemAccounts.Split(new char[] { ',' });
76
                    foreach (string str in tempStringArray)
81
                    foreach (string str in tempStringArray)
77
                        systemAccounts.Add(str.Trim());
82
                        systemAccounts.Add(str.Trim());