Permalink
Browse files

Add in some debug statements to manage the UI.

  • Loading branch information...
1 parent 77ca7e7 commit cc29648120e25c10fae07cf411a039cabdd743eb @tyrelsouza tyrelsouza committed May 2, 2012
Showing with 21 additions and 12 deletions.
  1. BIN Torch2.suo
  2. +7 −4 Torch2/startForm.Designer.cs
  3. +14 −8 Torch2/startForm.cs
View
Binary file not shown.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -19,7 +19,7 @@ namespace Torch2
public partial class startForm : Form
{
const int TESTS_IN_LOT = 3;
-
+ const Boolean DEBUG = false;
public static List<double> thresholds = new List<double>();
public static String BUFFER = "";
public static int testNumber = 0;
@@ -51,6 +51,11 @@ public partial class startForm : Form
public void tsInitialize() {
+ if (DEBUG) {
+ jjj.Visible = true;
+ txtFailures.Visible = true;
+ btnForceStart.Visible = true;
+ }
testNumber = 0;
queue = new List<List<string>>();
updateProgressBar(0, progTest);
@@ -69,8 +74,9 @@ public partial class startForm : Form
foreach (int i in lotFailures) {
fnums += i.ToString() + " ";
}
-
- updateTextBox(fnums, txtFailures);
+ if (DEBUG) {
+ updateTextBox(fnums, txtFailures);
+ }
lotPartNumber = 0;
@@ -322,11 +328,11 @@ Boolean passFail(double sccm)
//queue
if (failures)
{
- for (int i = 1; i <= 8; i++)
- {
- if (testResults.ContainsKey(i))
- {
- updateTextBox(testResults[i].ToString() + "\r\n", jjj);
+ if (DEBUG) {
+ for (int i = 1; i <= 8; i++) {
+ if (testResults.ContainsKey(i)) {
+ updateTextBox(testResults[i].ToString() + "\r\n", jjj);
+ }
}
}
lotFailures.Add(lotPartNumber);

0 comments on commit cc29648

Please sign in to comment.