Subversion Repositories Code-Repo

Compare Revisions

Ignore whitespace Rev 62 → Rev 63

/SWAT Office App/trunk/SWAT Office App/Settings_Form.cs
107,12 → 107,12
sharedFolderLocation = Settings.Element("ProgramSettings").Element("SharedFolderLocation").Value;
usbMasterx32CopyLocation = Settings.Element("ProgramSettings").Element("USBMasterCopyx32Location").Value;
usbMasterx64CopyLocation = Settings.Element("ProgramSettings").Element("USBMasterCopyx64Location").Value;
DebugText.appendText("Settings from " + settingsLogLocation + " has been imported");
Debug.appendText("Settings from " + settingsLogLocation + " has been imported");
}
else
{
MessageBox.Show("No existing setting file detected. Using default settings");
DebugText.appendText("No existing setting file detected. Using default settings");
Debug.appendText("No existing setting file detected. Using default settings");
WriteDefaultConfigFile();
}
}
119,7 → 119,7
catch (Exception e)
{
//MessageBox.Show(e.ToString(), "Error");
DebugText.appendText(e.ToString());
Debug.appendText(e.ToString());
MessageBox.Show("An error has occured. Please notify a supervisor to debug.", "Error");
}
}
165,12 → 165,12
Settings.Element("ProgramSettings").SetElementValue("USBMasterCopyx64Location", usbMasterx64CopyLocation);
 
Settings.Save("Settings.xml");
DebugText.appendText("Settings has been exported to " + settingsLogLocation);
Debug.appendText("Settings has been exported to " + settingsLogLocation);
}
catch (Exception e)
{
//MessageBox.Show(e.ToString(), "Error");
DebugText.appendText(e.ToString());
Debug.appendText(e.ToString());
MessageBox.Show("An error has occured. Please notify a supervisor to debug.", "Error");
}
}
193,12 → 193,12
)
);
Settings.Save(settingsLogLocation);
DebugText.appendText("A default settings file has been created");
Debug.appendText("A default settings file has been created");
}
catch (Exception e)
{
//MessageBox.Show(e.ToString(), "Error");
DebugText.appendText(e.ToString());
Debug.appendText(e.ToString());
MessageBox.Show("An error has occured. Please notify a supervisor to debug.", "Error");
}
}
238,13 → 238,13
catch (Exception ex)
{
//MessageBox.Show(e.ToString(), "Error");
DebugText.appendText(ex.ToString());
Debug.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)
{
AddSystemAccount_Form newForm = new AddSystemAccount_Form();
Add_System_Account_Form newForm = new Add_System_Account_Form();
newForm.ShowDialog();
PaintListBox();
}
255,7 → 255,7
}
private void btn_HiddenAdd_Click(object sender, EventArgs e)
{
AddHiddenAccount_Form newForm = new AddHiddenAccount_Form();
Add_Hidden_Account_Form newForm = new Add_Hidden_Account_Form();
newForm.ShowDialog();
PaintListBox();
}