23,7 → 23,7 |
public static int driveLoggerRefreshInterval { get; set; } |
|
private static Settings_Form _Settings_Form = null; |
// Singleton instance |
// Singleton instance so the settings file isnt loaded every time |
public static Settings_Form settings_Form_Instance |
{ |
set |
60,6 → 60,7 |
} |
public static void ImportSettings() |
{ |
// Imports settings from Settings.xml |
try |
{ |
if (File.Exists("Settings.xml")) |
118,6 → 119,7 |
} |
private static void ExportSettings() |
{ |
// Exports all settings to Settings.xml |
try |
{ |
// XML Parsing using System.XML.Linq |
173,7 → 175,7 |
} |
private static void PaintListBox() |
{ |
// Paints&Refreshes the listbox of system accounts |
// Paints & Refreshes the listbox of system accounts |
settings_Form_Instance.listBox_SystemAccounts.Items.Clear(); |
foreach (string user in systemAccounts) |
settings_Form_Instance.listBox_SystemAccounts.Items.Add(user); |