/[OhmsLawCalc]/trunk/OhmsLawCalc/Form1.cs
ViewVC logotype

Diff of /trunk/OhmsLawCalc/Form1.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- trunk/OhmsLawCalc/Form1.cs	2014/01/29 03:14:50	10
+++ trunk/OhmsLawCalc/Form1.cs	2014/01/29 03:17:59	11
@@ -1,4 +1,7 @@
-´╗┐using Enterprise.Logging;
+´╗┐
+#define SHOW_DEBUG_MENU // when defined the debug menu will be shown
+#define ENABLE_API_TESTING // when defined will enable API_TESTING
+using Enterprise.Logging;
 using System;
 using System.Collections.Generic;
 using System.ComponentModel;
@@ -16,6 +19,31 @@
             InitializeComponent();
             NativeMethods.AttachToConsole(true);
             gLog.CreateLog("OhmsLawCalc.log", false, LogLevel.kLogLevel_All_NoProgress, null);
+#if SHOW_DEBUG_MENU
+#warning SHOW_DEBUG_MENU is defined -- please undefine it after your are done testing the API
+            mnuDebug.Visible = true;
+#else
+            mnuDebug.Visible = false;
+#endif
+        }
+
+        private void mnuItemExit_Click(object sender, EventArgs e)
+        {
+            this.Close();
+        }
+
+        private void mnuItemTestAPI_Click(object sender, EventArgs e)
+        {
+#if !ENABLE_API_TESTING
+            // ENABLE_API_TESTING is not defined
+            MessageBox.Show("API Testing has not been enabled.", "Feature Unavailable", MessageBoxButtons.OK, MessageBoxIcon.Warning);
+            return;
+#else
+            // ENABLE_API_TESTING is defined
+#warning ENABLE_API_TESTING is defined -- please undefine it after your are done testing the API
+
+        // test API
+#endif
         }
     }
 }

 

  ViewVC Help
Powered by ViewVC 1.1.22