Subversion Repositories Code-Repo

Compare Revisions

Ignore whitespace Rev 47 → Rev 48

/SWAT Office App/trunk/SWAT Office App/Settings_Form.cs
21,6 → 21,7
public static string usbMasterx64CopyLocation { get; set; }
public static List<string> driveLoggerDockLabels = new List<string>();
public static int driveLoggerRefreshInterval { get; set; }
public static List<string> driveLoggerDrivesToIgnore = new List<string>();
 
private static Settings_Form _Settings_Form = null;
// Singleton instance so the settings file isnt loaded every time
44,6 → 45,7
this.listBox_SystemAccounts.SelectedIndexChanged += new EventHandler(this.listBox_SystemAccounts_SelectedIndexChanged);
this.listBox_HiddenAccounts.SelectedIndexChanged += new EventHandler(this.listBox_HiddenAccounts_SelectedIndexChanged);
this.Load += new EventHandler(Settings_Form_Load);
}
private void Settings_Form_Load(object sender, EventArgs e)
{
88,6 → 90,12
 
driveLoggerRefreshInterval = int.Parse(Settings.Element("ProgramSettings").Element("DockRefreshInterval").Value);
 
driveLoggerDrivesToIgnore.Clear();
string tempDrivesToIgnore = Settings.Element("ProgramSettings").Element("DockDrivesToIgnore").Value;
tempStringArray = tempDrivesToIgnore.Split(new char[] { ',' });
foreach (string str in tempStringArray)
driveLoggerDrivesToIgnore.Add(str.Trim());
 
sharedFolderLocation = Settings.Element("ProgramSettings").Element("SharedFolderLocation").Value;
usbMasterx32CopyLocation = Settings.Element("ProgramSettings").Element("USBMasterCopyx32Location").Value;
usbMasterx64CopyLocation = Settings.Element("ProgramSettings").Element("USBMasterCopyx64Location").Value;
163,7 → 171,8
new XElement("USBMasterCopyx32Location", "C:\\"),
new XElement("USBMasterCopyx64Location", "C:\\"),
new XElement("DockLabels", "Dock 1,Dock 2,Dock 3,External USB"),
new XElement("DockRefreshInterval", 1000)
new XElement("DockRefreshInterval", 1000),
new XElement("DockDrivesToIgnore", "C:\\")
)
);
Settings.Save("Settings.xml");