GeocacheSensor.h 80 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546
  1. /*
  2. This software is subject to the license described in the License.txt file
  3. included with this software distribution. You may not use this file except in compliance
  4. with this license.
  5. Copyright (c) Dynastream Innovations Inc. 2012
  6. All rights reserved.
  7. */
  8. #pragma once
  9. #include "stdafx.h"
  10. #include "ISimBase.h"
  11. #include "antPlus_Geocache.h"
  12. #include "antplus_common.h" // Include common pages
  13. #include "types.h"
  14. #include "antdefines.h"
  15. using namespace System;
  16. using namespace System::ComponentModel;
  17. using namespace System::Collections;
  18. using namespace System::Windows::Forms;
  19. using namespace System::Data;
  20. using namespace System::Drawing;
  21. public ref class GeocacheSensor : public System::Windows::Forms::Form, public ISimBase{
  22. public:
  23. GeocacheSensor(System::Timers::Timer^ channelTimer, dRequestAckMsg^ channelAckMsg, dRequestUpdateMesgPeriod^ channelUpdateMesgPeriod){
  24. InitializeComponent();
  25. GeocacheData = gcnew Geocache();
  26. commonData = gcnew CommonData();
  27. requestAckMsg = channelAckMsg;
  28. requestUpdateMesgPeriod = channelUpdateMesgPeriod;
  29. timerHandle = channelTimer;
  30. InitializeSim();
  31. }
  32. ~GeocacheSensor(){
  33. this->panel_Display->Controls->Clear();
  34. this->panel_Settings->Controls->Clear();
  35. delete this->panel_Display;
  36. delete this->panel_Settings;
  37. //clean up floating resources with the garbage collector
  38. GC::Collect(2);
  39. if (components)
  40. {
  41. delete components;
  42. }
  43. }
  44. public:
  45. virtual void onTimerTock(USHORT eventTime); // Called every simulator event
  46. virtual void ANT_eventNotification(UCHAR ucEventCode_, UCHAR* pucEventBuffer_); // Channel event state machine
  47. virtual UCHAR getDeviceType(){return GeocacheData->DEVICE_TYPE;}
  48. virtual UCHAR getTransmissionType(){return GeocacheData->TX_TYPE_SENSOR;}
  49. virtual USHORT getTransmitPeriod(){return GeocacheData->MESG_P5HZ_PERIOD;}
  50. virtual DOUBLE getTimerInterval(){return (double) ulTimerInterval;}
  51. virtual System::Windows::Forms::Panel^ getSimSettingsPanel(){return this->panel_Settings;}
  52. virtual System::Windows::Forms::Panel^ getSimTranslatedDisplay(){return this->panel_Display;}
  53. private:
  54. void InitializeSim(); // Initialize simulation data variables
  55. void HandleTransmit(UCHAR* pucTxBuffer_); // Handles the data page transmissions
  56. void HandleReceive(UCHAR* pucRxBuffer_); // Handles page requests
  57. void Authentication(UCHAR* pucRxBuffer_); // Handle Authentication request
  58. void UpdateDisplay();
  59. void UpdateDisplayAckStatus(UCHAR status_);
  60. void UpdateBatStatus();
  61. System::Void checkBoxID_CheckedChanged(System::Object^ sender, System::EventArgs^ e);
  62. System::Void textBoxID_TextChanged(System::Object^ sender, System::EventArgs^ e);
  63. System::Void checkBoxPIN_CheckedChanged(System::Object^ sender, System::EventArgs^ e);
  64. System::Void textBoxPIN_KeyPress(System::Object^ sender, System::Windows::Forms::KeyPressEventArgs^ e);
  65. System::Void textBoxPIN_KeyDown(System::Object^ sender, System::Windows::Forms::KeyEventArgs^ e);
  66. System::Void checkBoxLatitude_CheckedChanged(System::Object^ sender, System::EventArgs^ e);
  67. System::Void checkBoxLongitude_CheckedChanged(System::Object^ sender, System::EventArgs^ e);
  68. System::Void checkBoxHint_CheckedChanged(System::Object^ sender, System::EventArgs^ e);
  69. System::Void checkBoxLoggedVisits_CheckedChanged(System::Object^ sender, System::EventArgs^ e);
  70. System::Void numericUpDownNumVisits_ValueChanged(System::Object^ sender, System::EventArgs^ e);
  71. System::Void numericUpDownLongitude_ValueChanged(System::Object^ sender, System::EventArgs^ e);
  72. System::Void numericUpDownLatitude_ValueChanged(System::Object^ sender, System::EventArgs^ e);
  73. System::Void button_Glb_GlobalDataUpdate_Click(System::Object^ sender, System::EventArgs^ e);
  74. System::Void checkBox_Bat_Status_CheckedChanged(System::Object^ sender, System::EventArgs^ e);
  75. System::Void checkBox_Bat_Voltage_CheckedChanged(System::Object^ sender, System::EventArgs^ e);
  76. System::Void numericUpDown_Bat_VoltInt_ValueChanged(System::Object^ sender, System::EventArgs^ e);
  77. System::Void numericUpDown_Bat_VoltFrac_ValueChanged(System::Object^ sender, System::EventArgs^ e);
  78. System::Void comboBoxBatStatus_SelectedIndexChanged(System::Object^ sender, System::EventArgs^ e);
  79. System::Void button_Bat_ElpTimeUpdate_Click(System::Object^ sender, System::EventArgs^ e);
  80. System::Void radioButton_Bat_Elp2Units_CheckedChanged(System::Object^ sender, System::EventArgs^ e);
  81. System::Void radioButton_Bat_Elp16Units_CheckedChanged(System::Object^ sender, System::EventArgs^ e);
  82. System::Void numericUpDownDay_ValueChanged(System::Object^ sender, System::EventArgs^ e);
  83. System::Void numericUpDownMonth_ValueChanged(System::Object^ sender, System::EventArgs^ e);
  84. System::Void numericUpDownYear_ValueChanged(System::Object^ sender, System::EventArgs^ e);
  85. System::Void numericUpDownHours_ValueChanged(System::Object^ sender, System::EventArgs^ e);
  86. System::Void numericUpDownMinutes_ValueChanged(System::Object^ sender, System::EventArgs^ e);
  87. System::Void numericUpDownSeconds_ValueChanged(System::Object^ sender, System::EventArgs^ e);
  88. System::Void buttonProgram_Click(System::Object^ sender, System::EventArgs^ e);
  89. System::Void checkBox_NoSerial_CheckedChanged(System::Object^ sender, System::EventArgs^ e);
  90. private:
  91. dRequestAckMsg^ requestAckMsg;
  92. dRequestUpdateMesgPeriod^ requestUpdateMesgPeriod;
  93. Geocache^ GeocacheData; // Geocache class variable
  94. CommonData^ commonData;
  95. System::Timers::Timer^ timerHandle; // Timer handle
  96. ULONG ulTimerInterval; // Timer interval between simulated events
  97. ULONG ulTotalTime; // used to track the on time for the batt page
  98. private: System::Windows::Forms::Panel^ panel_Settings;
  99. private: System::Windows::Forms::Panel^ panel_Display;
  100. private: System::Windows::Forms::Label^ label3;
  101. private: System::Windows::Forms::Label^ labelLon;
  102. private: System::Windows::Forms::Label^ label28;
  103. private: System::Windows::Forms::Label^ label29;
  104. private: System::Windows::Forms::Label^ label30;
  105. private: System::Windows::Forms::Label^ label31;
  106. private: System::Windows::Forms::Label^ label32;
  107. private: System::Windows::Forms::Label^ label33;
  108. private: System::Windows::Forms::Label^ label34;
  109. private: System::Windows::Forms::TabControl^ tabControl1;
  110. private: System::Windows::Forms::TabPage^ tabPage1;
  111. private: System::Windows::Forms::GroupBox^ groupBox2;
  112. private: System::Windows::Forms::TextBox^ textBoxPIN;
  113. private: System::Windows::Forms::Label^ label2;
  114. private: System::Windows::Forms::GroupBox^ groupBox1;
  115. private: System::Windows::Forms::TextBox^ textBoxID;
  116. private: System::Windows::Forms::Label^ label1;
  117. private: System::Windows::Forms::TabPage^ tabPage3;
  118. private: System::Windows::Forms::CheckBox^ checkBoxLongitude;
  119. private: System::Windows::Forms::CheckBox^ checkBoxLatitude;
  120. private: System::Windows::Forms::NumericUpDown^ numericUpDownLongitude;
  121. private: System::Windows::Forms::NumericUpDown^ numericUpDownLatitude;
  122. private: System::Windows::Forms::TabPage^ tabPage4;
  123. private: System::Windows::Forms::TabControl^ tabControl3;
  124. private: System::Windows::Forms::TabPage^ tabPage11;
  125. private: System::Windows::Forms::TabPage^ tabPage12;
  126. private: System::Windows::Forms::TabPage^ tabPage13;
  127. private: System::Windows::Forms::TabPage^ tabPage14;
  128. private: System::Windows::Forms::CheckBox^ checkBoxHint;
  129. private: System::Windows::Forms::TextBox^ textBoxHint;
  130. private: System::Windows::Forms::Label^ label13;
  131. private: System::Windows::Forms::NumericUpDown^ numericUpDownNumVisits;
  132. private: System::Windows::Forms::NumericUpDown^ numericUpDownMonth;
  133. private: System::Windows::Forms::NumericUpDown^ numericUpDownSeconds;
  134. private: System::Windows::Forms::NumericUpDown^ numericUpDownYear;
  135. private: System::Windows::Forms::Label^ label7;
  136. private: System::Windows::Forms::Label^ label8;
  137. private: System::Windows::Forms::CheckBox^ checkBoxLoggedVisits;
  138. private: System::Windows::Forms::Label^ label9;
  139. private: System::Windows::Forms::NumericUpDown^ numericUpDownHours;
  140. private: System::Windows::Forms::Label^ label10;
  141. private: System::Windows::Forms::NumericUpDown^ numericUpDownDay;
  142. private: System::Windows::Forms::Label^ label11;
  143. private: System::Windows::Forms::Label^ label12;
  144. private: System::Windows::Forms::NumericUpDown^ numericUpDownMinutes;
  145. private: System::Windows::Forms::Label^ label35;
  146. private: System::Windows::Forms::TabPage^ tabPage2;
  147. private: System::Windows::Forms::Label^ labelAuthToken;
  148. private: System::Windows::Forms::Label^ label36;
  149. private: System::Windows::Forms::TabControl^ tabControl2;
  150. private: System::Windows::Forms::TabPage^ tabPage5;
  151. private: System::Windows::Forms::Button^ button_Glb_GlobalDataUpdate;
  152. private: System::Windows::Forms::TextBox^ textBox_Glb_HardwareVerChange;
  153. private: System::Windows::Forms::TextBox^ textBox_Glb_SoftwareVerChange;
  154. private: System::Windows::Forms::TextBox^ textBox_Glb_ModelNumChange;
  155. private: System::Windows::Forms::TextBox^ textBox_Glb_ManfIDChange;
  156. private: System::Windows::Forms::TextBox^ textBox_Glb_SerialNumChange;
  157. private: System::Windows::Forms::Label^ label_Glb_HardwareVer;
  158. private: System::Windows::Forms::Label^ label_Glb_SoftwareVer;
  159. private: System::Windows::Forms::Label^ label_Glb_ManfID;
  160. private: System::Windows::Forms::Label^ label_Glb_ModelNum;
  161. private: System::Windows::Forms::Label^ label_Glb_SerialNum;
  162. private: System::Windows::Forms::TabPage^ tabPage6;
  163. private: System::Windows::Forms::Label^ label19;
  164. private: System::Windows::Forms::Label^ label20;
  165. private: System::Windows::Forms::ComboBox^ comboBoxBatStatus;
  166. private: System::Windows::Forms::Button^ button_Bat_ElpTimeUpdate;
  167. private: System::Windows::Forms::NumericUpDown^ numericUpDown_Bat_VoltInt;
  168. private: System::Windows::Forms::Label^ label_Voltage_Display;
  169. private: System::Windows::Forms::NumericUpDown^ numericUpDown_Bat_VoltFrac;
  170. private: System::Windows::Forms::GroupBox^ groupBox_Resol;
  171. private: System::Windows::Forms::RadioButton^ radioButton_Bat_Elp2Units;
  172. private: System::Windows::Forms::RadioButton^ radioButton_Bat_Elp16Units;
  173. private: System::Windows::Forms::CheckBox^ checkBox_Bat_Voltage;
  174. private: System::Windows::Forms::TextBox^ textBox_Bat_ElpTimeChange;
  175. private: System::Windows::Forms::Label^ label_Bat_ElpTimeDisplay;
  176. private: System::Windows::Forms::Label^ label_Bat_ElpTime;
  177. private: System::Windows::Forms::CheckBox^ checkBox_Bat_Status;
  178. private: System::Windows::Forms::Label^ labelTotNumPages;
  179. private: System::Windows::Forms::Label^ label22;
  180. private: System::Windows::Forms::GroupBox^ groupBox3;
  181. private: System::Windows::Forms::GroupBox^ groupBox4;
  182. private: System::Windows::Forms::GroupBox^ groupBox5;
  183. private: System::Windows::Forms::GroupBox^ groupBox6;
  184. private: System::Windows::Forms::TabPage^ tabPage10;
  185. private: System::Windows::Forms::Button^ buttonProgram;
  186. private: System::Windows::Forms::Label^ label15;
  187. private: System::Windows::Forms::Label^ labelLat;
  188. private: System::Windows::Forms::Label^ label14;
  189. private: System::Windows::Forms::Label^ labelTimestamp;
  190. private: System::Windows::Forms::Label^ label4;
  191. private: System::Windows::Forms::Label^ labelNumVisits;
  192. private: System::Windows::Forms::Label^ label5;
  193. private: System::Windows::Forms::Label^ label16;
  194. private: System::Windows::Forms::Label^ labelHint;
  195. private: System::Windows::Forms::Label^ label21;
  196. private: System::Windows::Forms::Label^ labelPIN;
  197. private: System::Windows::Forms::Label^ label17;
  198. private: System::Windows::Forms::Label^ labelID;
  199. private: System::Windows::Forms::CheckBox^ checkBoxPIN;
  200. private: System::Windows::Forms::CheckBox^ checkBoxID;
  201. private: System::Windows::Forms::CheckBox^ checkBox_NoSerial;
  202. private: System::Windows::Forms::Label^ labelError;
  203. /// <summary>
  204. /// Required designer variable.a
  205. /// </summary>
  206. System::ComponentModel::Container ^components;
  207. #pragma region Windows Form Designer generated code
  208. /// <summary>
  209. /// Required method for Designer support - do not modify
  210. /// the contents of this method with the code editor.
  211. /// </summary>
  212. void InitializeComponent(void)
  213. {
  214. this->panel_Settings = (gcnew System::Windows::Forms::Panel());
  215. this->tabControl1 = (gcnew System::Windows::Forms::TabControl());
  216. this->tabPage1 = (gcnew System::Windows::Forms::TabPage());
  217. this->groupBox2 = (gcnew System::Windows::Forms::GroupBox());
  218. this->checkBoxPIN = (gcnew System::Windows::Forms::CheckBox());
  219. this->labelTotNumPages = (gcnew System::Windows::Forms::Label());
  220. this->textBoxPIN = (gcnew System::Windows::Forms::TextBox());
  221. this->label2 = (gcnew System::Windows::Forms::Label());
  222. this->label22 = (gcnew System::Windows::Forms::Label());
  223. this->groupBox1 = (gcnew System::Windows::Forms::GroupBox());
  224. this->checkBoxID = (gcnew System::Windows::Forms::CheckBox());
  225. this->textBoxID = (gcnew System::Windows::Forms::TextBox());
  226. this->label1 = (gcnew System::Windows::Forms::Label());
  227. this->tabPage3 = (gcnew System::Windows::Forms::TabPage());
  228. this->tabControl3 = (gcnew System::Windows::Forms::TabControl());
  229. this->tabPage10 = (gcnew System::Windows::Forms::TabPage());
  230. this->buttonProgram = (gcnew System::Windows::Forms::Button());
  231. this->tabPage11 = (gcnew System::Windows::Forms::TabPage());
  232. this->groupBox3 = (gcnew System::Windows::Forms::GroupBox());
  233. this->checkBoxLatitude = (gcnew System::Windows::Forms::CheckBox());
  234. this->numericUpDownLatitude = (gcnew System::Windows::Forms::NumericUpDown());
  235. this->tabPage12 = (gcnew System::Windows::Forms::TabPage());
  236. this->groupBox4 = (gcnew System::Windows::Forms::GroupBox());
  237. this->checkBoxLongitude = (gcnew System::Windows::Forms::CheckBox());
  238. this->numericUpDownLongitude = (gcnew System::Windows::Forms::NumericUpDown());
  239. this->tabPage13 = (gcnew System::Windows::Forms::TabPage());
  240. this->groupBox5 = (gcnew System::Windows::Forms::GroupBox());
  241. this->textBoxHint = (gcnew System::Windows::Forms::TextBox());
  242. this->checkBoxHint = (gcnew System::Windows::Forms::CheckBox());
  243. this->tabPage14 = (gcnew System::Windows::Forms::TabPage());
  244. this->groupBox6 = (gcnew System::Windows::Forms::GroupBox());
  245. this->label35 = (gcnew System::Windows::Forms::Label());
  246. this->label7 = (gcnew System::Windows::Forms::Label());
  247. this->label13 = (gcnew System::Windows::Forms::Label());
  248. this->numericUpDownMinutes = (gcnew System::Windows::Forms::NumericUpDown());
  249. this->numericUpDownNumVisits = (gcnew System::Windows::Forms::NumericUpDown());
  250. this->label12 = (gcnew System::Windows::Forms::Label());
  251. this->numericUpDownMonth = (gcnew System::Windows::Forms::NumericUpDown());
  252. this->label11 = (gcnew System::Windows::Forms::Label());
  253. this->numericUpDownSeconds = (gcnew System::Windows::Forms::NumericUpDown());
  254. this->numericUpDownDay = (gcnew System::Windows::Forms::NumericUpDown());
  255. this->numericUpDownYear = (gcnew System::Windows::Forms::NumericUpDown());
  256. this->label10 = (gcnew System::Windows::Forms::Label());
  257. this->numericUpDownHours = (gcnew System::Windows::Forms::NumericUpDown());
  258. this->label8 = (gcnew System::Windows::Forms::Label());
  259. this->label9 = (gcnew System::Windows::Forms::Label());
  260. this->checkBoxLoggedVisits = (gcnew System::Windows::Forms::CheckBox());
  261. this->tabPage2 = (gcnew System::Windows::Forms::TabPage());
  262. this->labelAuthToken = (gcnew System::Windows::Forms::Label());
  263. this->label36 = (gcnew System::Windows::Forms::Label());
  264. this->tabPage4 = (gcnew System::Windows::Forms::TabPage());
  265. this->tabControl2 = (gcnew System::Windows::Forms::TabControl());
  266. this->tabPage5 = (gcnew System::Windows::Forms::TabPage());
  267. this->labelError = (gcnew System::Windows::Forms::Label());
  268. this->checkBox_NoSerial = (gcnew System::Windows::Forms::CheckBox());
  269. this->button_Glb_GlobalDataUpdate = (gcnew System::Windows::Forms::Button());
  270. this->textBox_Glb_HardwareVerChange = (gcnew System::Windows::Forms::TextBox());
  271. this->textBox_Glb_SoftwareVerChange = (gcnew System::Windows::Forms::TextBox());
  272. this->textBox_Glb_ModelNumChange = (gcnew System::Windows::Forms::TextBox());
  273. this->textBox_Glb_ManfIDChange = (gcnew System::Windows::Forms::TextBox());
  274. this->textBox_Glb_SerialNumChange = (gcnew System::Windows::Forms::TextBox());
  275. this->label_Glb_HardwareVer = (gcnew System::Windows::Forms::Label());
  276. this->label_Glb_SoftwareVer = (gcnew System::Windows::Forms::Label());
  277. this->label_Glb_ManfID = (gcnew System::Windows::Forms::Label());
  278. this->label_Glb_ModelNum = (gcnew System::Windows::Forms::Label());
  279. this->label_Glb_SerialNum = (gcnew System::Windows::Forms::Label());
  280. this->tabPage6 = (gcnew System::Windows::Forms::TabPage());
  281. this->label19 = (gcnew System::Windows::Forms::Label());
  282. this->label20 = (gcnew System::Windows::Forms::Label());
  283. this->comboBoxBatStatus = (gcnew System::Windows::Forms::ComboBox());
  284. this->button_Bat_ElpTimeUpdate = (gcnew System::Windows::Forms::Button());
  285. this->numericUpDown_Bat_VoltInt = (gcnew System::Windows::Forms::NumericUpDown());
  286. this->label_Voltage_Display = (gcnew System::Windows::Forms::Label());
  287. this->numericUpDown_Bat_VoltFrac = (gcnew System::Windows::Forms::NumericUpDown());
  288. this->groupBox_Resol = (gcnew System::Windows::Forms::GroupBox());
  289. this->radioButton_Bat_Elp2Units = (gcnew System::Windows::Forms::RadioButton());
  290. this->radioButton_Bat_Elp16Units = (gcnew System::Windows::Forms::RadioButton());
  291. this->checkBox_Bat_Voltage = (gcnew System::Windows::Forms::CheckBox());
  292. this->textBox_Bat_ElpTimeChange = (gcnew System::Windows::Forms::TextBox());
  293. this->label_Bat_ElpTimeDisplay = (gcnew System::Windows::Forms::Label());
  294. this->label_Bat_ElpTime = (gcnew System::Windows::Forms::Label());
  295. this->checkBox_Bat_Status = (gcnew System::Windows::Forms::CheckBox());
  296. this->panel_Display = (gcnew System::Windows::Forms::Panel());
  297. this->labelHint = (gcnew System::Windows::Forms::Label());
  298. this->label21 = (gcnew System::Windows::Forms::Label());
  299. this->labelPIN = (gcnew System::Windows::Forms::Label());
  300. this->label17 = (gcnew System::Windows::Forms::Label());
  301. this->labelID = (gcnew System::Windows::Forms::Label());
  302. this->label16 = (gcnew System::Windows::Forms::Label());
  303. this->labelNumVisits = (gcnew System::Windows::Forms::Label());
  304. this->label5 = (gcnew System::Windows::Forms::Label());
  305. this->labelLon = (gcnew System::Windows::Forms::Label());
  306. this->label15 = (gcnew System::Windows::Forms::Label());
  307. this->labelLat = (gcnew System::Windows::Forms::Label());
  308. this->label14 = (gcnew System::Windows::Forms::Label());
  309. this->labelTimestamp = (gcnew System::Windows::Forms::Label());
  310. this->label4 = (gcnew System::Windows::Forms::Label());
  311. this->label3 = (gcnew System::Windows::Forms::Label());
  312. this->label28 = (gcnew System::Windows::Forms::Label());
  313. this->label29 = (gcnew System::Windows::Forms::Label());
  314. this->label30 = (gcnew System::Windows::Forms::Label());
  315. this->label31 = (gcnew System::Windows::Forms::Label());
  316. this->label32 = (gcnew System::Windows::Forms::Label());
  317. this->label33 = (gcnew System::Windows::Forms::Label());
  318. this->label34 = (gcnew System::Windows::Forms::Label());
  319. this->panel_Settings->SuspendLayout();
  320. this->tabControl1->SuspendLayout();
  321. this->tabPage1->SuspendLayout();
  322. this->groupBox2->SuspendLayout();
  323. this->groupBox1->SuspendLayout();
  324. this->tabPage3->SuspendLayout();
  325. this->tabControl3->SuspendLayout();
  326. this->tabPage10->SuspendLayout();
  327. this->tabPage11->SuspendLayout();
  328. this->groupBox3->SuspendLayout();
  329. (cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->numericUpDownLatitude))->BeginInit();
  330. this->tabPage12->SuspendLayout();
  331. this->groupBox4->SuspendLayout();
  332. (cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->numericUpDownLongitude))->BeginInit();
  333. this->tabPage13->SuspendLayout();
  334. this->groupBox5->SuspendLayout();
  335. this->tabPage14->SuspendLayout();
  336. this->groupBox6->SuspendLayout();
  337. (cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->numericUpDownMinutes))->BeginInit();
  338. (cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->numericUpDownNumVisits))->BeginInit();
  339. (cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->numericUpDownMonth))->BeginInit();
  340. (cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->numericUpDownSeconds))->BeginInit();
  341. (cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->numericUpDownDay))->BeginInit();
  342. (cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->numericUpDownYear))->BeginInit();
  343. (cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->numericUpDownHours))->BeginInit();
  344. this->tabPage2->SuspendLayout();
  345. this->tabPage4->SuspendLayout();
  346. this->tabControl2->SuspendLayout();
  347. this->tabPage5->SuspendLayout();
  348. this->tabPage6->SuspendLayout();
  349. (cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->numericUpDown_Bat_VoltInt))->BeginInit();
  350. (cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->numericUpDown_Bat_VoltFrac))->BeginInit();
  351. this->groupBox_Resol->SuspendLayout();
  352. this->panel_Display->SuspendLayout();
  353. this->SuspendLayout();
  354. //
  355. // panel_Settings
  356. //
  357. this->panel_Settings->Controls->Add(this->tabControl1);
  358. this->panel_Settings->Location = System::Drawing::Point(322, 40);
  359. this->panel_Settings->Name = L"panel_Settings";
  360. this->panel_Settings->Size = System::Drawing::Size(400, 166);
  361. this->panel_Settings->TabIndex = 0;
  362. //
  363. // tabControl1
  364. //
  365. this->tabControl1->Controls->Add(this->tabPage1);
  366. this->tabControl1->Controls->Add(this->tabPage3);
  367. this->tabControl1->Controls->Add(this->tabPage2);
  368. this->tabControl1->Controls->Add(this->tabPage4);
  369. this->tabControl1->Location = System::Drawing::Point(3, 3);
  370. this->tabControl1->Name = L"tabControl1";
  371. this->tabControl1->SelectedIndex = 0;
  372. this->tabControl1->Size = System::Drawing::Size(392, 160);
  373. this->tabControl1->TabIndex = 6;
  374. //
  375. // tabPage1
  376. //
  377. this->tabPage1->Controls->Add(this->groupBox2);
  378. this->tabPage1->Controls->Add(this->groupBox1);
  379. this->tabPage1->Location = System::Drawing::Point(4, 22);
  380. this->tabPage1->Name = L"tabPage1";
  381. this->tabPage1->Padding = System::Windows::Forms::Padding(3);
  382. this->tabPage1->Size = System::Drawing::Size(384, 134);
  383. this->tabPage1->TabIndex = 0;
  384. this->tabPage1->Text = L"Main Data";
  385. this->tabPage1->UseVisualStyleBackColor = true;
  386. //
  387. // groupBox2
  388. //
  389. this->groupBox2->Controls->Add(this->checkBoxPIN);
  390. this->groupBox2->Controls->Add(this->labelTotNumPages);
  391. this->groupBox2->Controls->Add(this->textBoxPIN);
  392. this->groupBox2->Controls->Add(this->label2);
  393. this->groupBox2->Controls->Add(this->label22);
  394. this->groupBox2->Location = System::Drawing::Point(196, 6);
  395. this->groupBox2->Name = L"groupBox2";
  396. this->groupBox2->Size = System::Drawing::Size(160, 98);
  397. this->groupBox2->TabIndex = 57;
  398. this->groupBox2->TabStop = false;
  399. this->groupBox2->Text = L"Page 1 Data";
  400. //
  401. // checkBoxPIN
  402. //
  403. this->checkBoxPIN->AutoSize = true;
  404. this->checkBoxPIN->Location = System::Drawing::Point(17, 19);
  405. this->checkBoxPIN->Name = L"checkBoxPIN";
  406. this->checkBoxPIN->Size = System::Drawing::Size(69, 17);
  407. this->checkBoxPIN->TabIndex = 55;
  408. this->checkBoxPIN->Text = L"Set PIN :";
  409. this->checkBoxPIN->UseVisualStyleBackColor = true;
  410. this->checkBoxPIN->CheckedChanged += gcnew System::EventHandler(this, &GeocacheSensor::checkBoxPIN_CheckedChanged);
  411. //
  412. // labelTotNumPages
  413. //
  414. this->labelTotNumPages->AutoSize = true;
  415. this->labelTotNumPages->Location = System::Drawing::Point(132, 78);
  416. this->labelTotNumPages->Name = L"labelTotNumPages";
  417. this->labelTotNumPages->Size = System::Drawing::Size(16, 13);
  418. this->labelTotNumPages->TabIndex = 59;
  419. this->labelTotNumPages->Text = L"---";
  420. //
  421. // textBoxPIN
  422. //
  423. this->textBoxPIN->Cursor = System::Windows::Forms::Cursors::IBeam;
  424. this->textBoxPIN->Enabled = false;
  425. this->textBoxPIN->Location = System::Drawing::Point(64, 43);
  426. this->textBoxPIN->MaxLength = 10;
  427. this->textBoxPIN->Name = L"textBoxPIN";
  428. this->textBoxPIN->Size = System::Drawing::Size(76, 20);
  429. this->textBoxPIN->TabIndex = 54;
  430. this->textBoxPIN->Text = L"12345";
  431. this->textBoxPIN->KeyDown += gcnew System::Windows::Forms::KeyEventHandler(this, &GeocacheSensor::textBoxPIN_KeyDown);
  432. this->textBoxPIN->KeyPress += gcnew System::Windows::Forms::KeyPressEventHandler(this, &GeocacheSensor::textBoxPIN_KeyPress);
  433. //
  434. // label2
  435. //
  436. this->label2->AutoSize = true;
  437. this->label2->Location = System::Drawing::Point(16, 46);
  438. this->label2->Name = L"label2";
  439. this->label2->Size = System::Drawing::Size(31, 13);
  440. this->label2->TabIndex = 4;
  441. this->label2->Text = L"PIN :";
  442. //
  443. // label22
  444. //
  445. this->label22->AutoSize = true;
  446. this->label22->Location = System::Drawing::Point(14, 78);
  447. this->label22->Name = L"label22";
  448. this->label22->Size = System::Drawing::Size(92, 13);
  449. this->label22->TabIndex = 58;
  450. this->label22->Text = L"Total # of Pages :";
  451. //
  452. // groupBox1
  453. //
  454. this->groupBox1->Controls->Add(this->checkBoxID);
  455. this->groupBox1->Controls->Add(this->textBoxID);
  456. this->groupBox1->Controls->Add(this->label1);
  457. this->groupBox1->Location = System::Drawing::Point(19, 6);
  458. this->groupBox1->Name = L"groupBox1";
  459. this->groupBox1->Size = System::Drawing::Size(160, 79);
  460. this->groupBox1->TabIndex = 56;
  461. this->groupBox1->TabStop = false;
  462. this->groupBox1->Text = L"Page 0 Data";
  463. //
  464. // checkBoxID
  465. //
  466. this->checkBoxID->AutoSize = true;
  467. this->checkBoxID->Location = System::Drawing::Point(19, 19);
  468. this->checkBoxID->Name = L"checkBoxID";
  469. this->checkBoxID->Size = System::Drawing::Size(62, 17);
  470. this->checkBoxID->TabIndex = 21;
  471. this->checkBoxID->Text = L"Set ID :";
  472. this->checkBoxID->UseVisualStyleBackColor = true;
  473. this->checkBoxID->CheckedChanged += gcnew System::EventHandler(this, &GeocacheSensor::checkBoxID_CheckedChanged);
  474. //
  475. // textBoxID
  476. //
  477. this->textBoxID->CharacterCasing = System::Windows::Forms::CharacterCasing::Upper;
  478. this->textBoxID->Enabled = false;
  479. this->textBoxID->Location = System::Drawing::Point(64, 43);
  480. this->textBoxID->MaxLength = 9;
  481. this->textBoxID->Name = L"textBoxID";
  482. this->textBoxID->Size = System::Drawing::Size(76, 20);
  483. this->textBoxID->TabIndex = 54;
  484. this->textBoxID->Text = L"ABCD12345";
  485. this->textBoxID->TextChanged += gcnew System::EventHandler(this, &GeocacheSensor::textBoxID_TextChanged);
  486. //
  487. // label1
  488. //
  489. this->label1->AutoSize = true;
  490. this->label1->Location = System::Drawing::Point(16, 46);
  491. this->label1->Name = L"label1";
  492. this->label1->Size = System::Drawing::Size(24, 13);
  493. this->label1->TabIndex = 4;
  494. this->label1->Text = L"ID :";
  495. //
  496. // tabPage3
  497. //
  498. this->tabPage3->Controls->Add(this->tabControl3);
  499. this->tabPage3->Location = System::Drawing::Point(4, 22);
  500. this->tabPage3->Name = L"tabPage3";
  501. this->tabPage3->Size = System::Drawing::Size(384, 134);
  502. this->tabPage3->TabIndex = 2;
  503. this->tabPage3->Text = L"Programmable Page(s)";
  504. this->tabPage3->UseVisualStyleBackColor = true;
  505. //
  506. // tabControl3
  507. //
  508. this->tabControl3->Controls->Add(this->tabPage10);
  509. this->tabControl3->Controls->Add(this->tabPage11);
  510. this->tabControl3->Controls->Add(this->tabPage12);
  511. this->tabControl3->Controls->Add(this->tabPage13);
  512. this->tabControl3->Controls->Add(this->tabPage14);
  513. this->tabControl3->Location = System::Drawing::Point(3, 3);
  514. this->tabControl3->Name = L"tabControl3";
  515. this->tabControl3->SelectedIndex = 0;
  516. this->tabControl3->Size = System::Drawing::Size(378, 131);
  517. this->tabControl3->TabIndex = 2;
  518. //
  519. // tabPage10
  520. //
  521. this->tabPage10->Controls->Add(this->buttonProgram);
  522. this->tabPage10->Location = System::Drawing::Point(4, 22);
  523. this->tabPage10->Name = L"tabPage10";
  524. this->tabPage10->Padding = System::Windows::Forms::Padding(3);
  525. this->tabPage10->Size = System::Drawing::Size(370, 105);
  526. this->tabPage10->TabIndex = 4;
  527. this->tabPage10->Text = L"Program";
  528. this->tabPage10->UseVisualStyleBackColor = true;
  529. //
  530. // buttonProgram
  531. //
  532. this->buttonProgram->Location = System::Drawing::Point(126, 35);
  533. this->buttonProgram->Name = L"buttonProgram";
  534. this->buttonProgram->Size = System::Drawing::Size(112, 23);
  535. this->buttonProgram->TabIndex = 0;
  536. this->buttonProgram->Text = L"Program Geocache";
  537. this->buttonProgram->UseVisualStyleBackColor = true;
  538. this->buttonProgram->Click += gcnew System::EventHandler(this, &GeocacheSensor::buttonProgram_Click);
  539. //
  540. // tabPage11
  541. //
  542. this->tabPage11->Controls->Add(this->groupBox3);
  543. this->tabPage11->Location = System::Drawing::Point(4, 22);
  544. this->tabPage11->Name = L"tabPage11";
  545. this->tabPage11->Padding = System::Windows::Forms::Padding(3);
  546. this->tabPage11->Size = System::Drawing::Size(370, 105);
  547. this->tabPage11->TabIndex = 0;
  548. this->tabPage11->Text = L"Lattitude";
  549. this->tabPage11->UseVisualStyleBackColor = true;
  550. //
  551. // groupBox3
  552. //
  553. this->groupBox3->Controls->Add(this->checkBoxLatitude);
  554. this->groupBox3->Controls->Add(this->numericUpDownLatitude);
  555. this->groupBox3->Location = System::Drawing::Point(6, 6);
  556. this->groupBox3->Name = L"groupBox3";
  557. this->groupBox3->Size = System::Drawing::Size(244, 79);
  558. this->groupBox3->TabIndex = 2;
  559. this->groupBox3->TabStop = false;
  560. this->groupBox3->Text = L"Data ID 0";
  561. //
  562. // checkBoxLatitude
  563. //
  564. this->checkBoxLatitude->AutoSize = true;
  565. this->checkBoxLatitude->Location = System::Drawing::Point(30, 19);
  566. this->checkBoxLatitude->Name = L"checkBoxLatitude";
  567. this->checkBoxLatitude->Size = System::Drawing::Size(89, 17);
  568. this->checkBoxLatitude->TabIndex = 20;
  569. this->checkBoxLatitude->Text = L"Set Latitude :";
  570. this->checkBoxLatitude->UseVisualStyleBackColor = true;
  571. this->checkBoxLatitude->CheckedChanged += gcnew System::EventHandler(this, &GeocacheSensor::checkBoxLatitude_CheckedChanged);
  572. //
  573. // numericUpDownLatitude
  574. //
  575. this->numericUpDownLatitude->DecimalPlaces = 6;
  576. this->numericUpDownLatitude->Enabled = false;
  577. this->numericUpDownLatitude->Location = System::Drawing::Point(73, 42);
  578. this->numericUpDownLatitude->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {90, 0, 0, 0});
  579. this->numericUpDownLatitude->Minimum = System::Decimal(gcnew cli::array< System::Int32 >(4) {90, 0, 0, System::Int32::MinValue});
  580. this->numericUpDownLatitude->Name = L"numericUpDownLatitude";
  581. this->numericUpDownLatitude->Size = System::Drawing::Size(99, 20);
  582. this->numericUpDownLatitude->TabIndex = 13;
  583. this->numericUpDownLatitude->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) {513292, 0, 0, 262144});
  584. this->numericUpDownLatitude->ValueChanged += gcnew System::EventHandler(this, &GeocacheSensor::numericUpDownLatitude_ValueChanged);
  585. //
  586. // tabPage12
  587. //
  588. this->tabPage12->Controls->Add(this->groupBox4);
  589. this->tabPage12->Location = System::Drawing::Point(4, 22);
  590. this->tabPage12->Name = L"tabPage12";
  591. this->tabPage12->Padding = System::Windows::Forms::Padding(3);
  592. this->tabPage12->Size = System::Drawing::Size(370, 105);
  593. this->tabPage12->TabIndex = 1;
  594. this->tabPage12->Text = L"Longitude";
  595. this->tabPage12->UseVisualStyleBackColor = true;
  596. //
  597. // groupBox4
  598. //
  599. this->groupBox4->Controls->Add(this->checkBoxLongitude);
  600. this->groupBox4->Controls->Add(this->numericUpDownLongitude);
  601. this->groupBox4->Location = System::Drawing::Point(6, 6);
  602. this->groupBox4->Name = L"groupBox4";
  603. this->groupBox4->Size = System::Drawing::Size(244, 79);
  604. this->groupBox4->TabIndex = 3;
  605. this->groupBox4->TabStop = false;
  606. this->groupBox4->Text = L"Data ID 1";
  607. //
  608. // checkBoxLongitude
  609. //
  610. this->checkBoxLongitude->AutoSize = true;
  611. this->checkBoxLongitude->Location = System::Drawing::Point(29, 19);
  612. this->checkBoxLongitude->Name = L"checkBoxLongitude";
  613. this->checkBoxLongitude->Size = System::Drawing::Size(98, 17);
  614. this->checkBoxLongitude->TabIndex = 21;
  615. this->checkBoxLongitude->Text = L"Set Longitude :";
  616. this->checkBoxLongitude->UseVisualStyleBackColor = true;
  617. this->checkBoxLongitude->CheckedChanged += gcnew System::EventHandler(this, &GeocacheSensor::checkBoxLongitude_CheckedChanged);
  618. //
  619. // numericUpDownLongitude
  620. //
  621. this->numericUpDownLongitude->DecimalPlaces = 6;
  622. this->numericUpDownLongitude->Enabled = false;
  623. this->numericUpDownLongitude->Location = System::Drawing::Point(74, 42);
  624. this->numericUpDownLongitude->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {180, 0, 0, 0});
  625. this->numericUpDownLongitude->Minimum = System::Decimal(gcnew cli::array< System::Int32 >(4) {180, 0, 0, System::Int32::MinValue});
  626. this->numericUpDownLongitude->Name = L"numericUpDownLongitude";
  627. this->numericUpDownLongitude->Size = System::Drawing::Size(99, 20);
  628. this->numericUpDownLongitude->TabIndex = 14;
  629. this->numericUpDownLongitude->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) {1145493, 0, 0, -2147221504});
  630. this->numericUpDownLongitude->ValueChanged += gcnew System::EventHandler(this, &GeocacheSensor::numericUpDownLongitude_ValueChanged);
  631. //
  632. // tabPage13
  633. //
  634. this->tabPage13->Controls->Add(this->groupBox5);
  635. this->tabPage13->Location = System::Drawing::Point(4, 22);
  636. this->tabPage13->Name = L"tabPage13";
  637. this->tabPage13->Size = System::Drawing::Size(370, 105);
  638. this->tabPage13->TabIndex = 2;
  639. this->tabPage13->Text = L"Hint";
  640. this->tabPage13->UseVisualStyleBackColor = true;
  641. //
  642. // groupBox5
  643. //
  644. this->groupBox5->Controls->Add(this->textBoxHint);
  645. this->groupBox5->Controls->Add(this->checkBoxHint);
  646. this->groupBox5->Location = System::Drawing::Point(3, 3);
  647. this->groupBox5->Name = L"groupBox5";
  648. this->groupBox5->Size = System::Drawing::Size(364, 93);
  649. this->groupBox5->TabIndex = 4;
  650. this->groupBox5->TabStop = false;
  651. this->groupBox5->Text = L"Data ID 2";
  652. //
  653. // textBoxHint
  654. //
  655. this->textBoxHint->Enabled = false;
  656. this->textBoxHint->Location = System::Drawing::Point(6, 53);
  657. this->textBoxHint->MaxLength = 80;
  658. this->textBoxHint->Name = L"textBoxHint";
  659. this->textBoxHint->Size = System::Drawing::Size(352, 20);
  660. this->textBoxHint->TabIndex = 56;
  661. this->textBoxHint->Text = L"HINT HINT";
  662. //
  663. // checkBoxHint
  664. //
  665. this->checkBoxHint->AutoSize = true;
  666. this->checkBoxHint->Location = System::Drawing::Point(27, 19);
  667. this->checkBoxHint->Name = L"checkBoxHint";
  668. this->checkBoxHint->Size = System::Drawing::Size(70, 17);
  669. this->checkBoxHint->TabIndex = 57;
  670. this->checkBoxHint->Text = L"Set Hint :";
  671. this->checkBoxHint->UseVisualStyleBackColor = true;
  672. this->checkBoxHint->CheckedChanged += gcnew System::EventHandler(this, &GeocacheSensor::checkBoxHint_CheckedChanged);
  673. //
  674. // tabPage14
  675. //
  676. this->tabPage14->Controls->Add(this->groupBox6);
  677. this->tabPage14->Location = System::Drawing::Point(4, 22);
  678. this->tabPage14->Name = L"tabPage14";
  679. this->tabPage14->Size = System::Drawing::Size(370, 105);
  680. this->tabPage14->TabIndex = 3;
  681. this->tabPage14->Text = L"LoggedVisits";
  682. this->tabPage14->UseVisualStyleBackColor = true;
  683. //
  684. // groupBox6
  685. //
  686. this->groupBox6->Controls->Add(this->label35);
  687. this->groupBox6->Controls->Add(this->label7);
  688. this->groupBox6->Controls->Add(this->label13);
  689. this->groupBox6->Controls->Add(this->numericUpDownMinutes);
  690. this->groupBox6->Controls->Add(this->numericUpDownNumVisits);
  691. this->groupBox6->Controls->Add(this->label12);
  692. this->groupBox6->Controls->Add(this->numericUpDownMonth);
  693. this->groupBox6->Controls->Add(this->label11);
  694. this->groupBox6->Controls->Add(this->numericUpDownSeconds);
  695. this->groupBox6->Controls->Add(this->numericUpDownDay);
  696. this->groupBox6->Controls->Add(this->numericUpDownYear);
  697. this->groupBox6->Controls->Add(this->label10);
  698. this->groupBox6->Controls->Add(this->numericUpDownHours);
  699. this->groupBox6->Controls->Add(this->label8);
  700. this->groupBox6->Controls->Add(this->label9);
  701. this->groupBox6->Controls->Add(this->checkBoxLoggedVisits);
  702. this->groupBox6->Location = System::Drawing::Point(3, 4);
  703. this->groupBox6->Name = L"groupBox6";
  704. this->groupBox6->Size = System::Drawing::Size(364, 99);
  705. this->groupBox6->TabIndex = 2;
  706. this->groupBox6->TabStop = false;
  707. this->groupBox6->Text = L"Data ID 4";
  708. //
  709. // label35
  710. //
  711. this->label35->AutoSize = true;
  712. this->label35->Location = System::Drawing::Point(37, 72);
  713. this->label35->Name = L"label35";
  714. this->label35->Size = System::Drawing::Size(103, 13);
  715. this->label35->TabIndex = 33;
  716. this->label35->Text = L"Last Visit Timestamp";
  717. //
  718. // label7
  719. //
  720. this->label7->AutoSize = true;
  721. this->label7->Location = System::Drawing::Point(164, 15);
  722. this->label7->Name = L"label7";
  723. this->label7->Size = System::Drawing::Size(26, 13);
  724. this->label7->TabIndex = 23;
  725. this->label7->Text = L"Day";
  726. //
  727. // label13
  728. //
  729. this->label13->AutoSize = true;
  730. this->label13->Location = System::Drawing::Point(9, 43);
  731. this->label13->Name = L"label13";
  732. this->label13->Size = System::Drawing::Size(59, 13);
  733. this->label13->TabIndex = 32;
  734. this->label13->Text = L"# of Visits :";
  735. //
  736. // numericUpDownMinutes
  737. //
  738. this->numericUpDownMinutes->Enabled = false;
  739. this->numericUpDownMinutes->Location = System::Drawing::Point(316, 39);
  740. this->numericUpDownMinutes->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {59, 0, 0, 0});
  741. this->numericUpDownMinutes->Name = L"numericUpDownMinutes";
  742. this->numericUpDownMinutes->Size = System::Drawing::Size(37, 20);
  743. this->numericUpDownMinutes->TabIndex = 26;
  744. this->numericUpDownMinutes->TextAlign = System::Windows::Forms::HorizontalAlignment::Center;
  745. this->numericUpDownMinutes->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) {30, 0, 0, 0});
  746. //
  747. // numericUpDownNumVisits
  748. //
  749. this->numericUpDownNumVisits->Enabled = false;
  750. this->numericUpDownNumVisits->Location = System::Drawing::Point(74, 41);
  751. this->numericUpDownNumVisits->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {65535, 0, 0, 0});
  752. this->numericUpDownNumVisits->Name = L"numericUpDownNumVisits";
  753. this->numericUpDownNumVisits->Size = System::Drawing::Size(66, 20);
  754. this->numericUpDownNumVisits->TabIndex = 31;
  755. this->numericUpDownNumVisits->TextAlign = System::Windows::Forms::HorizontalAlignment::Center;
  756. this->numericUpDownNumVisits->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) {1, 0, 0, 0});
  757. //
  758. // label12
  759. //
  760. this->label12->AutoSize = true;
  761. this->label12->Location = System::Drawing::Point(153, 41);
  762. this->label12->Name = L"label12";
  763. this->label12->Size = System::Drawing::Size(37, 13);
  764. this->label12->TabIndex = 22;
  765. this->label12->Text = L"Month";
  766. //
  767. // numericUpDownMonth
  768. //
  769. this->numericUpDownMonth->Enabled = false;
  770. this->numericUpDownMonth->Location = System::Drawing::Point(196, 39);
  771. this->numericUpDownMonth->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {12, 0, 0, 0});
  772. this->numericUpDownMonth->Minimum = System::Decimal(gcnew cli::array< System::Int32 >(4) {1, 0, 0, 0});
  773. this->numericUpDownMonth->Name = L"numericUpDownMonth";
  774. this->numericUpDownMonth->Size = System::Drawing::Size(37, 20);
  775. this->numericUpDownMonth->TabIndex = 30;
  776. this->numericUpDownMonth->TextAlign = System::Windows::Forms::HorizontalAlignment::Center;
  777. this->numericUpDownMonth->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) {5, 0, 0, 0});
  778. //
  779. // label11
  780. //
  781. this->label11->AutoSize = true;
  782. this->label11->Location = System::Drawing::Point(161, 69);
  783. this->label11->Name = L"label11";
  784. this->label11->Size = System::Drawing::Size(29, 13);
  785. this->label11->TabIndex = 21;
  786. this->label11->Text = L"Year";
  787. //
  788. // numericUpDownSeconds
  789. //
  790. this->numericUpDownSeconds->Enabled = false;
  791. this->numericUpDownSeconds->Location = System::Drawing::Point(316, 65);
  792. this->numericUpDownSeconds->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {59, 0, 0, 0});
  793. this->numericUpDownSeconds->Name = L"numericUpDownSeconds";
  794. this->numericUpDownSeconds->Size = System::Drawing::Size(37, 20);
  795. this->numericUpDownSeconds->TabIndex = 25;
  796. this->numericUpDownSeconds->TextAlign = System::Windows::Forms::HorizontalAlignment::Center;
  797. this->numericUpDownSeconds->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) {30, 0, 0, 0});
  798. //
  799. // numericUpDownDay
  800. //
  801. this->numericUpDownDay->Enabled = false;
  802. this->numericUpDownDay->Location = System::Drawing::Point(196, 13);
  803. this->numericUpDownDay->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {31, 0, 0, 0});
  804. this->numericUpDownDay->Minimum = System::Decimal(gcnew cli::array< System::Int32 >(4) {1, 0, 0, 0});
  805. this->numericUpDownDay->Name = L"numericUpDownDay";
  806. this->numericUpDownDay->Size = System::Drawing::Size(37, 20);
  807. this->numericUpDownDay->TabIndex = 28;
  808. this->numericUpDownDay->TextAlign = System::Windows::Forms::HorizontalAlignment::Center;
  809. this->numericUpDownDay->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) {13, 0, 0, 0});
  810. //
  811. // numericUpDownYear
  812. //
  813. this->numericUpDownYear->Enabled = false;
  814. this->numericUpDownYear->Location = System::Drawing::Point(196, 65);
  815. this->numericUpDownYear->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {3000, 0, 0, 0});
  816. this->numericUpDownYear->Minimum = System::Decimal(gcnew cli::array< System::Int32 >(4) {1900, 0, 0, 0});
  817. this->numericUpDownYear->Name = L"numericUpDownYear";
  818. this->numericUpDownYear->Size = System::Drawing::Size(55, 20);
  819. this->numericUpDownYear->TabIndex = 29;
  820. this->numericUpDownYear->TextAlign = System::Windows::Forms::HorizontalAlignment::Center;
  821. this->numericUpDownYear->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) {2011, 0, 0, 0});
  822. //
  823. // label10
  824. //
  825. this->label10->AutoSize = true;
  826. this->label10->Location = System::Drawing::Point(275, 15);
  827. this->label10->Name = L"label10";
  828. this->label10->Size = System::Drawing::Size(35, 13);
  829. this->label10->TabIndex = 20;
  830. this->label10->Text = L"Hours";
  831. //
  832. // numericUpDownHours
  833. //
  834. this->numericUpDownHours->Enabled = false;
  835. this->numericUpDownHours->Location = System::Drawing::Point(316, 13);
  836. this->numericUpDownHours->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {23, 0, 0, 0});
  837. this->numericUpDownHours->Name = L"numericUpDownHours";
  838. this->numericUpDownHours->Size = System::Drawing::Size(37, 20);
  839. this->numericUpDownHours->TabIndex = 27;
  840. this->numericUpDownHours->TextAlign = System::Windows::Forms::HorizontalAlignment::Center;
  841. this->numericUpDownHours->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) {12, 0, 0, 0});
  842. //
  843. // label8
  844. //
  845. this->label8->AutoSize = true;
  846. this->label8->Location = System::Drawing::Point(266, 41);
  847. this->label8->Name = L"label8";
  848. this->label8->Size = System::Drawing::Size(44, 13);
  849. this->label8->TabIndex = 19;
  850. this->label8->Text = L"Minutes";
  851. //
  852. // label9
  853. //
  854. this->label9->AutoSize = true;
  855. this->label9->Location = System::Drawing::Point(261, 69);
  856. this->label9->Name = L"label9";
  857. this->label9->Size = System::Drawing::Size(49, 13);
  858. this->label9->TabIndex = 18;
  859. this->label9->Text = L"Seconds";
  860. //
  861. // checkBoxLoggedVisits
  862. //
  863. this->checkBoxLoggedVisits->AutoSize = true;
  864. this->checkBoxLoggedVisits->Location = System::Drawing::Point(15, 18);
  865. this->checkBoxLoggedVisits->Name = L"checkBoxLoggedVisits";
  866. this->checkBoxLoggedVisits->Size = System::Drawing::Size(114, 17);
  867. this->checkBoxLoggedVisits->TabIndex = 24;
  868. this->checkBoxLoggedVisits->Text = L"Set Logged Visits :";
  869. this->checkBoxLoggedVisits->UseVisualStyleBackColor = true;
  870. this->checkBoxLoggedVisits->CheckedChanged += gcnew System::EventHandler(this, &GeocacheSensor::checkBoxLoggedVisits_CheckedChanged);
  871. //
  872. // tabPage2
  873. //
  874. this->tabPage2->Controls->Add(this->labelAuthToken);
  875. this->tabPage2->Controls->Add(this->label36);
  876. this->tabPage2->Location = System::Drawing::Point(4, 22);
  877. this->tabPage2->Name = L"tabPage2";
  878. this->tabPage2->Padding = System::Windows::Forms::Padding(3);
  879. this->tabPage2->Size = System::Drawing::Size(384, 134);
  880. this->tabPage2->TabIndex = 4;
  881. this->tabPage2->Text = L"Authentication";
  882. this->tabPage2->UseVisualStyleBackColor = true;
  883. //
  884. // labelAuthToken
  885. //
  886. this->labelAuthToken->AutoSize = true;
  887. this->labelAuthToken->Location = System::Drawing::Point(143, 31);
  888. this->labelAuthToken->Name = L"labelAuthToken";
  889. this->labelAuthToken->Size = System::Drawing::Size(16, 13);
  890. this->labelAuthToken->TabIndex = 7;
  891. this->labelAuthToken->Text = L"---";
  892. //
  893. // label36
  894. //
  895. this->label36->AutoSize = true;
  896. this->label36->Location = System::Drawing::Point(25, 31);
  897. this->label36->Name = L"label36";
  898. this->label36->Size = System::Drawing::Size(115, 13);
  899. this->label36->TabIndex = 6;
  900. this->label36->Text = L"Authentication Token :";
  901. //
  902. // tabPage4
  903. //
  904. this->tabPage4->Controls->Add(this->tabControl2);
  905. this->tabPage4->Location = System::Drawing::Point(4, 22);
  906. this->tabPage4->Name = L"tabPage4";
  907. this->tabPage4->Size = System::Drawing::Size(384, 134);
  908. this->tabPage4->TabIndex = 3;
  909. this->tabPage4->Text = L"Common Data";
  910. this->tabPage4->UseVisualStyleBackColor = true;
  911. //
  912. // tabControl2
  913. //
  914. this->tabControl2->Controls->Add(this->tabPage5);
  915. this->tabControl2->Controls->Add(this->tabPage6);
  916. this->tabControl2->Location = System::Drawing::Point(0, 3);
  917. this->tabControl2->Name = L"tabControl2";
  918. this->tabControl2->SelectedIndex = 0;
  919. this->tabControl2->Size = System::Drawing::Size(388, 131);
  920. this->tabControl2->TabIndex = 0;
  921. //
  922. // tabPage5
  923. //
  924. this->tabPage5->Controls->Add(this->labelError);
  925. this->tabPage5->Controls->Add(this->checkBox_NoSerial);
  926. this->tabPage5->Controls->Add(this->button_Glb_GlobalDataUpdate);
  927. this->tabPage5->Controls->Add(this->textBox_Glb_HardwareVerChange);
  928. this->tabPage5->Controls->Add(this->textBox_Glb_SoftwareVerChange);
  929. this->tabPage5->Controls->Add(this->textBox_Glb_ModelNumChange);
  930. this->tabPage5->Controls->Add(this->textBox_Glb_ManfIDChange);
  931. this->tabPage5->Controls->Add(this->textBox_Glb_SerialNumChange);
  932. this->tabPage5->Controls->Add(this->label_Glb_HardwareVer);
  933. this->tabPage5->Controls->Add(this->label_Glb_SoftwareVer);
  934. this->tabPage5->Controls->Add(this->label_Glb_ManfID);
  935. this->tabPage5->Controls->Add(this->label_Glb_ModelNum);
  936. this->tabPage5->Controls->Add(this->label_Glb_SerialNum);
  937. this->tabPage5->Location = System::Drawing::Point(4, 22);
  938. this->tabPage5->Name = L"tabPage5";
  939. this->tabPage5->Padding = System::Windows::Forms::Padding(3);
  940. this->tabPage5->Size = System::Drawing::Size(380, 105);
  941. this->tabPage5->TabIndex = 0;
  942. this->tabPage5->Text = L"Manufacturer\'s Info";
  943. this->tabPage5->UseVisualStyleBackColor = true;
  944. //
  945. // labelError
  946. //
  947. this->labelError->AutoSize = true;
  948. this->labelError->ForeColor = System::Drawing::Color::Red;
  949. this->labelError->Location = System::Drawing::Point(149, 9);
  950. this->labelError->Name = L"labelError";
  951. this->labelError->Size = System::Drawing::Size(90, 13);
  952. this->labelError->TabIndex = 61;
  953. this->labelError->Text = L"Error: Invalid data";
  954. this->labelError->Visible = false;
  955. //
  956. // checkBox_NoSerial
  957. //
  958. this->checkBox_NoSerial->AutoSize = true;
  959. this->checkBox_NoSerial->Location = System::Drawing::Point(149, 29);
  960. this->checkBox_NoSerial->Name = L"checkBox_NoSerial";
  961. this->checkBox_NoSerial->Size = System::Drawing::Size(79, 17);
  962. this->checkBox_NoSerial->TabIndex = 60;
  963. this->checkBox_NoSerial->Text = L"No Serial #";
  964. this->checkBox_NoSerial->UseVisualStyleBackColor = true;
  965. this->checkBox_NoSerial->CheckedChanged += gcnew System::EventHandler(this, &GeocacheSensor::checkBox_NoSerial_CheckedChanged);
  966. //
  967. // button_Glb_GlobalDataUpdate
  968. //
  969. this->button_Glb_GlobalDataUpdate->Location = System::Drawing::Point(247, 79);
  970. this->button_Glb_GlobalDataUpdate->Name = L"button_Glb_GlobalDataUpdate";
  971. this->button_Glb_GlobalDataUpdate->Size = System::Drawing::Size(97, 20);
  972. this->button_Glb_GlobalDataUpdate->TabIndex = 59;
  973. this->button_Glb_GlobalDataUpdate->Text = L"Update All";
  974. this->button_Glb_GlobalDataUpdate->UseVisualStyleBackColor = true;
  975. this->button_Glb_GlobalDataUpdate->Click += gcnew System::EventHandler(this, &GeocacheSensor::button_Glb_GlobalDataUpdate_Click);
  976. //
  977. // textBox_Glb_HardwareVerChange
  978. //
  979. this->textBox_Glb_HardwareVerChange->Location = System::Drawing::Point(321, 27);
  980. this->textBox_Glb_HardwareVerChange->MaxLength = 3;
  981. this->textBox_Glb_HardwareVerChange->Name = L"textBox_Glb_HardwareVerChange";
  982. this->textBox_Glb_HardwareVerChange->Size = System::Drawing::Size(29, 20);
  983. this->textBox_Glb_HardwareVerChange->TabIndex = 57;
  984. this->textBox_Glb_HardwareVerChange->Text = L"1";
  985. //
  986. // textBox_Glb_SoftwareVerChange
  987. //
  988. this->textBox_Glb_SoftwareVerChange->Location = System::Drawing::Point(321, 53);
  989. this->textBox_Glb_SoftwareVerChange->MaxLength = 3;
  990. this->textBox_Glb_SoftwareVerChange->Name = L"textBox_Glb_SoftwareVerChange";
  991. this->textBox_Glb_SoftwareVerChange->Size = System::Drawing::Size(29, 20);
  992. this->textBox_Glb_SoftwareVerChange->TabIndex = 58;
  993. this->textBox_Glb_SoftwareVerChange->Text = L"1";
  994. //
  995. // textBox_Glb_ModelNumChange
  996. //
  997. this->textBox_Glb_ModelNumChange->Location = System::Drawing::Point(94, 79);
  998. this->textBox_Glb_ModelNumChange->MaxLength = 5;
  999. this->textBox_Glb_ModelNumChange->Name = L"textBox_Glb_ModelNumChange";
  1000. this->textBox_Glb_ModelNumChange->Size = System::Drawing::Size(49, 20);
  1001. this->textBox_Glb_ModelNumChange->TabIndex = 52;
  1002. this->textBox_Glb_ModelNumChange->Text = L"33669";
  1003. //
  1004. // textBox_Glb_ManfIDChange
  1005. //
  1006. this->textBox_Glb_ManfIDChange->Location = System::Drawing::Point(94, 53);
  1007. this->textBox_Glb_ManfIDChange->MaxLength = 5;
  1008. this->textBox_Glb_ManfIDChange->Name = L"textBox_Glb_ManfIDChange";
  1009. this->textBox_Glb_ManfIDChange->Size = System::Drawing::Size(49, 20);
  1010. this->textBox_Glb_ManfIDChange->TabIndex = 51;
  1011. this->textBox_Glb_ManfIDChange->Text = L"2";
  1012. //
  1013. // textBox_Glb_SerialNumChange
  1014. //
  1015. this->textBox_Glb_SerialNumChange->Location = System::Drawing::Point(67, 27);
  1016. this->textBox_Glb_SerialNumChange->MaxLength = 10;
  1017. this->textBox_Glb_SerialNumChange->Name = L"textBox_Glb_SerialNumChange";
  1018. this->textBox_Glb_SerialNumChange->Size = System::Drawing::Size(76, 20);
  1019. this->textBox_Glb_SerialNumChange->TabIndex = 53;
  1020. this->textBox_Glb_SerialNumChange->Text = L"1234567890";
  1021. //
  1022. // label_Glb_HardwareVer
  1023. //
  1024. this->label_Glb_HardwareVer->AutoSize = true;
  1025. this->label_Glb_HardwareVer->Location = System::Drawing::Point(240, 29);
  1026. this->label_Glb_HardwareVer->Name = L"label_Glb_HardwareVer";
  1027. this->label_Glb_HardwareVer->Size = System::Drawing::Size(75, 13);
  1028. this->label_Glb_HardwareVer->TabIndex = 54;
  1029. this->label_Glb_HardwareVer->Text = L"Hardware Ver:";
  1030. //
  1031. // label_Glb_SoftwareVer
  1032. //
  1033. this->label_Glb_SoftwareVer->AutoSize = true;
  1034. this->label_Glb_SoftwareVer->Location = System::Drawing::Point(244, 56);
  1035. this->label_Glb_SoftwareVer->Name = L"label_Glb_SoftwareVer";
  1036. this->label_Glb_SoftwareVer->Size = System::Drawing::Size(71, 13);
  1037. this->label_Glb_SoftwareVer->TabIndex = 55;
  1038. this->label_Glb_SoftwareVer->Text = L"Software Ver:";
  1039. //
  1040. // label_Glb_ManfID
  1041. //
  1042. this->label_Glb_ManfID->AutoSize = true;
  1043. this->label_Glb_ManfID->Location = System::Drawing::Point(6, 56);
  1044. this->label_Glb_ManfID->Name = L"label_Glb_ManfID";
  1045. this->label_Glb_ManfID->Size = System::Drawing::Size(51, 13);
  1046. this->label_Glb_ManfID->TabIndex = 48;
  1047. this->label_Glb_ManfID->Text = L"Manf. ID:";
  1048. //
  1049. // label_Glb_ModelNum
  1050. //
  1051. this->label_Glb_ModelNum->AutoSize = true;
  1052. this->label_Glb_ModelNum->Location = System::Drawing::Point(8, 82);
  1053. this->label_Glb_ModelNum->Name = L"label_Glb_ModelNum";
  1054. this->label_Glb_ModelNum->Size = System::Drawing::Size(49, 13);
  1055. this->label_Glb_ModelNum->TabIndex = 50;
  1056. this->label_Glb_ModelNum->Text = L"Model #:";
  1057. //
  1058. // label_Glb_SerialNum
  1059. //
  1060. this->label_Glb_SerialNum->AutoSize = true;
  1061. this->label_Glb_SerialNum->Location = System::Drawing::Point(6, 30);
  1062. this->label_Glb_SerialNum->Name = L"label_Glb_SerialNum";
  1063. this->label_Glb_SerialNum->Size = System::Drawing::Size(46, 13);
  1064. this->label_Glb_SerialNum->TabIndex = 49;
  1065. this->label_Glb_SerialNum->Text = L"Serial #:";
  1066. //
  1067. // tabPage6
  1068. //
  1069. this->tabPage6->Controls->Add(this->label19);
  1070. this->tabPage6->Controls->Add(this->label20);
  1071. this->tabPage6->Controls->Add(this->comboBoxBatStatus);
  1072. this->tabPage6->Controls->Add(this->button_Bat_ElpTimeUpdate);
  1073. this->tabPage6->Controls->Add(this->numericUpDown_Bat_VoltInt);
  1074. this->tabPage6->Controls->Add(this->label_Voltage_Display);
  1075. this->tabPage6->Controls->Add(this->numericUpDown_Bat_VoltFrac);
  1076. this->tabPage6->Controls->Add(this->groupBox_Resol);
  1077. this->tabPage6->Controls->Add(this->checkBox_Bat_Voltage);
  1078. this->tabPage6->Controls->Add(this->textBox_Bat_ElpTimeChange);
  1079. this->tabPage6->Controls->Add(this->label_Bat_ElpTimeDisplay);
  1080. this->tabPage6->Controls->Add(this->label_Bat_ElpTime);
  1081. this->tabPage6->Controls->Add(this->checkBox_Bat_Status);
  1082. this->tabPage6->Location = System::Drawing::Point(4, 22);
  1083. this->tabPage6->Name = L"tabPage6";
  1084. this->tabPage6->Padding = System::Windows::Forms::Padding(3);
  1085. this->tabPage6->Size = System::Drawing::Size(380, 105);
  1086. this->tabPage6->TabIndex = 1;
  1087. this->tabPage6->Text = L"Battery Page";
  1088. this->tabPage6->UseVisualStyleBackColor = true;
  1089. //
  1090. // label19
  1091. //
  1092. this->label19->AutoSize = true;
  1093. this->label19->Location = System::Drawing::Point(65, 27);
  1094. this->label19->Name = L"label19";
  1095. this->label19->Size = System::Drawing::Size(73, 13);
  1096. this->label19->TabIndex = 79;
  1097. this->label19->Text = L"Battery Status";
  1098. //
  1099. // label20
  1100. //
  1101. this->label20->AutoSize = true;
  1102. this->label20->Location = System::Drawing::Point(13, 81);
  1103. this->label20->Name = L"label20";
  1104. this->label20->Size = System::Drawing::Size(143, 13);
  1105. this->label20->TabIndex = 78;
  1106. this->label20->Text = L"Fractional Voltage (1/256 V):";
  1107. //
  1108. // comboBoxBatStatus
  1109. //
  1110. this->comboBoxBatStatus->FormattingEnabled = true;
  1111. this->comboBoxBatStatus->Items->AddRange(gcnew cli::array< System::Object^ >(6) {L"New", L"Good", L"Ok", L"Low", L"Critical",
  1112. L"Invalid"});
  1113. this->comboBoxBatStatus->Location = System::Drawing::Point(144, 24);
  1114. this->comboBoxBatStatus->Name = L"comboBoxBatStatus";
  1115. this->comboBoxBatStatus->Size = System::Drawing::Size(60, 21);
  1116. this->comboBoxBatStatus->TabIndex = 76;
  1117. this->comboBoxBatStatus->Text = L"Ok";
  1118. this->comboBoxBatStatus->SelectedIndexChanged += gcnew System::EventHandler(this, &GeocacheSensor::comboBoxBatStatus_SelectedIndexChanged);
  1119. //
  1120. // button_Bat_ElpTimeUpdate
  1121. //
  1122. this->button_Bat_ElpTimeUpdate->Location = System::Drawing::Point(221, 77);
  1123. this->button_Bat_ElpTimeUpdate->Name = L"button_Bat_ElpTimeUpdate";
  1124. this->button_Bat_ElpTimeUpdate->Size = System::Drawing::Size(84, 20);
  1125. this->button_Bat_ElpTimeUpdate->TabIndex = 73;
  1126. this->button_Bat_ElpTimeUpdate->Text = L"Update Time";
  1127. this->button_Bat_ElpTimeUpdate->UseVisualStyleBackColor = true;
  1128. this->button_Bat_ElpTimeUpdate->Click += gcnew System::EventHandler(this, &GeocacheSensor::button_Bat_ElpTimeUpdate_Click);
  1129. //
  1130. // numericUpDown_Bat_VoltInt
  1131. //
  1132. this->numericUpDown_Bat_VoltInt->Location = System::Drawing::Point(168, 52);
  1133. this->numericUpDown_Bat_VoltInt->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {14, 0, 0, 0});
  1134. this->numericUpDown_Bat_VoltInt->Name = L"numericUpDown_Bat_VoltInt";
  1135. this->numericUpDown_Bat_VoltInt->Size = System::Drawing::Size(36, 20);
  1136. this->numericUpDown_Bat_VoltInt->TabIndex = 68;
  1137. this->numericUpDown_Bat_VoltInt->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) {3, 0, 0, 0});
  1138. this->numericUpDown_Bat_VoltInt->ValueChanged += gcnew System::EventHandler(this, &GeocacheSensor::numericUpDown_Bat_VoltInt_ValueChanged);
  1139. //
  1140. // label_Voltage_Display
  1141. //
  1142. this->label_Voltage_Display->AutoSize = true;
  1143. this->label_Voltage_Display->Location = System::Drawing::Point(186, 7);
  1144. this->label_Voltage_Display->Name = L"label_Voltage_Display";
  1145. this->label_Voltage_Display->Size = System::Drawing::Size(0, 13);
  1146. this->label_Voltage_Display->TabIndex = 75;
  1147. //
  1148. // numericUpDown_Bat_VoltFrac
  1149. //
  1150. this->numericUpDown_Bat_VoltFrac->Location = System::Drawing::Point(162, 79);
  1151. this->numericUpDown_Bat_VoltFrac->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {255, 0, 0, 0});
  1152. this->numericUpDown_Bat_VoltFrac->Name = L"numericUpDown_Bat_VoltFrac";
  1153. this->numericUpDown_Bat_VoltFrac->Size = System::Drawing::Size(42, 20);
  1154. this->numericUpDown_Bat_VoltFrac->TabIndex = 69;
  1155. this->numericUpDown_Bat_VoltFrac->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) {85, 0, 0, 0});
  1156. this->numericUpDown_Bat_VoltFrac->ValueChanged += gcnew System::EventHandler(this, &GeocacheSensor::numericUpDown_Bat_VoltFrac_ValueChanged);
  1157. //
  1158. // groupBox_Resol
  1159. //
  1160. this->groupBox_Resol->Controls->Add(this->radioButton_Bat_Elp2Units);
  1161. this->groupBox_Resol->Controls->Add(this->radioButton_Bat_Elp16Units);
  1162. this->groupBox_Resol->Enabled = false;
  1163. this->groupBox_Resol->Location = System::Drawing::Point(239, 27);
  1164. this->groupBox_Resol->Name = L"groupBox_Resol";
  1165. this->groupBox_Resol->Size = System::Drawing::Size(124, 36);
  1166. this->groupBox_Resol->TabIndex = 63;
  1167. this->groupBox_Resol->TabStop = false;
  1168. this->groupBox_Resol->Text = L"Time Resolution";
  1169. //
  1170. // radioButton_Bat_Elp2Units
  1171. //
  1172. this->radioButton_Bat_Elp2Units->AutoSize = true;
  1173. this->radioButton_Bat_Elp2Units->Checked = true;
  1174. this->radioButton_Bat_Elp2Units->Location = System::Drawing::Point(6, 15);
  1175. this->radioButton_Bat_Elp2Units->Name = L"radioButton_Bat_Elp2Units";
  1176. this->radioButton_Bat_Elp2Units->Size = System::Drawing::Size(51, 17);
  1177. this->radioButton_Bat_Elp2Units->TabIndex = 58;
  1178. this->radioButton_Bat_Elp2Units->TabStop = true;
  1179. this->radioButton_Bat_Elp2Units->Text = L"2 sec";
  1180. this->radioButton_Bat_Elp2Units->UseVisualStyleBackColor = true;
  1181. this->radioButton_Bat_Elp2Units->CheckedChanged += gcnew System::EventHandler(this, &GeocacheSensor::radioButton_Bat_Elp2Units_CheckedChanged);
  1182. //
  1183. // radioButton_Bat_Elp16Units
  1184. //
  1185. this->radioButton_Bat_Elp16Units->AutoSize = true;
  1186. this->radioButton_Bat_Elp16Units->Location = System::Drawing::Point(63, 15);
  1187. this->radioButton_Bat_Elp16Units->Name = L"radioButton_Bat_Elp16Units";
  1188. this->radioButton_Bat_Elp16Units->Size = System::Drawing::Size(57, 17);
  1189. this->radioButton_Bat_Elp16Units->TabIndex = 59;
  1190. this->radioButton_Bat_Elp16Units->Text = L"16 sec";
  1191. this->radioButton_Bat_Elp16Units->UseVisualStyleBackColor = true;
  1192. this->radioButton_Bat_Elp16Units->CheckedChanged += gcnew System::EventHandler(this, &GeocacheSensor::radioButton_Bat_Elp16Units_CheckedChanged);
  1193. //
  1194. // checkBox_Bat_Voltage
  1195. //
  1196. this->checkBox_Bat_Voltage->AutoSize = true;
  1197. this->checkBox_Bat_Voltage->Checked = true;
  1198. this->checkBox_Bat_Voltage->CheckState = System::Windows::Forms::CheckState::Checked;
  1199. this->checkBox_Bat_Voltage->Location = System::Drawing::Point(6, 53);
  1200. this->checkBox_Bat_Voltage->Name = L"checkBox_Bat_Voltage";
  1201. this->checkBox_Bat_Voltage->Size = System::Drawing::Size(153, 17);
  1202. this->checkBox_Bat_Voltage->TabIndex = 70;
  1203. this->checkBox_Bat_Voltage->Text = L"Enable Battery Voltage (V):";
  1204. this->checkBox_Bat_Voltage->UseVisualStyleBackColor = true;
  1205. this->checkBox_Bat_Voltage->CheckedChanged += gcnew System::EventHandler(this, &GeocacheSensor::checkBox_Bat_Voltage_CheckedChanged);
  1206. //
  1207. // textBox_Bat_ElpTimeChange
  1208. //
  1209. this->textBox_Bat_ElpTimeChange->Location = System::Drawing::Point(311, 77);
  1210. this->textBox_Bat_ElpTimeChange->MaxLength = 9;
  1211. this->textBox_Bat_ElpTimeChange->Name = L"textBox_Bat_ElpTimeChange";
  1212. this->textBox_Bat_ElpTimeChange->Size = System::Drawing::Size(63, 20);
  1213. this->textBox_Bat_ElpTimeChange->TabIndex = 72;
  1214. this->textBox_Bat_ElpTimeChange->Text = L"0";
  1215. this->textBox_Bat_ElpTimeChange->TextAlign = System::Windows::Forms::HorizontalAlignment::Right;
  1216. //
  1217. // label_Bat_ElpTimeDisplay
  1218. //
  1219. this->label_Bat_ElpTimeDisplay->Enabled = false;
  1220. this->label_Bat_ElpTimeDisplay->Location = System::Drawing::Point(312, 8);
  1221. this->label_Bat_ElpTimeDisplay->Name = L"label_Bat_ElpTimeDisplay";
  1222. this->label_Bat_ElpTimeDisplay->Size = System::Drawing::Size(62, 13);
  1223. this->label_Bat_ElpTimeDisplay->TabIndex = 65;
  1224. this->label_Bat_ElpTimeDisplay->Text = L"0";
  1225. this->label_Bat_ElpTimeDisplay->TextAlign = System::Drawing::ContentAlignment::BottomRight;
  1226. //
  1227. // label_Bat_ElpTime
  1228. //
  1229. this->label_Bat_ElpTime->AutoSize = true;
  1230. this->label_Bat_ElpTime->Location = System::Drawing::Point(229, 8);
  1231. this->label_Bat_ElpTime->Name = L"label_Bat_ElpTime";
  1232. this->label_Bat_ElpTime->Size = System::Drawing::Size(88, 13);
  1233. this->label_Bat_ElpTime->TabIndex = 64;
  1234. this->label_Bat_ElpTime->Text = L"Elapsed Time (s):";
  1235. //
  1236. // checkBox_Bat_Status
  1237. //
  1238. this->checkBox_Bat_Status->AutoSize = true;
  1239. this->checkBox_Bat_Status->Checked = true;
  1240. this->checkBox_Bat_Status->CheckState = System::Windows::Forms::CheckState::Checked;
  1241. this->checkBox_Bat_Status->Location = System::Drawing::Point(3, 3);
  1242. this->checkBox_Bat_Status->Name = L"checkBox_Bat_Status";
  1243. this->checkBox_Bat_Status->Size = System::Drawing::Size(156, 17);
  1244. this->checkBox_Bat_Status->TabIndex = 67;
  1245. this->checkBox_Bat_Status->Text = L"Enable Battery Status Page";
  1246. this->checkBox_Bat_Status->UseVisualStyleBackColor = true;
  1247. this->checkBox_Bat_Status->CheckedChanged += gcnew System::EventHandler(this, &GeocacheSensor::checkBox_Bat_Status_CheckedChanged);
  1248. //
  1249. // panel_Display
  1250. //
  1251. this->panel_Display->BorderStyle = System::Windows::Forms::BorderStyle::Fixed3D;
  1252. this->panel_Display->Controls->Add(this->labelHint);
  1253. this->panel_Display->Controls->Add(this->label21);
  1254. this->panel_Display->Controls->Add(this->labelPIN);
  1255. this->panel_Display->Controls->Add(this->label17);
  1256. this->panel_Display->Controls->Add(this->labelID);
  1257. this->panel_Display->Controls->Add(this->label16);
  1258. this->panel_Display->Controls->Add(this->labelNumVisits);
  1259. this->panel_Display->Controls->Add(this->label5);
  1260. this->panel_Display->Controls->Add(this->labelLon);
  1261. this->panel_Display->Controls->Add(this->label15);
  1262. this->panel_Display->Controls->Add(this->labelLat);
  1263. this->panel_Display->Controls->Add(this->label14);
  1264. this->panel_Display->Controls->Add(this->labelTimestamp);
  1265. this->panel_Display->Controls->Add(this->label4);
  1266. this->panel_Display->Controls->Add(this->label3);
  1267. this->panel_Display->Location = System::Drawing::Point(58, 188);
  1268. this->panel_Display->Name = L"panel_Display";
  1269. this->panel_Display->Size = System::Drawing::Size(200, 90);
  1270. this->panel_Display->TabIndex = 1;
  1271. //
  1272. // labelHint
  1273. //
  1274. this->labelHint->AutoSize = true;
  1275. this->labelHint->Location = System::Drawing::Point(36, 73);
  1276. this->labelHint->Name = L"labelHint";
  1277. this->labelHint->Size = System::Drawing::Size(16, 13);
  1278. this->labelHint->TabIndex = 16;
  1279. this->labelHint->Text = L"---";
  1280. //
  1281. // label21
  1282. //
  1283. this->label21->AutoSize = true;
  1284. this->label21->Location = System::Drawing::Point(3, 73);
  1285. this->label21->Name = L"label21";
  1286. this->label21->Size = System::Drawing::Size(35, 13);
  1287. this->label21->TabIndex = 15;
  1288. this->label21->Text = L"Hint : ";
  1289. //
  1290. // labelPIN
  1291. //
  1292. this->labelPIN->AutoSize = true;
  1293. this->labelPIN->Location = System::Drawing::Point(36, 28);
  1294. this->labelPIN->Name = L"labelPIN";
  1295. this->labelPIN->Size = System::Drawing::Size(16, 13);
  1296. this->labelPIN->TabIndex = 14;
  1297. this->labelPIN->Text = L"---";
  1298. //
  1299. // label17
  1300. //
  1301. this->label17->AutoSize = true;
  1302. this->label17->Location = System::Drawing::Point(3, 28);
  1303. this->label17->Name = L"label17";
  1304. this->label17->Size = System::Drawing::Size(34, 13);
  1305. this->label17->TabIndex = 13;
  1306. this->label17->Text = L"PIN : ";
  1307. //
  1308. // labelID
  1309. //
  1310. this->labelID->AutoSize = true;
  1311. this->labelID->Location = System::Drawing::Point(36, 15);
  1312. this->labelID->Name = L"labelID";
  1313. this->labelID->Size = System::Drawing::Size(16, 13);
  1314. this->labelID->TabIndex = 12;
  1315. this->labelID->Text = L"---";
  1316. //
  1317. // label16
  1318. //
  1319. this->label16->AutoSize = true;
  1320. this->label16->Location = System::Drawing::Point(3, 15);
  1321. this->label16->Name = L"label16";
  1322. this->label16->Size = System::Drawing::Size(27, 13);
  1323. this->label16->TabIndex = 12;
  1324. this->label16->Text = L"ID : ";
  1325. //
  1326. // labelNumVisits
  1327. //
  1328. this->labelNumVisits->AutoSize = true;
  1329. this->labelNumVisits->Location = System::Drawing::Point(64, 43);
  1330. this->labelNumVisits->Name = L"labelNumVisits";
  1331. this->labelNumVisits->Size = System::Drawing::Size(16, 13);
  1332. this->labelNumVisits->TabIndex = 11;
  1333. this->labelNumVisits->Text = L"---";
  1334. //
  1335. // label5
  1336. //
  1337. this->label5->AutoSize = true;
  1338. this->label5->Location = System::Drawing::Point(3, 43);
  1339. this->label5->Name = L"label5";
  1340. this->label5->Size = System::Drawing::Size(62, 13);
  1341. this->label5->TabIndex = 2;
  1342. this->label5->Text = L"# of Visits : ";
  1343. //
  1344. // labelLon
  1345. //
  1346. this->labelLon->AutoSize = true;
  1347. this->labelLon->Location = System::Drawing::Point(142, 39);
  1348. this->labelLon->Name = L"labelLon";
  1349. this->labelLon->Size = System::Drawing::Size(16, 13);
  1350. this->labelLon->TabIndex = 10;
  1351. this->labelLon->Text = L"---";
  1352. //
  1353. // label15
  1354. //
  1355. this->label15->AutoSize = true;
  1356. this->label15->Location = System::Drawing::Point(111, 39);
  1357. this->label15->Name = L"label15";
  1358. this->label15->Size = System::Drawing::Size(31, 13);
  1359. this->label15->TabIndex = 9;
  1360. this->label15->Text = L"Lon :";
  1361. //
  1362. // labelLat
  1363. //
  1364. this->labelLat->AutoSize = true;
  1365. this->labelLat->Location = System::Drawing::Point(142, 26);
  1366. this->labelLat->Name = L"labelLat";
  1367. this->labelLat->Size = System::Drawing::Size(16, 13);
  1368. this->labelLat->TabIndex = 8;
  1369. this->labelLat->Text = L"---";
  1370. //
  1371. // label14
  1372. //
  1373. this->label14->AutoSize = true;
  1374. this->label14->Location = System::Drawing::Point(111, 26);
  1375. this->label14->Name = L"label14";
  1376. this->label14->Size = System::Drawing::Size(28, 13);
  1377. this->label14->TabIndex = 7;
  1378. this->label14->Text = L"Lat :";
  1379. //
  1380. // labelTimestamp
  1381. //
  1382. this->labelTimestamp->AutoSize = true;
  1383. this->labelTimestamp->Location = System::Drawing::Point(36, 58);
  1384. this->labelTimestamp->Name = L"labelTimestamp";
  1385. this->labelTimestamp->Size = System::Drawing::Size(16, 13);
  1386. this->labelTimestamp->TabIndex = 4;
  1387. this->labelTimestamp->Text = L"---";
  1388. //
  1389. // label4
  1390. //
  1391. this->label4->AutoSize = true;
  1392. this->label4->Location = System::Drawing::Point(3, 58);
  1393. this->label4->Name = L"label4";
  1394. this->label4->Size = System::Drawing::Size(39, 13);
  1395. this->label4->TabIndex = 1;
  1396. this->label4->Text = L"Time : ";
  1397. //
  1398. // label3
  1399. //
  1400. this->label3->AutoSize = true;
  1401. this->label3->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 8.25F, System::Drawing::FontStyle::Underline, System::Drawing::GraphicsUnit::Point,
  1402. static_cast<System::Byte>(0)));
  1403. this->label3->Location = System::Drawing::Point(3, 0);
  1404. this->label3->Name = L"label3";
  1405. this->label3->Size = System::Drawing::Size(145, 13);
  1406. this->label3->TabIndex = 0;
  1407. this->label3->Text = L"Current Geocache Contents :";
  1408. //
  1409. // label28
  1410. //
  1411. this->label28->AutoSize = true;
  1412. this->label28->Location = System::Drawing::Point(3, 58);
  1413. this->label28->Name = L"label28";
  1414. this->label28->Size = System::Drawing::Size(70, 13);
  1415. this->label28->TabIndex = 6;
  1416. this->label28->Text = L"Day of Week";
  1417. //
  1418. // label29
  1419. //
  1420. this->label29->AutoSize = true;
  1421. this->label29->Location = System::Drawing::Point(166, 34);
  1422. this->label29->Name = L"label29";
  1423. this->label29->Size = System::Drawing::Size(26, 13);
  1424. this->label29->TabIndex = 5;
  1425. this->label29->Text = L"Day";
  1426. //
  1427. // label30
  1428. //
  1429. this->label30->AutoSize = true;
  1430. this->label30->Location = System::Drawing::Point(199, 40);
  1431. this->label30->Name = L"label30";
  1432. this->label30->Size = System::Drawing::Size(37, 13);
  1433. this->label30->TabIndex = 4;
  1434. this->label30->Text = L"Month";
  1435. //
  1436. // label31
  1437. //
  1438. this->label31->AutoSize = true;
  1439. this->label31->Location = System::Drawing::Point(271, 40);
  1440. this->label31->Name = L"label31";
  1441. this->label31->Size = System::Drawing::Size(29, 13);
  1442. this->label31->TabIndex = 3;
  1443. this->label31->Text = L"Year";
  1444. //
  1445. // label32
  1446. //
  1447. this->label32->AutoSize = true;
  1448. this->label32->Location = System::Drawing::Point(3, 21);
  1449. this->label32->Name = L"label32";
  1450. this->label32->Size = System::Drawing::Size(35, 13);
  1451. this->label32->TabIndex = 2;
  1452. this->label32->Text = L"Hours";
  1453. //
  1454. // label33
  1455. //
  1456. this->label33->AutoSize = true;
  1457. this->label33->Location = System::Drawing::Point(74, 21);
  1458. this->label33->Name = L"label33";
  1459. this->label33->Size = System::Drawing::Size(44, 13);
  1460. this->label33->TabIndex = 1;
  1461. this->label33->Text = L"Minutes";
  1462. //
  1463. // label34
  1464. //
  1465. this->label34->AutoSize = true;
  1466. this->label34->Location = System::Drawing::Point(213, 5);
  1467. this->label34->Name = L"label34";
  1468. this->label34->Size = System::Drawing::Size(49, 13);
  1469. this->label34->TabIndex = 0;
  1470. this->label34->Text = L"Seconds";
  1471. //
  1472. // GeocacheSensor
  1473. //
  1474. this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);
  1475. this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
  1476. this->ClientSize = System::Drawing::Size(794, 351);
  1477. this->Controls->Add(this->panel_Display);
  1478. this->Controls->Add(this->panel_Settings);
  1479. this->Name = L"GeocacheSensor";
  1480. this->Text = L"Geocache Sensor";
  1481. this->panel_Settings->ResumeLayout(false);
  1482. this->tabControl1->ResumeLayout(false);
  1483. this->tabPage1->ResumeLayout(false);
  1484. this->groupBox2->ResumeLayout(false);
  1485. this->groupBox2->PerformLayout();
  1486. this->groupBox1->ResumeLayout(false);
  1487. this->groupBox1->PerformLayout();
  1488. this->tabPage3->ResumeLayout(false);
  1489. this->tabControl3->ResumeLayout(false);
  1490. this->tabPage10->ResumeLayout(false);
  1491. this->tabPage11->ResumeLayout(false);
  1492. this->groupBox3->ResumeLayout(false);
  1493. this->groupBox3->PerformLayout();
  1494. (cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->numericUpDownLatitude))->EndInit();
  1495. this->tabPage12->ResumeLayout(false);
  1496. this->groupBox4->ResumeLayout(false);
  1497. this->groupBox4->PerformLayout();
  1498. (cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->numericUpDownLongitude))->EndInit();
  1499. this->tabPage13->ResumeLayout(false);
  1500. this->groupBox5->ResumeLayout(false);
  1501. this->groupBox5->PerformLayout();
  1502. this->tabPage14->ResumeLayout(false);
  1503. this->groupBox6->ResumeLayout(false);
  1504. this->groupBox6->PerformLayout();
  1505. (cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->numericUpDownMinutes))->EndInit();
  1506. (cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->numericUpDownNumVisits))->EndInit();
  1507. (cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->numericUpDownMonth))->EndInit();
  1508. (cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->numericUpDownSeconds))->EndInit();
  1509. (cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->numericUpDownDay))->EndInit();
  1510. (cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->numericUpDownYear))->EndInit();
  1511. (cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->numericUpDownHours))->EndInit();
  1512. this->tabPage2->ResumeLayout(false);
  1513. this->tabPage2->PerformLayout();
  1514. this->tabPage4->ResumeLayout(false);
  1515. this->tabControl2->ResumeLayout(false);
  1516. this->tabPage5->ResumeLayout(false);
  1517. this->tabPage5->PerformLayout();
  1518. this->tabPage6->ResumeLayout(false);
  1519. this->tabPage6->PerformLayout();
  1520. (cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->numericUpDown_Bat_VoltInt))->EndInit();
  1521. (cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->numericUpDown_Bat_VoltFrac))->EndInit();
  1522. this->groupBox_Resol->ResumeLayout(false);
  1523. this->groupBox_Resol->PerformLayout();
  1524. this->panel_Display->ResumeLayout(false);
  1525. this->panel_Display->PerformLayout();
  1526. this->ResumeLayout(false);
  1527. }
  1528. #pragma endregion
  1529. };