19,6 → 19,8 |
public static string sharedFolderLocation { get; set; } |
public static string usbMasterx32CopyLocation { get; set; } |
public static string usbMasterx64CopyLocation { get; set; } |
public static List<string> driveLoggerDockLabels = new List<string>(); |
public static int driveLoggerRefreshInterval { get; set; } |
|
private static Settings_Form _Settings_Form = null; |
// Singleton instance |
77,6 → 79,14 |
foreach (string str in tempStringArray) |
hiddenAccounts.Add(str.Trim()); |
|
driveLoggerDockLabels.Clear(); |
string tempDriveLoggerDockLabels = Settings.Element("ProgramSettings").Element("DockLabels").Value; |
tempStringArray = tempDriveLoggerDockLabels.Split(new char[] { ',' }); |
foreach (string str in tempStringArray) |
driveLoggerDockLabels.Add(str.Trim()); |
|
driveLoggerRefreshInterval = int.Parse(Settings.Element("ProgramSettings").Element("DockRefreshInterval").Value); |
|
sharedFolderLocation = Settings.Element("ProgramSettings").Element("SharedFolderLocation").Value; |
usbMasterx32CopyLocation = Settings.Element("ProgramSettings").Element("USBMasterCopyx32Location").Value; |
usbMasterx64CopyLocation = Settings.Element("ProgramSettings").Element("USBMasterCopyx64Location").Value; |
149,7 → 159,9 |
new XElement("HiddenAccounts", "Administrator,Guest"), |
new XElement("SharedFolderLocation", "C:\\"), |
new XElement("USBMasterCopyx32Location", "C:\\"), |
new XElement("USBMasterCopyx64Location", "C:\\") |
new XElement("USBMasterCopyx64Location", "C:\\"), |
new XElement("DockLabels", "Dock 1,Dock 2,Dock 3,External USB"), |
new XElement("DockRefreshInterval", 1000) |
) |
); |
Settings.Save("Settings.xml"); |