| Line 105... |
Line 105... |
| 105 |
driveLoggerDrivesToIgnore.Add(str.Trim());
|
105 |
driveLoggerDrivesToIgnore.Add(str.Trim());
|
| 106 |
|
106 |
|
| 107 |
sharedFolderLocation = Settings.Element("ProgramSettings").Element("SharedFolderLocation").Value;
|
107 |
sharedFolderLocation = Settings.Element("ProgramSettings").Element("SharedFolderLocation").Value;
|
| 108 |
usbMasterx32CopyLocation = Settings.Element("ProgramSettings").Element("USBMasterCopyx32Location").Value;
|
108 |
usbMasterx32CopyLocation = Settings.Element("ProgramSettings").Element("USBMasterCopyx32Location").Value;
|
| 109 |
usbMasterx64CopyLocation = Settings.Element("ProgramSettings").Element("USBMasterCopyx64Location").Value;
|
109 |
usbMasterx64CopyLocation = Settings.Element("ProgramSettings").Element("USBMasterCopyx64Location").Value;
|
| - |
|
110 |
DebugText.appendText("Settings from " + settingsLogLocation + " has been imported");
|
| 110 |
}
|
111 |
}
|
| 111 |
else
|
112 |
else
|
| 112 |
{
|
113 |
{
|
| 113 |
MessageBox.Show("No existing setting file detected. Using default settings");
|
114 |
MessageBox.Show("No existing setting file detected. Using default settings");
|
| 114 |
DebugText.appendText("No existing setting file detected. Using default settings");
|
115 |
DebugText.appendText("No existing setting file detected. Using default settings");
|
| Line 162... |
Line 163... |
| 162 |
Settings.Element("ProgramSettings").SetElementValue("SharedFolderLocation", sharedFolderLocation);
|
163 |
Settings.Element("ProgramSettings").SetElementValue("SharedFolderLocation", sharedFolderLocation);
|
| 163 |
Settings.Element("ProgramSettings").SetElementValue("USBMasterCopyx32Location", usbMasterx32CopyLocation);
|
164 |
Settings.Element("ProgramSettings").SetElementValue("USBMasterCopyx32Location", usbMasterx32CopyLocation);
|
| 164 |
Settings.Element("ProgramSettings").SetElementValue("USBMasterCopyx64Location", usbMasterx64CopyLocation);
|
165 |
Settings.Element("ProgramSettings").SetElementValue("USBMasterCopyx64Location", usbMasterx64CopyLocation);
|
| 165 |
|
166 |
|
| 166 |
Settings.Save("Settings.xml");
|
167 |
Settings.Save("Settings.xml");
|
| - |
|
168 |
DebugText.appendText("Settings has been exported to " + settingsLogLocation);
|
| 167 |
}
|
169 |
}
|
| 168 |
catch (Exception e)
|
170 |
catch (Exception e)
|
| 169 |
{
|
171 |
{
|
| 170 |
//MessageBox.Show(e.ToString(), "Error");
|
172 |
//MessageBox.Show(e.ToString(), "Error");
|
| 171 |
DebugText.appendText(e.ToString());
|
173 |
DebugText.appendText(e.ToString());
|
| Line 189... |
Line 191... |
| 189 |
new XElement("DockRefreshInterval", 1000),
|
191 |
new XElement("DockRefreshInterval", 1000),
|
| 190 |
new XElement("DockDrivesToIgnore", "C:\\")
|
192 |
new XElement("DockDrivesToIgnore", "C:\\")
|
| 191 |
)
|
193 |
)
|
| 192 |
);
|
194 |
);
|
| 193 |
Settings.Save(settingsLogLocation);
|
195 |
Settings.Save(settingsLogLocation);
|
| - |
|
196 |
DebugText.appendText("A default settings file has been created");
|
| 194 |
}
|
197 |
}
|
| 195 |
catch (Exception e)
|
198 |
catch (Exception e)
|
| 196 |
{
|
199 |
{
|
| 197 |
//MessageBox.Show(e.ToString(), "Error");
|
200 |
//MessageBox.Show(e.ToString(), "Error");
|
| 198 |
DebugText.appendText(e.ToString());
|
201 |
DebugText.appendText(e.ToString());
|