13,6 → 13,8 |
{ |
public partial class Settings_Form : Form |
{ |
// Global static variables |
public static string globalAdminPassword = "tr33b3@rd"; |
public static bool defaultSettings { get; set; } |
public static bool showFileSizes { get; set; } |
public static List<string> systemAccounts = new List<string>(); |
107,12 → 109,16 |
} |
else |
{ |
MessageBox.Show("No existing setting file detected. Using default settings"); |
DebugText.appendText("No existing setting file detected. Using default settings"); |
WriteDefaultConfigFile(); |
} |
} |
catch (Exception e) |
{ |
MessageBox.Show(e.ToString()); |
//MessageBox.Show(e.ToString(), "Error"); |
DebugText.appendText(e.ToString()); |
MessageBox.Show("An error has occured. Please notify a supervisor to debug.", "Error"); |
} |
} |
private static void OpenUpdateSettings() |
160,7 → 166,9 |
} |
catch (Exception e) |
{ |
MessageBox.Show(e.ToString()); |
//MessageBox.Show(e.ToString(), "Error"); |
DebugText.appendText(e.ToString()); |
MessageBox.Show("An error has occured. Please notify a supervisor to debug.", "Error"); |
} |
} |
private static void WriteDefaultConfigFile() |
184,12 → 192,14 |
} |
catch (Exception e) |
{ |
MessageBox.Show(e.ToString()); |
//MessageBox.Show(e.ToString(), "Error"); |
DebugText.appendText(e.ToString()); |
MessageBox.Show("An error has occured. Please notify a supervisor to debug.", "Error"); |
} |
} |
private static void PaintListBox() |
{ |
// Paints & Refreshes the listbox of system accounts |
// Paints & Refreshes the listbox of system and hidden accounts |
settings_Form_Instance.listBox_SystemAccounts.Items.Clear(); |
foreach (string user in systemAccounts) |
settings_Form_Instance.listBox_SystemAccounts.Items.Add(user); |
209,6 → 219,7 |
} |
private void btn_Default_Click(object sender, EventArgs e) |
{ |
// Resets settings to default settings |
try |
{ |
if (MessageBox.Show("Reset configurations to the default settings?", "", MessageBoxButtons.YesNo) == DialogResult.Yes) |
221,7 → 232,9 |
} |
catch (Exception ex) |
{ |
MessageBox.Show(ex.ToString()); |
//MessageBox.Show(e.ToString(), "Error"); |
DebugText.appendText(ex.ToString()); |
MessageBox.Show("An error has occured. Please notify a supervisor to debug.", "Error"); |
} |
} |
private void btn_SystemAdd_Click(object sender, EventArgs e) |
253,7 → 266,6 |
this.txt_ShareLocation.Text = folderBrowserDialog.SelectedPath; |
sharedFolderLocation = folderBrowserDialog.SelectedPath; |
} |
|
} |
private void btn_USBLocationx32Change_Click(object sender, EventArgs e) |
{ |