/SWAT Programs/SWAT USB App/trunk/SWAT USB App/Drivers_Form.cs |
---|
20,14 → 20,6 |
InitializeComponent(); |
try |
{ |
if (SettingsParser.DriversList.Count() == 0) |
{ |
Debug.appendText("No drivers were found in USBSettings.xml"); |
MessageBox.Show("No drivers were found in USBSettings.xml"); |
this.Close(); |
} |
else |
{ |
bool modelFound = false; |
Debug.appendText("Driver form initializing"); |
if (SettingsParser.driverCheckForMatchingModel) |
76,7 → 68,6 |
} |
} |
} |
} |
catch (Exception ex) |
{ |
Debug.appendText("Exception Thrown: " + ex.ToString()); |
/SWAT Programs/SWAT USB App/trunk/SWAT USB App/Main_Menu_Form.Designer.cs |
---|
94,7 → 94,7 |
this.lbl_Main_Menu.TabIndex = 0; |
this.lbl_Main_Menu.Text = "To begin, please select an option"; |
// |
// form_Main_Menu |
// Main_Menu_Form |
// |
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); |
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; |
104,7 → 104,7 |
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; |
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); |
this.MaximizeBox = false; |
this.Name = "form_Main_Menu"; |
this.Name = "Main_Menu_Form"; |
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; |
this.Text = "SWAT USB Installer"; |
this.grp_Main_Menu.ResumeLayout(false); |
/SWAT Programs/SWAT USB App/trunk/SWAT USB App/Main_Menu_Form.cs |
---|
28,22 → 28,40 |
MessageBox.Show("USBSettings.xml cannot be found.", "Error"); |
} |
else |
{ |
SettingsParser.readSettingsFile(); |
} |
} |
private void btn_Main_Drivers_Click(object sender, EventArgs e) |
{ |
if (SettingsParser.DriversList.Count() == 0) |
{ |
Debug.appendText("No drivers were found in USBSettings.xml or file does not exist"); |
MessageBox.Show("No drivers were found in USBSettings.xml or file does not exist"); |
} |
else |
{ |
Drivers_Form driverForm = new Drivers_Form(); |
this.WindowState = FormWindowState.Minimized; |
//this.WindowState = FormWindowState.Minimized; |
driverForm.ShowDialog(); |
this.WindowState = FormWindowState.Normal; |
//this.WindowState = FormWindowState.Normal; |
} |
} |
private void btn_Main_Software_Click(object sender, EventArgs e) |
{ |
if (SettingsParser.ApplicationsList.Count() == 0) |
{ |
Debug.appendText("No drivers were found in USBSettings.xml or file does not exist"); |
MessageBox.Show("No drivers were found in USBSettings.xml or file does not exist"); |
} |
else |
{ |
Software_Form softwareForm = new Software_Form(); |
this.WindowState = FormWindowState.Minimized; |
//this.WindowState = FormWindowState.Minimized; |
softwareForm.ShowDialog(); |
this.WindowState = FormWindowState.Normal; |
//this.WindowState = FormWindowState.Normal; |
} |
} |
private void btn_Main_Exit_Click(object sender, EventArgs e) |
{ |
if (System.IO.File.Exists("Debug.txt")) |
/SWAT Programs/SWAT USB App/trunk/SWAT USB App/Software_Form.cs |
---|
23,14 → 23,6 |
InitializeComponent(); |
try |
{ |
if (SettingsParser.ApplicationsList.Count() == 0) |
{ |
Debug.appendText("No software were found in USBSettings.xml"); |
MessageBox.Show("No software were found in USBSettings.xml"); |
this.Close(); |
} |
else |
{ |
Debug.appendText("Software form initializing"); |
// Clears all lists |
subGroups.Clear(); |
117,7 → 109,6 |
this.groupBox_SoftwareList.Controls.Add(grpBox); |
} |
} |
} |
catch (Exception ex) |
{ |
Debug.appendText("Exception Thrown: " + ex.ToString()); |
/SWAT Programs/SWAT USB App/trunk/SWAT USB App/bin/Debug/SWAT USB App.exe |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/SWAT Programs/SWAT USB App/trunk/SWAT USB App/bin/Release/SWAT USB App.exe |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/SWAT Programs/SWAT USB App/trunk/SWAT USB App.suo |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |