Subversion Repositories Code-Repo

Compare Revisions

Ignore whitespace Rev 28 → Rev 29

/SWAT USB App/trunk/SWAT USB App/form_Software.cs
17,28 → 17,10
private static List<Process> toInstall = new List<Process>();
private static List<CheckBox> formCheckBoxes = new List<CheckBox>();
private static List<RadioButton> formRadioButton = new List<RadioButton>();
private static form_Software _software_Form = null;
public static form_Software software_Form_Instance
{
set
{
_software_Form = value;
}
get
{
if (_software_Form == null)
_software_Form = new form_Software();
return _software_Form;
}
}
public form_Software()
{
this.Load += new EventHandler(form_Software_Load);
// Draws the form with a checkbox for each software specified in the text file
InitializeComponent();
}
void form_Software_Load(object sender, EventArgs e)
{
try
{
if (SettingsParser.ApplicationsList.Count() == 0)
139,7 → 121,7
catch (Exception ex)
{
DebugText.appendText("Exception Thrown: " + ex.ToString());
MessageBox.Show(e.ToString());
MessageBox.Show(ex.ToString());
}
}
private void updateToInstallList()
237,9 → 219,9
private void btn_Cancel_Click(object sender, EventArgs e)
{
DebugText.appendText("Closing software form");
software_Form_Instance.Close();
this.Close();
}
private void button1_Click(object sender, EventArgs e)
private void btn_Reset_Click(object sender, EventArgs e)
{
for (int i = 0; i < formCheckBoxes.Count(); i++)
formCheckBoxes[i].Checked = false;