LEVSensor.h 119 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226
  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_lev.h" // Device specific class
  12. #include "antplus_common.h" // Include common pages (example usage on SDM and Bike Power)
  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 LEVSensor : public System::Windows::Forms::Form, public ISimBase{
  22. public:
  23. // The constructor may include the following parameters:
  24. // System::Timers::Timer^ channelTimer: Timer handle, if using a timer (not required in most cases, since getTimerInterval gets called after onTimerTock on each tock)
  25. // dRequestAckMsg^ channelAckMsg: Handle to delegate function to send acknowledged messages (only needed if the device needs to send acknowledged messages)
  26. // These parameters may or may not be included in the constructor, as needed
  27. LEVSensor(System::Timers::Timer^ channelTimer, dRequestAckMsg^ channelAckMsg){
  28. InitializeComponent();
  29. LEVData = gcnew LEV();
  30. commonDataSensor = gcnew CommonData();
  31. commonDataDisplay = gcnew CommonData();
  32. requestAckMsg = channelAckMsg;
  33. timerHandle = channelTimer;
  34. InitializeSim();;
  35. }
  36. ~LEVSensor(){
  37. this->panel_Display->Controls->Clear();
  38. this->panel_Settings->Controls->Clear();
  39. delete this->panel_Display;
  40. delete this->panel_Settings;
  41. //clean up floating resources with the garbage collector
  42. GC::Collect(2);
  43. if (components)
  44. {
  45. delete components;
  46. }
  47. }
  48. // Methods required by the interface class
  49. public:
  50. virtual void onTimerTock(USHORT eventTime); // Called every simulator event. Empty function for most receivers (timer is disabled on receivers unless explicitly enabled)
  51. virtual void ANT_eventNotification(UCHAR ucEventCode_, UCHAR* pucEventBuffer_); // Channel event state machine
  52. virtual UCHAR getDeviceType(){return LEV::DEVICE_TYPE;}
  53. virtual UCHAR getTransmissionType(){return LEV::TX_TYPE;}
  54. virtual USHORT getTransmitPeriod(){return LEV::MSG_PERIOD;}
  55. virtual DOUBLE getTimerInterval(){return (double) ulTimerInterval;} // Set to any value for receivers not using the timer.
  56. virtual System::Windows::Forms::Panel^ getSimSettingsPanel(){return this->panel_Settings;}
  57. virtual System::Windows::Forms::Panel^ getSimTranslatedDisplay(){return this->panel_Display;}
  58. // Optional methods (not required by interface class)
  59. private:
  60. void InitializeSim(); // Initialize simulation
  61. void HandleTransmit(UCHAR* pucTxBuffer_); // Handles the data page transmissions
  62. void UpdateDisplay(); // Updates the UI
  63. void HandleReceive(UCHAR* pucRxBuffer_); // Handles incoming data pages
  64. //BOOL HandleRetransmit(); // Re-transmits an ACK
  65. void UpdateAssistModeState(); // Updates the Assist Mode
  66. void UpdateRegenModeState(); // Updates the Regen Mode
  67. void UpdateFrontGearState(); // Updates the front gear
  68. void UpdateRearGearState(); // Updates the rear gear
  69. void UpdateBatteryTemp(); // Updates the battery temp
  70. void UpdateMotorTemp(); // Updates the motor temp
  71. void MapAssistModes(); // Maps incoming Page 16 data to appropriate Assist Mode based on number of LEV supported modes
  72. void MapRegenModes(); // Maps incoming Page 16 data to appropriate Regen Mode based on number of LEV supported modes
  73. void CheckAssistMapping();
  74. void CheckRegenMapping();
  75. void UpdateP1Assist();
  76. void UpdateP1Regen();
  77. // Add other GUI specific functions here
  78. System::Void numericUpDwn_P5AssistModes_ValueChanged(System::Object^ sender, System::EventArgs^ e);
  79. System::Void numericUpDown_P5RegenModes_ValueChanged(System::Object^ sender, System::EventArgs^ e);
  80. System::Void comboBox_P1AssistLevel_SelectedIndexChanged(System::Object^ sender, System::EventArgs^ e);
  81. System::Void comboBox_P1RegenLevel_SelectedIndexChanged(System::Object^ sender, System::EventArgs^ e);
  82. System::Void checkBox_P1HighBeam_CheckedChanged(System::Object^ sender, System::EventArgs^ e);
  83. System::Void checkBox_P1LightOn_CheckedChanged(System::Object^ sender, System::EventArgs^ e);
  84. System::Void checkBox_P1LeftSignalOn_CheckedChanged(System::Object^ sender, System::EventArgs^ e);
  85. System::Void checkBox_P1RightSignalOn_CheckedChanged(System::Object^ sender, System::EventArgs^ e);
  86. System::Void checkBox_P1Throttle_CheckedChanged(System::Object^ sender, System::EventArgs^ e);
  87. System::Void comboBox_P1FrontGear_SelectedIndexChanged(System::Object^ sender, System::EventArgs^ e);
  88. System::Void comboBox_P1RearGear_SelectedIndexChanged(System::Object^ sender, System::EventArgs^ e);
  89. System::Void checkBox_P1GearsExist_CheckedChanged(System::Object^ sender, System::EventArgs^ e);
  90. System::Void checkBox_P1ManualGears_CheckedChanged(System::Object^ sender, System::EventArgs^ e);
  91. System::Void radioButton_CheckedChanged(System::Object^ sender, System::EventArgs^ e);
  92. System::Void numericUpDown_P1CustomError_ValueChanged(System::Object^ sender, System::EventArgs^ e);
  93. System::Void numericUpDown_P1Speed_ValueChanged(System::Object^ sender, System::EventArgs^ e);
  94. System::Void numericUpDown_P2Speed_ValueChanged(System::Object^ sender, System::EventArgs^ e);
  95. System::Void numericUpDown_P3PercentAssist_ValueChanged(System::Object^ sender, System::EventArgs^ e);
  96. System::Void button_P2UpdateDist_Click(System::Object^ sender, System::EventArgs^ e);
  97. System::Void checkBox_P1TempUnused_CheckedChanged(System::Object^ sender, System::EventArgs^ e);
  98. System::Void numericUpDown_P3Charge_ValueChanged(System::Object^ sender, System::EventArgs^ e);
  99. System::Void checkBox_P3BattEmpty_CheckedChanged(System::Object^ sender, System::EventArgs^ e);
  100. System::Void numericUpDown_P4Voltage_ValueChanged(System::Object^ sender, System::EventArgs^ e);
  101. System::Void checkBox_P4VoltUnused_CheckedChanged(System::Object^ sender, System::EventArgs^ e);
  102. System::Void numericUpDown_P2Range_ValueChanged(System::Object^ sender, System::EventArgs^ e);
  103. System::Void checkBox_P2RangeUnused_CheckedChanged(System::Object^ sender, System::EventArgs^ e);
  104. System::Void checkBox_P16Supported_CheckedChanged(System::Object^ sender, System::EventArgs^ e);
  105. System::Void button_CommonUpdate_Click(System::Object^ sender, System::EventArgs^ e);
  106. System::Void comboBox_P1BattTemp_SelectedIndexChanged(System::Object^ sender, System::EventArgs^ e);
  107. System::Void comboBox_P1MotorTemp_SelectedIndexChanged(System::Object^ sender, System::EventArgs^ e);
  108. System::Void checkBox_P1BattOverheat_CheckedChanged(System::Object^ sender, System::EventArgs^ e);
  109. System::Void checkBox_P1MotorOverheat_CheckedChanged(System::Object^ sender, System::EventArgs^ e);
  110. System::Void numericUpDown_P4ChargeCycle_ValueChanged(System::Object^ sender, System::EventArgs^ e);
  111. System::Void numericUpDown_P4FuelConsumption_ValueChanged(System::Object^ sender, System::EventArgs^ e);
  112. System::Void numericUpDown_P4DistanceOnCharge_ValueChanged(System::Object^ sender, System::EventArgs^ e);
  113. System::Void numericUpDown_P5Circum_ValueChanged(System::Object^ sender, System::EventArgs^ e);
  114. System::Void checkBox_P5WheelCircum_CheckedChanged(System::Object^ sender, System::EventArgs^ e);
  115. System::Void checkBox_P4ChargeCycleUnused_CheckedChanged(System::Object^ sender, System::EventArgs^ e);
  116. System::Void checkBox_P4FuelConsumptionUnused_CheckedChanged(System::Object^ sender, System::EventArgs^ e);
  117. System::Void checkBox_P4DistanceOnChargeUnused_CheckedChanged(System::Object^ sender, System::EventArgs^ e);
  118. System::Void checkBox_UsePage34_CheckedChanged(System::Object^ sender, System::EventArgs^ e);
  119. System::Void checkBox_NoSerial_CheckedChanged(System::Object^ sender, System::EventArgs^ e);
  120. private:
  121. dRequestAckMsg^ requestAckMsg; // Delegate handle (ACK messages, only if used)
  122. System::Timers::Timer^ timerHandle; // Timer handle (only if there is a timer)
  123. ULONG ulTimerInterval; // Timer interval between simulated events (only if there is a timer)
  124. LEV^ LEVData; // LEV class variable
  125. CommonData^ commonDataSensor; // Hold the data for the sensor (what we Tx)
  126. CommonData^ commonDataDisplay; // Hold the data for the display (what we Rx)
  127. // Simulator Variables
  128. double dbDispAcumDist; // Cumulative distance (m)
  129. BOOL bPage16Supported; // Flag for handling or ignoring incoming Page 16
  130. // make sure you are actually using these
  131. USHORT usLastEventTime; // used to help calculate distance on each event
  132. UCHAR ucMsgExpectingAck; // Message pending to be acknowledged
  133. UCHAR ucAckRetryCount; // Counts the number of retries attempted for sending an ACK message
  134. UCHAR ucMaxAckRetries; // Maximum number of times for the sensor to attempt to resend an ack message if it does not rx an ack
  135. UCHAR ucRequestPage; // the page to transmit
  136. UCHAR ucRequestCount; // the number of times to re-transmit
  137. BOOL bTxRequestFlag;
  138. BOOL bTxPage34;
  139. private: System::Windows::Forms::Panel^ panel_Settings;
  140. private: System::Windows::Forms::Panel^ panel_Display;
  141. private: System::Windows::Forms::TabPage^ tabPage_P16TravelMode;
  142. private: System::Windows::Forms::CheckBox^ checkBox_P16TravelMode;
  143. private: System::Windows::Forms::Label^ label_P16Regen;
  144. private: System::Windows::Forms::Label^ label_P16Assist;
  145. private: System::Windows::Forms::ComboBox^ comboBox_P16Assist;
  146. private: System::Windows::Forms::ComboBox^ comboBox_P16Regen;
  147. private: System::Windows::Forms::TabPage^ tabPage_P16Command;
  148. private: System::Windows::Forms::GroupBox^ groupBox_P16Gear;
  149. private: System::Windows::Forms::Label^ label_P16FrontGear;
  150. private: System::Windows::Forms::ComboBox^ comboBox_P16FrontGear;
  151. private: System::Windows::Forms::Label^ label_P16RearGear;
  152. private: System::Windows::Forms::ComboBox^ comboBox_P16RearGear;
  153. private: System::Windows::Forms::CheckBox^ checkBox_P16RightTurnOn;
  154. private: System::Windows::Forms::CheckBox^ checkBox_P16LeftTurnOn;
  155. private: System::Windows::Forms::CheckBox^ checkBox_P16HighBeamOn;
  156. private: System::Windows::Forms::CheckBox^ checkBox_P16LightOn;
  157. private: System::Windows::Forms::TabPage^ tabPage_P16ManID;
  158. private: System::Windows::Forms::Label^ label_P16ManID;
  159. private: System::Windows::Forms::NumericUpDown^ numericUpDown_P16ManID;
  160. private: System::Windows::Forms::Label^ label_StatusAssistVal;
  161. private: System::Windows::Forms::Label^ label_StatusAssist;
  162. private: System::Windows::Forms::Label^ label_StatusSpeedVal;
  163. private: System::Windows::Forms::Label^ label_StatusSpeed;
  164. private: System::Windows::Forms::Label^ label_StatusOdoVal;
  165. private: System::Windows::Forms::Label^ label_StatusOdometer;
  166. private: System::Windows::Forms::Label^ label_TxStatusBox;
  167. private: System::Windows::Forms::TabControl^ tabControl_LEV;
  168. private: System::Windows::Forms::TabPage^ tabPage_P1;
  169. private: System::Windows::Forms::TabControl^ tabControl_P1;
  170. private: System::Windows::Forms::TabPage^ tabPage_P1Mode;
  171. private: System::Windows::Forms::Label^ label_P1RegenLevel;
  172. private: System::Windows::Forms::Label^ label_P1AssistLevel;
  173. private: System::Windows::Forms::ComboBox^ comboBox_P1AssistLevel;
  174. private: System::Windows::Forms::ComboBox^ comboBox_P1RegenLevel;
  175. private: System::Windows::Forms::TabPage^ tabPage_P1State;
  176. private: System::Windows::Forms::CheckBox^ checkBox_P1RightSignalOn;
  177. private: System::Windows::Forms::CheckBox^ checkBox_P1LeftSignalOn;
  178. private: System::Windows::Forms::CheckBox^ checkBox_P1HighBeam;
  179. private: System::Windows::Forms::CheckBox^ checkBox_P1LightOn;
  180. private: System::Windows::Forms::TabPage^ tabPage_P1Gear;
  181. private: System::Windows::Forms::CheckBox^ checkBox_P1ManualGears;
  182. private: System::Windows::Forms::CheckBox^ checkBox_P1GearsExist;
  183. private: System::Windows::Forms::GroupBox^ groupBox_P1CurrentGear;
  184. private: System::Windows::Forms::Label^ label_P1FrontGear;
  185. private: System::Windows::Forms::ComboBox^ comboBox_P1FrontGear;
  186. private: System::Windows::Forms::Label^ label_P1RearGear;
  187. private: System::Windows::Forms::ComboBox^ comboBox_P1RearGear;
  188. private: System::Windows::Forms::TabPage^ tabPage_P1Error;
  189. private: System::Windows::Forms::NumericUpDown^ numericUpDown_P1CustomError;
  190. private: System::Windows::Forms::RadioButton^ radioButton_P1CustomError;
  191. private: System::Windows::Forms::RadioButton^ radioButton_P1Overheat;
  192. private: System::Windows::Forms::RadioButton^ radioButton_P1EndLife;
  193. private: System::Windows::Forms::RadioButton^ radioButton_P1TrainError;
  194. private: System::Windows::Forms::RadioButton^ radioButton_P1BatteryError;
  195. private: System::Windows::Forms::RadioButton^ radioButton_P1NoError;
  196. private: System::Windows::Forms::TabPage^ tabPage_P1Speed;
  197. private: System::Windows::Forms::Label^ label_P1Speed;
  198. private: System::Windows::Forms::NumericUpDown^ numericUpDown_P1Speed;
  199. private: System::Windows::Forms::TabPage^ tabPage_P1Temp;
  200. private: System::Windows::Forms::CheckBox^ checkBox_P1TempUnused;
  201. private: System::Windows::Forms::CheckBox^ checkBox_P1MotorOverheat;
  202. private: System::Windows::Forms::CheckBox^ checkBox_P1BattOverheat;
  203. private: System::Windows::Forms::Label^ label_P1MotorTemp;
  204. private: System::Windows::Forms::Label^ label_P1BattTemp;
  205. private: System::Windows::Forms::ComboBox^ comboBox_P1MotorTemp;
  206. private: System::Windows::Forms::ComboBox^ comboBox_P1BattTemp;
  207. private: System::Windows::Forms::TabPage^ tabPage_P2;
  208. private: System::Windows::Forms::Label^ label_P2Range;
  209. private: System::Windows::Forms::Label^ label_P2Speed;
  210. private: System::Windows::Forms::NumericUpDown^ numericUpDown_P2Speed;
  211. private: System::Windows::Forms::NumericUpDown^ numericUpDown_P2Range;
  212. private: System::Windows::Forms::CheckBox^ checkBox_P2RangeUnused;
  213. private: System::Windows::Forms::NumericUpDown^ numericUpDown_P2Distance;
  214. private: System::Windows::Forms::Label^ label_P2TotalDistance;
  215. private: System::Windows::Forms::Label^ label_P2TotDistDisplay;
  216. private: System::Windows::Forms::Button^ button_P2UpdateDist;
  217. private: System::Windows::Forms::Label^ label_P2UpdateError;
  218. private: System::Windows::Forms::TabPage^ tabPage_P3;
  219. private: System::Windows::Forms::TabControl^ tabControl_Page3;
  220. private: System::Windows::Forms::TabPage^ tabPage_P3BatterySOC;
  221. private: System::Windows::Forms::GroupBox^ groupBox_P3Charge;
  222. private: System::Windows::Forms::NumericUpDown^ numericUpDown_P3Charge;
  223. private: System::Windows::Forms::CheckBox^ checkBox_P3BattEmpty;
  224. private: System::Windows::Forms::Label^ label_P3Note2;
  225. private: System::Windows::Forms::Label^ label_P3Note1;
  226. private: System::Windows::Forms::TabPage^ tabPage_P3Assist;
  227. private: System::Windows::Forms::Label^ label_P3PercentAssist;
  228. private: System::Windows::Forms::NumericUpDown^ numericUpDown_P3PercentAssist;
  229. private: System::Windows::Forms::TabPage^ tabPage4;
  230. private: System::Windows::Forms::TabControl^ tabControl_Page45;
  231. private: System::Windows::Forms::TabPage^ tabPage_Page4;
  232. private: System::Windows::Forms::Label^ label_P4DistanceOnCharge;
  233. private: System::Windows::Forms::NumericUpDown^ numericUpDown_P4DistanceOnCharge;
  234. private: System::Windows::Forms::NumericUpDown^ numericUpDown_P4FuelConsumption;
  235. private: System::Windows::Forms::Label^ label_P4FuelConsumption;
  236. private: System::Windows::Forms::Label^ label_P4ChargeCycle;
  237. private: System::Windows::Forms::TabPage^ tabPage_Page5;
  238. private: System::Windows::Forms::NumericUpDown^ numericUpDown_P5Circum;
  239. private: System::Windows::Forms::Label^ label_P5Circum;
  240. private: System::Windows::Forms::Label^ label_P5RegenModes;
  241. private: System::Windows::Forms::Label^ label_P5AssistModes;
  242. private: System::Windows::Forms::NumericUpDown^ numericUpDown_P5RegenModes;
  243. private: System::Windows::Forms::NumericUpDown^ numericUpDwn_P5AssistModes;
  244. private: System::Windows::Forms::TabPage^ tabPage_P16;
  245. private: System::Windows::Forms::Label^ label_P16ManIDValue;
  246. private: System::Windows::Forms::Label^ label_P16ManuID;
  247. private: System::Windows::Forms::CheckBox^ checkBox_P16Supported;
  248. private: System::Windows::Forms::TabPage^ tabPage_Common1;
  249. private: System::Windows::Forms::Label^ label_Common1;
  250. private: System::Windows::Forms::Label^ label_SoftwareVer;
  251. private: System::Windows::Forms::Label^ label_HardwareVer;
  252. private: System::Windows::Forms::Button^ button_CommonUpdate;
  253. private: System::Windows::Forms::Label^ label_ErrorCommon;
  254. private: System::Windows::Forms::Label^ label_ManfID;
  255. private: System::Windows::Forms::Label^ label_SerialNum;
  256. private: System::Windows::Forms::TextBox^ textBox_SerialNum;
  257. private: System::Windows::Forms::TextBox^ textBox_SwVersion;
  258. private: System::Windows::Forms::TextBox^ textBox_HwVersion;
  259. private: System::Windows::Forms::TextBox^ textBox_ModelNum;
  260. private: System::Windows::Forms::TextBox^ textBox_MfgID;
  261. private: System::Windows::Forms::Label^ label_ModelNum;
  262. private: System::Windows::Forms::TabPage^ tabPage_Common2;
  263. private: System::Windows::Forms::GroupBox^ groupBox_P81Rx;
  264. private: System::Windows::Forms::Label^ label_Glb_SoftwareVer;
  265. private: System::Windows::Forms::Label^ label_Glb_SoftwareVerDisplay;
  266. private: System::Windows::Forms::Label^ label_Glb_SerialNumDisplay;
  267. private: System::Windows::Forms::Label^ label_Glb_SerialNum;
  268. private: System::Windows::Forms::GroupBox^ groupBox_P80Rx;
  269. private: System::Windows::Forms::Label^ label_Glb_HardwareVer;
  270. private: System::Windows::Forms::Label^ label_Glb_ModelNum;
  271. private: System::Windows::Forms::Label^ label_Glb_ManfIDDisplay;
  272. private: System::Windows::Forms::Label^ label_Glb_ModelNumDisplay;
  273. private: System::Windows::Forms::Label^ label_Glb_HardwareVerDisplay;
  274. private: System::Windows::Forms::Label^ label_Glb_ManfID;
  275. private: System::Windows::Forms::Label^ label_Common2;
  276. private: System::Windows::Forms::CheckBox^ checkBox_P1Throttle;
  277. private: System::Windows::Forms::CheckBox^ checkBox_P5WheelCircum;
  278. private: System::Windows::Forms::TabPage^ tabPage_Page4Cont;
  279. private: System::Windows::Forms::NumericUpDown^ numericUpDown_P4Voltage;
  280. private: System::Windows::Forms::CheckBox^ checkBox_P4VoltUnused;
  281. private: System::Windows::Forms::CheckBox^ checkBox_P4ChargeCycleUnused;
  282. private: System::Windows::Forms::CheckBox^ checkBox_P4FuelConsumptionUnused;
  283. private: System::Windows::Forms::CheckBox^ checkBox_P4DistanceOnChargeUnused;
  284. private: System::Windows::Forms::NumericUpDown^ numericUpDown_P4ChargeCycle;
  285. private: System::Windows::Forms::Label^ label_P5;
  286. private: System::Windows::Forms::GroupBox^ groupBox_P4Voltage;
  287. private: System::Windows::Forms::CheckBox^ checkBox_UsePage34;
  288. private: System::Windows::Forms::CheckBox^ checkBox_NoSerial;
  289. /// <summary>
  290. /// Required designer variables
  291. /// </summary>
  292. System::ComponentModel::Container ^components;
  293. #pragma region Windows Form Designer generated code
  294. /// <summary>
  295. /// Required method for Designer support - do not modify
  296. /// the contents of this method with the code editor.
  297. /// </summary>
  298. void InitializeComponent(void)
  299. {
  300. this->panel_Settings = (gcnew System::Windows::Forms::Panel());
  301. this->tabControl_LEV = (gcnew System::Windows::Forms::TabControl());
  302. this->tabPage_P1 = (gcnew System::Windows::Forms::TabPage());
  303. this->tabControl_P1 = (gcnew System::Windows::Forms::TabControl());
  304. this->tabPage_P1Mode = (gcnew System::Windows::Forms::TabPage());
  305. this->label_P1RegenLevel = (gcnew System::Windows::Forms::Label());
  306. this->label_P1AssistLevel = (gcnew System::Windows::Forms::Label());
  307. this->comboBox_P1AssistLevel = (gcnew System::Windows::Forms::ComboBox());
  308. this->comboBox_P1RegenLevel = (gcnew System::Windows::Forms::ComboBox());
  309. this->tabPage_P1State = (gcnew System::Windows::Forms::TabPage());
  310. this->checkBox_P1Throttle = (gcnew System::Windows::Forms::CheckBox());
  311. this->checkBox_P1RightSignalOn = (gcnew System::Windows::Forms::CheckBox());
  312. this->checkBox_P1LeftSignalOn = (gcnew System::Windows::Forms::CheckBox());
  313. this->checkBox_P1HighBeam = (gcnew System::Windows::Forms::CheckBox());
  314. this->checkBox_P1LightOn = (gcnew System::Windows::Forms::CheckBox());
  315. this->tabPage_P1Gear = (gcnew System::Windows::Forms::TabPage());
  316. this->checkBox_P1ManualGears = (gcnew System::Windows::Forms::CheckBox());
  317. this->checkBox_P1GearsExist = (gcnew System::Windows::Forms::CheckBox());
  318. this->groupBox_P1CurrentGear = (gcnew System::Windows::Forms::GroupBox());
  319. this->label_P1FrontGear = (gcnew System::Windows::Forms::Label());
  320. this->comboBox_P1FrontGear = (gcnew System::Windows::Forms::ComboBox());
  321. this->label_P1RearGear = (gcnew System::Windows::Forms::Label());
  322. this->comboBox_P1RearGear = (gcnew System::Windows::Forms::ComboBox());
  323. this->tabPage_P1Error = (gcnew System::Windows::Forms::TabPage());
  324. this->numericUpDown_P1CustomError = (gcnew System::Windows::Forms::NumericUpDown());
  325. this->radioButton_P1CustomError = (gcnew System::Windows::Forms::RadioButton());
  326. this->radioButton_P1Overheat = (gcnew System::Windows::Forms::RadioButton());
  327. this->radioButton_P1EndLife = (gcnew System::Windows::Forms::RadioButton());
  328. this->radioButton_P1TrainError = (gcnew System::Windows::Forms::RadioButton());
  329. this->radioButton_P1BatteryError = (gcnew System::Windows::Forms::RadioButton());
  330. this->radioButton_P1NoError = (gcnew System::Windows::Forms::RadioButton());
  331. this->tabPage_P1Speed = (gcnew System::Windows::Forms::TabPage());
  332. this->label_P1Speed = (gcnew System::Windows::Forms::Label());
  333. this->numericUpDown_P1Speed = (gcnew System::Windows::Forms::NumericUpDown());
  334. this->tabPage_P1Temp = (gcnew System::Windows::Forms::TabPage());
  335. this->checkBox_P1TempUnused = (gcnew System::Windows::Forms::CheckBox());
  336. this->checkBox_P1MotorOverheat = (gcnew System::Windows::Forms::CheckBox());
  337. this->checkBox_P1BattOverheat = (gcnew System::Windows::Forms::CheckBox());
  338. this->label_P1MotorTemp = (gcnew System::Windows::Forms::Label());
  339. this->label_P1BattTemp = (gcnew System::Windows::Forms::Label());
  340. this->comboBox_P1MotorTemp = (gcnew System::Windows::Forms::ComboBox());
  341. this->comboBox_P1BattTemp = (gcnew System::Windows::Forms::ComboBox());
  342. this->tabPage_P2 = (gcnew System::Windows::Forms::TabPage());
  343. this->checkBox_UsePage34 = (gcnew System::Windows::Forms::CheckBox());
  344. this->label_P2Range = (gcnew System::Windows::Forms::Label());
  345. this->label_P2Speed = (gcnew System::Windows::Forms::Label());
  346. this->numericUpDown_P2Speed = (gcnew System::Windows::Forms::NumericUpDown());
  347. this->numericUpDown_P2Range = (gcnew System::Windows::Forms::NumericUpDown());
  348. this->checkBox_P2RangeUnused = (gcnew System::Windows::Forms::CheckBox());
  349. this->numericUpDown_P2Distance = (gcnew System::Windows::Forms::NumericUpDown());
  350. this->label_P2TotalDistance = (gcnew System::Windows::Forms::Label());
  351. this->label_P2TotDistDisplay = (gcnew System::Windows::Forms::Label());
  352. this->button_P2UpdateDist = (gcnew System::Windows::Forms::Button());
  353. this->label_P2UpdateError = (gcnew System::Windows::Forms::Label());
  354. this->tabPage_P3 = (gcnew System::Windows::Forms::TabPage());
  355. this->tabControl_Page3 = (gcnew System::Windows::Forms::TabControl());
  356. this->tabPage_P3BatterySOC = (gcnew System::Windows::Forms::TabPage());
  357. this->groupBox_P3Charge = (gcnew System::Windows::Forms::GroupBox());
  358. this->numericUpDown_P3Charge = (gcnew System::Windows::Forms::NumericUpDown());
  359. this->checkBox_P3BattEmpty = (gcnew System::Windows::Forms::CheckBox());
  360. this->label_P3Note2 = (gcnew System::Windows::Forms::Label());
  361. this->label_P3Note1 = (gcnew System::Windows::Forms::Label());
  362. this->tabPage_P3Assist = (gcnew System::Windows::Forms::TabPage());
  363. this->label_P3PercentAssist = (gcnew System::Windows::Forms::Label());
  364. this->numericUpDown_P3PercentAssist = (gcnew System::Windows::Forms::NumericUpDown());
  365. this->tabPage4 = (gcnew System::Windows::Forms::TabPage());
  366. this->tabControl_Page45 = (gcnew System::Windows::Forms::TabControl());
  367. this->tabPage_Page4 = (gcnew System::Windows::Forms::TabPage());
  368. this->numericUpDown_P4ChargeCycle = (gcnew System::Windows::Forms::NumericUpDown());
  369. this->checkBox_P4DistanceOnChargeUnused = (gcnew System::Windows::Forms::CheckBox());
  370. this->checkBox_P4FuelConsumptionUnused = (gcnew System::Windows::Forms::CheckBox());
  371. this->checkBox_P4ChargeCycleUnused = (gcnew System::Windows::Forms::CheckBox());
  372. this->label_P4DistanceOnCharge = (gcnew System::Windows::Forms::Label());
  373. this->numericUpDown_P4DistanceOnCharge = (gcnew System::Windows::Forms::NumericUpDown());
  374. this->numericUpDown_P4FuelConsumption = (gcnew System::Windows::Forms::NumericUpDown());
  375. this->label_P4FuelConsumption = (gcnew System::Windows::Forms::Label());
  376. this->label_P4ChargeCycle = (gcnew System::Windows::Forms::Label());
  377. this->tabPage_Page4Cont = (gcnew System::Windows::Forms::TabPage());
  378. this->groupBox_P4Voltage = (gcnew System::Windows::Forms::GroupBox());
  379. this->numericUpDown_P4Voltage = (gcnew System::Windows::Forms::NumericUpDown());
  380. this->checkBox_P4VoltUnused = (gcnew System::Windows::Forms::CheckBox());
  381. this->tabPage_Page5 = (gcnew System::Windows::Forms::TabPage());
  382. this->label_P5 = (gcnew System::Windows::Forms::Label());
  383. this->checkBox_P5WheelCircum = (gcnew System::Windows::Forms::CheckBox());
  384. this->numericUpDown_P5Circum = (gcnew System::Windows::Forms::NumericUpDown());
  385. this->label_P5Circum = (gcnew System::Windows::Forms::Label());
  386. this->label_P5RegenModes = (gcnew System::Windows::Forms::Label());
  387. this->label_P5AssistModes = (gcnew System::Windows::Forms::Label());
  388. this->numericUpDown_P5RegenModes = (gcnew System::Windows::Forms::NumericUpDown());
  389. this->numericUpDwn_P5AssistModes = (gcnew System::Windows::Forms::NumericUpDown());
  390. this->tabPage_P16 = (gcnew System::Windows::Forms::TabPage());
  391. this->label_P16ManIDValue = (gcnew System::Windows::Forms::Label());
  392. this->label_P16ManuID = (gcnew System::Windows::Forms::Label());
  393. this->checkBox_P16Supported = (gcnew System::Windows::Forms::CheckBox());
  394. this->tabPage_Common1 = (gcnew System::Windows::Forms::TabPage());
  395. this->checkBox_NoSerial = (gcnew System::Windows::Forms::CheckBox());
  396. this->label_Common1 = (gcnew System::Windows::Forms::Label());
  397. this->label_SoftwareVer = (gcnew System::Windows::Forms::Label());
  398. this->label_HardwareVer = (gcnew System::Windows::Forms::Label());
  399. this->button_CommonUpdate = (gcnew System::Windows::Forms::Button());
  400. this->label_ErrorCommon = (gcnew System::Windows::Forms::Label());
  401. this->label_ManfID = (gcnew System::Windows::Forms::Label());
  402. this->label_SerialNum = (gcnew System::Windows::Forms::Label());
  403. this->textBox_SerialNum = (gcnew System::Windows::Forms::TextBox());
  404. this->textBox_SwVersion = (gcnew System::Windows::Forms::TextBox());
  405. this->textBox_HwVersion = (gcnew System::Windows::Forms::TextBox());
  406. this->textBox_ModelNum = (gcnew System::Windows::Forms::TextBox());
  407. this->textBox_MfgID = (gcnew System::Windows::Forms::TextBox());
  408. this->label_ModelNum = (gcnew System::Windows::Forms::Label());
  409. this->tabPage_Common2 = (gcnew System::Windows::Forms::TabPage());
  410. this->groupBox_P81Rx = (gcnew System::Windows::Forms::GroupBox());
  411. this->label_Glb_SoftwareVer = (gcnew System::Windows::Forms::Label());
  412. this->label_Glb_SoftwareVerDisplay = (gcnew System::Windows::Forms::Label());
  413. this->label_Glb_SerialNumDisplay = (gcnew System::Windows::Forms::Label());
  414. this->label_Glb_SerialNum = (gcnew System::Windows::Forms::Label());
  415. this->groupBox_P80Rx = (gcnew System::Windows::Forms::GroupBox());
  416. this->label_Glb_HardwareVer = (gcnew System::Windows::Forms::Label());
  417. this->label_Glb_ModelNum = (gcnew System::Windows::Forms::Label());
  418. this->label_Glb_ManfIDDisplay = (gcnew System::Windows::Forms::Label());
  419. this->label_Glb_ModelNumDisplay = (gcnew System::Windows::Forms::Label());
  420. this->label_Glb_HardwareVerDisplay = (gcnew System::Windows::Forms::Label());
  421. this->label_Glb_ManfID = (gcnew System::Windows::Forms::Label());
  422. this->label_Common2 = (gcnew System::Windows::Forms::Label());
  423. this->panel_Display = (gcnew System::Windows::Forms::Panel());
  424. this->label_StatusAssistVal = (gcnew System::Windows::Forms::Label());
  425. this->label_StatusAssist = (gcnew System::Windows::Forms::Label());
  426. this->label_StatusSpeedVal = (gcnew System::Windows::Forms::Label());
  427. this->label_StatusSpeed = (gcnew System::Windows::Forms::Label());
  428. this->label_StatusOdoVal = (gcnew System::Windows::Forms::Label());
  429. this->label_StatusOdometer = (gcnew System::Windows::Forms::Label());
  430. this->label_TxStatusBox = (gcnew System::Windows::Forms::Label());
  431. this->tabPage_P16TravelMode = (gcnew System::Windows::Forms::TabPage());
  432. this->checkBox_P16TravelMode = (gcnew System::Windows::Forms::CheckBox());
  433. this->label_P16Regen = (gcnew System::Windows::Forms::Label());
  434. this->label_P16Assist = (gcnew System::Windows::Forms::Label());
  435. this->comboBox_P16Assist = (gcnew System::Windows::Forms::ComboBox());
  436. this->comboBox_P16Regen = (gcnew System::Windows::Forms::ComboBox());
  437. this->tabPage_P16Command = (gcnew System::Windows::Forms::TabPage());
  438. this->groupBox_P16Gear = (gcnew System::Windows::Forms::GroupBox());
  439. this->label_P16FrontGear = (gcnew System::Windows::Forms::Label());
  440. this->comboBox_P16FrontGear = (gcnew System::Windows::Forms::ComboBox());
  441. this->label_P16RearGear = (gcnew System::Windows::Forms::Label());
  442. this->comboBox_P16RearGear = (gcnew System::Windows::Forms::ComboBox());
  443. this->checkBox_P16RightTurnOn = (gcnew System::Windows::Forms::CheckBox());
  444. this->checkBox_P16LeftTurnOn = (gcnew System::Windows::Forms::CheckBox());
  445. this->checkBox_P16HighBeamOn = (gcnew System::Windows::Forms::CheckBox());
  446. this->checkBox_P16LightOn = (gcnew System::Windows::Forms::CheckBox());
  447. this->tabPage_P16ManID = (gcnew System::Windows::Forms::TabPage());
  448. this->label_P16ManID = (gcnew System::Windows::Forms::Label());
  449. this->numericUpDown_P16ManID = (gcnew System::Windows::Forms::NumericUpDown());
  450. this->panel_Settings->SuspendLayout();
  451. this->tabControl_LEV->SuspendLayout();
  452. this->tabPage_P1->SuspendLayout();
  453. this->tabControl_P1->SuspendLayout();
  454. this->tabPage_P1Mode->SuspendLayout();
  455. this->tabPage_P1State->SuspendLayout();
  456. this->tabPage_P1Gear->SuspendLayout();
  457. this->groupBox_P1CurrentGear->SuspendLayout();
  458. this->tabPage_P1Error->SuspendLayout();
  459. (cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->numericUpDown_P1CustomError))->BeginInit();
  460. this->tabPage_P1Speed->SuspendLayout();
  461. (cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->numericUpDown_P1Speed))->BeginInit();
  462. this->tabPage_P1Temp->SuspendLayout();
  463. this->tabPage_P2->SuspendLayout();
  464. (cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->numericUpDown_P2Speed))->BeginInit();
  465. (cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->numericUpDown_P2Range))->BeginInit();
  466. (cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->numericUpDown_P2Distance))->BeginInit();
  467. this->tabPage_P3->SuspendLayout();
  468. this->tabControl_Page3->SuspendLayout();
  469. this->tabPage_P3BatterySOC->SuspendLayout();
  470. this->groupBox_P3Charge->SuspendLayout();
  471. (cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->numericUpDown_P3Charge))->BeginInit();
  472. this->tabPage_P3Assist->SuspendLayout();
  473. (cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->numericUpDown_P3PercentAssist))->BeginInit();
  474. this->tabPage4->SuspendLayout();
  475. this->tabControl_Page45->SuspendLayout();
  476. this->tabPage_Page4->SuspendLayout();
  477. (cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->numericUpDown_P4ChargeCycle))->BeginInit();
  478. (cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->numericUpDown_P4DistanceOnCharge))->BeginInit();
  479. (cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->numericUpDown_P4FuelConsumption))->BeginInit();
  480. this->tabPage_Page4Cont->SuspendLayout();
  481. this->groupBox_P4Voltage->SuspendLayout();
  482. (cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->numericUpDown_P4Voltage))->BeginInit();
  483. this->tabPage_Page5->SuspendLayout();
  484. (cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->numericUpDown_P5Circum))->BeginInit();
  485. (cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->numericUpDown_P5RegenModes))->BeginInit();
  486. (cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->numericUpDwn_P5AssistModes))->BeginInit();
  487. this->tabPage_P16->SuspendLayout();
  488. this->tabPage_Common1->SuspendLayout();
  489. this->tabPage_Common2->SuspendLayout();
  490. this->groupBox_P81Rx->SuspendLayout();
  491. this->groupBox_P80Rx->SuspendLayout();
  492. this->panel_Display->SuspendLayout();
  493. this->tabPage_P16TravelMode->SuspendLayout();
  494. this->tabPage_P16Command->SuspendLayout();
  495. this->groupBox_P16Gear->SuspendLayout();
  496. this->tabPage_P16ManID->SuspendLayout();
  497. (cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->numericUpDown_P16ManID))->BeginInit();
  498. this->SuspendLayout();
  499. //
  500. // panel_Settings
  501. //
  502. this->panel_Settings->Controls->Add(this->tabControl_LEV);
  503. this->panel_Settings->Location = System::Drawing::Point(322, 50);
  504. this->panel_Settings->Name = L"panel_Settings";
  505. this->panel_Settings->Size = System::Drawing::Size(400, 140);
  506. this->panel_Settings->TabIndex = 0;
  507. //
  508. // tabControl_LEV
  509. //
  510. this->tabControl_LEV->Controls->Add(this->tabPage_P1);
  511. this->tabControl_LEV->Controls->Add(this->tabPage_P2);
  512. this->tabControl_LEV->Controls->Add(this->tabPage_P3);
  513. this->tabControl_LEV->Controls->Add(this->tabPage4);
  514. this->tabControl_LEV->Controls->Add(this->tabPage_P16);
  515. this->tabControl_LEV->Controls->Add(this->tabPage_Common1);
  516. this->tabControl_LEV->Controls->Add(this->tabPage_Common2);
  517. this->tabControl_LEV->Location = System::Drawing::Point(0, 3);
  518. this->tabControl_LEV->Name = L"tabControl_LEV";
  519. this->tabControl_LEV->SelectedIndex = 0;
  520. this->tabControl_LEV->Size = System::Drawing::Size(397, 137);
  521. this->tabControl_LEV->TabIndex = 0;
  522. //
  523. // tabPage_P1
  524. //
  525. this->tabPage_P1->Controls->Add(this->tabControl_P1);
  526. this->tabPage_P1->Location = System::Drawing::Point(4, 22);
  527. this->tabPage_P1->Name = L"tabPage_P1";
  528. this->tabPage_P1->Padding = System::Windows::Forms::Padding(3);
  529. this->tabPage_P1->Size = System::Drawing::Size(389, 111);
  530. this->tabPage_P1->TabIndex = 1;
  531. this->tabPage_P1->Text = L"Page 1";
  532. this->tabPage_P1->UseVisualStyleBackColor = true;
  533. //
  534. // tabControl_P1
  535. //
  536. this->tabControl_P1->Controls->Add(this->tabPage_P1Mode);
  537. this->tabControl_P1->Controls->Add(this->tabPage_P1State);
  538. this->tabControl_P1->Controls->Add(this->tabPage_P1Gear);
  539. this->tabControl_P1->Controls->Add(this->tabPage_P1Error);
  540. this->tabControl_P1->Controls->Add(this->tabPage_P1Speed);
  541. this->tabControl_P1->Controls->Add(this->tabPage_P1Temp);
  542. this->tabControl_P1->Location = System::Drawing::Point(3, 5);
  543. this->tabControl_P1->Name = L"tabControl_P1";
  544. this->tabControl_P1->SelectedIndex = 0;
  545. this->tabControl_P1->Size = System::Drawing::Size(383, 103);
  546. this->tabControl_P1->TabIndex = 0;
  547. //
  548. // tabPage_P1Mode
  549. //
  550. this->tabPage_P1Mode->Controls->Add(this->label_P1RegenLevel);
  551. this->tabPage_P1Mode->Controls->Add(this->label_P1AssistLevel);
  552. this->tabPage_P1Mode->Controls->Add(this->comboBox_P1AssistLevel);
  553. this->tabPage_P1Mode->Controls->Add(this->comboBox_P1RegenLevel);
  554. this->tabPage_P1Mode->Location = System::Drawing::Point(4, 22);
  555. this->tabPage_P1Mode->Name = L"tabPage_P1Mode";
  556. this->tabPage_P1Mode->Padding = System::Windows::Forms::Padding(3);
  557. this->tabPage_P1Mode->Size = System::Drawing::Size(375, 77);
  558. this->tabPage_P1Mode->TabIndex = 0;
  559. this->tabPage_P1Mode->Text = L"Travel Mode";
  560. this->tabPage_P1Mode->UseVisualStyleBackColor = true;
  561. //
  562. // label_P1RegenLevel
  563. //
  564. this->label_P1RegenLevel->AutoSize = true;
  565. this->label_P1RegenLevel->Location = System::Drawing::Point(196, 19);
  566. this->label_P1RegenLevel->Name = L"label_P1RegenLevel";
  567. this->label_P1RegenLevel->Size = System::Drawing::Size(108, 13);
  568. this->label_P1RegenLevel->TabIndex = 26;
  569. this->label_P1RegenLevel->Text = L"Current Regen Level:";
  570. //
  571. // label_P1AssistLevel
  572. //
  573. this->label_P1AssistLevel->AutoSize = true;
  574. this->label_P1AssistLevel->Location = System::Drawing::Point(65, 19);
  575. this->label_P1AssistLevel->Name = L"label_P1AssistLevel";
  576. this->label_P1AssistLevel->Size = System::Drawing::Size(103, 13);
  577. this->label_P1AssistLevel->TabIndex = 25;
  578. this->label_P1AssistLevel->Text = L"Current Assist Level:";
  579. //
  580. // comboBox_P1AssistLevel
  581. //
  582. this->comboBox_P1AssistLevel->FormattingEnabled = true;
  583. this->comboBox_P1AssistLevel->Items->AddRange(gcnew cli::array< System::Object^ >(8) {L"Assist Off", L"Assist 1", L"Assist 2",
  584. L"Assist 3", L"Assist 4", L"Assist 5", L"Assist 6", L"Assist 7"});
  585. this->comboBox_P1AssistLevel->Location = System::Drawing::Point(68, 35);
  586. this->comboBox_P1AssistLevel->Name = L"comboBox_P1AssistLevel";
  587. this->comboBox_P1AssistLevel->Size = System::Drawing::Size(110, 21);
  588. this->comboBox_P1AssistLevel->TabIndex = 24;
  589. this->comboBox_P1AssistLevel->Text = L"Assist Off";
  590. this->comboBox_P1AssistLevel->SelectedIndexChanged += gcnew System::EventHandler(this, &LEVSensor::comboBox_P1AssistLevel_SelectedIndexChanged);
  591. //
  592. // comboBox_P1RegenLevel
  593. //
  594. this->comboBox_P1RegenLevel->FormattingEnabled = true;
  595. this->comboBox_P1RegenLevel->Items->AddRange(gcnew cli::array< System::Object^ >(8) {L"Regenerative Off", L"Regenerative 1",
  596. L"Regenerative 2", L"Regenerative 3", L"Regenerative 4", L"Regenerative 5", L"Regenerative 6", L"Regenerative 7"});
  597. this->comboBox_P1RegenLevel->Location = System::Drawing::Point(199, 35);
  598. this->comboBox_P1RegenLevel->Name = L"comboBox_P1RegenLevel";
  599. this->comboBox_P1RegenLevel->Size = System::Drawing::Size(110, 21);
  600. this->comboBox_P1RegenLevel->TabIndex = 23;
  601. this->comboBox_P1RegenLevel->Text = L"Regenerative Off";
  602. this->comboBox_P1RegenLevel->SelectedIndexChanged += gcnew System::EventHandler(this, &LEVSensor::comboBox_P1RegenLevel_SelectedIndexChanged);
  603. //
  604. // tabPage_P1State
  605. //
  606. this->tabPage_P1State->Controls->Add(this->checkBox_P1Throttle);
  607. this->tabPage_P1State->Controls->Add(this->checkBox_P1RightSignalOn);
  608. this->tabPage_P1State->Controls->Add(this->checkBox_P1LeftSignalOn);
  609. this->tabPage_P1State->Controls->Add(this->checkBox_P1HighBeam);
  610. this->tabPage_P1State->Controls->Add(this->checkBox_P1LightOn);
  611. this->tabPage_P1State->Location = System::Drawing::Point(4, 22);
  612. this->tabPage_P1State->Name = L"tabPage_P1State";
  613. this->tabPage_P1State->Padding = System::Windows::Forms::Padding(3);
  614. this->tabPage_P1State->Size = System::Drawing::Size(375, 77);
  615. this->tabPage_P1State->TabIndex = 1;
  616. this->tabPage_P1State->Text = L"System State";
  617. this->tabPage_P1State->UseVisualStyleBackColor = true;
  618. //
  619. // checkBox_P1Throttle
  620. //
  621. this->checkBox_P1Throttle->AutoSize = true;
  622. this->checkBox_P1Throttle->Location = System::Drawing::Point(76, 54);
  623. this->checkBox_P1Throttle->Name = L"checkBox_P1Throttle";
  624. this->checkBox_P1Throttle->Size = System::Drawing::Size(117, 17);
  625. this->checkBox_P1Throttle->TabIndex = 31;
  626. this->checkBox_P1Throttle->Text = L"Manual Throttle On";
  627. this->checkBox_P1Throttle->UseVisualStyleBackColor = true;
  628. this->checkBox_P1Throttle->CheckedChanged += gcnew System::EventHandler(this, &LEVSensor::checkBox_P1Throttle_CheckedChanged);
  629. //
  630. // checkBox_P1RightSignalOn
  631. //
  632. this->checkBox_P1RightSignalOn->AutoSize = true;
  633. this->checkBox_P1RightSignalOn->Location = System::Drawing::Point(174, 32);
  634. this->checkBox_P1RightSignalOn->Name = L"checkBox_P1RightSignalOn";
  635. this->checkBox_P1RightSignalOn->Size = System::Drawing::Size(125, 17);
  636. this->checkBox_P1RightSignalOn->TabIndex = 30;
  637. this->checkBox_P1RightSignalOn->Text = L"Right Turn Signal On";
  638. this->checkBox_P1RightSignalOn->UseVisualStyleBackColor = true;
  639. this->checkBox_P1RightSignalOn->CheckedChanged += gcnew System::EventHandler(this, &LEVSensor::checkBox_P1RightSignalOn_CheckedChanged);
  640. //
  641. // checkBox_P1LeftSignalOn
  642. //
  643. this->checkBox_P1LeftSignalOn->AutoSize = true;
  644. this->checkBox_P1LeftSignalOn->Location = System::Drawing::Point(174, 9);
  645. this->checkBox_P1LeftSignalOn->Name = L"checkBox_P1LeftSignalOn";
  646. this->checkBox_P1LeftSignalOn->Size = System::Drawing::Size(118, 17);
  647. this->checkBox_P1LeftSignalOn->TabIndex = 29;
  648. this->checkBox_P1LeftSignalOn->Text = L"Left Turn Signal On";
  649. this->checkBox_P1LeftSignalOn->UseVisualStyleBackColor = true;
  650. this->checkBox_P1LeftSignalOn->CheckedChanged += gcnew System::EventHandler(this, &LEVSensor::checkBox_P1LeftSignalOn_CheckedChanged);
  651. //
  652. // checkBox_P1HighBeam
  653. //
  654. this->checkBox_P1HighBeam->AutoSize = true;
  655. this->checkBox_P1HighBeam->Location = System::Drawing::Point(76, 9);
  656. this->checkBox_P1HighBeam->Name = L"checkBox_P1HighBeam";
  657. this->checkBox_P1HighBeam->Size = System::Drawing::Size(95, 17);
  658. this->checkBox_P1HighBeam->TabIndex = 28;
  659. this->checkBox_P1HighBeam->Text = L"High Beam On";
  660. this->checkBox_P1HighBeam->UseVisualStyleBackColor = true;
  661. this->checkBox_P1HighBeam->CheckedChanged += gcnew System::EventHandler(this, &LEVSensor::checkBox_P1HighBeam_CheckedChanged);
  662. //
  663. // checkBox_P1LightOn
  664. //
  665. this->checkBox_P1LightOn->AutoSize = true;
  666. this->checkBox_P1LightOn->Location = System::Drawing::Point(76, 32);
  667. this->checkBox_P1LightOn->Name = L"checkBox_P1LightOn";
  668. this->checkBox_P1LightOn->Size = System::Drawing::Size(66, 17);
  669. this->checkBox_P1LightOn->TabIndex = 27;
  670. this->checkBox_P1LightOn->Text = L"Light On";
  671. this->checkBox_P1LightOn->UseVisualStyleBackColor = true;
  672. this->checkBox_P1LightOn->CheckedChanged += gcnew System::EventHandler(this, &LEVSensor::checkBox_P1LightOn_CheckedChanged);
  673. //
  674. // tabPage_P1Gear
  675. //
  676. this->tabPage_P1Gear->Controls->Add(this->checkBox_P1ManualGears);
  677. this->tabPage_P1Gear->Controls->Add(this->checkBox_P1GearsExist);
  678. this->tabPage_P1Gear->Controls->Add(this->groupBox_P1CurrentGear);
  679. this->tabPage_P1Gear->Location = System::Drawing::Point(4, 22);
  680. this->tabPage_P1Gear->Name = L"tabPage_P1Gear";
  681. this->tabPage_P1Gear->Padding = System::Windows::Forms::Padding(3);
  682. this->tabPage_P1Gear->Size = System::Drawing::Size(375, 77);
  683. this->tabPage_P1Gear->TabIndex = 2;
  684. this->tabPage_P1Gear->Text = L"Gear State";
  685. this->tabPage_P1Gear->UseVisualStyleBackColor = true;
  686. //
  687. // checkBox_P1ManualGears
  688. //
  689. this->checkBox_P1ManualGears->AutoSize = true;
  690. this->checkBox_P1ManualGears->Location = System::Drawing::Point(210, 42);
  691. this->checkBox_P1ManualGears->Name = L"checkBox_P1ManualGears";
  692. this->checkBox_P1ManualGears->Size = System::Drawing::Size(123, 17);
  693. this->checkBox_P1ManualGears->TabIndex = 30;
  694. this->checkBox_P1ManualGears->Text = L"Manual Gear Control";
  695. this->checkBox_P1ManualGears->UseVisualStyleBackColor = true;
  696. this->checkBox_P1ManualGears->CheckedChanged += gcnew System::EventHandler(this, &LEVSensor::checkBox_P1ManualGears_CheckedChanged);
  697. //
  698. // checkBox_P1GearsExist
  699. //
  700. this->checkBox_P1GearsExist->AutoSize = true;
  701. this->checkBox_P1GearsExist->Location = System::Drawing::Point(210, 18);
  702. this->checkBox_P1GearsExist->Name = L"checkBox_P1GearsExist";
  703. this->checkBox_P1GearsExist->Size = System::Drawing::Size(79, 17);
  704. this->checkBox_P1GearsExist->TabIndex = 29;
  705. this->checkBox_P1GearsExist->Text = L"Gears Exist";
  706. this->checkBox_P1GearsExist->UseVisualStyleBackColor = true;
  707. this->checkBox_P1GearsExist->CheckedChanged += gcnew System::EventHandler(this, &LEVSensor::checkBox_P1GearsExist_CheckedChanged);
  708. //
  709. // groupBox_P1CurrentGear
  710. //
  711. this->groupBox_P1CurrentGear->Controls->Add(this->label_P1FrontGear);
  712. this->groupBox_P1CurrentGear->Controls->Add(this->comboBox_P1FrontGear);
  713. this->groupBox_P1CurrentGear->Controls->Add(this->label_P1RearGear);
  714. this->groupBox_P1CurrentGear->Controls->Add(this->comboBox_P1RearGear);
  715. this->groupBox_P1CurrentGear->Location = System::Drawing::Point(42, 5);
  716. this->groupBox_P1CurrentGear->Name = L"groupBox_P1CurrentGear";
  717. this->groupBox_P1CurrentGear->Size = System::Drawing::Size(133, 67);
  718. this->groupBox_P1CurrentGear->TabIndex = 28;
  719. this->groupBox_P1CurrentGear->TabStop = false;
  720. this->groupBox_P1CurrentGear->Text = L"Current Gear";
  721. //
  722. // label_P1FrontGear
  723. //
  724. this->label_P1FrontGear->AutoSize = true;
  725. this->label_P1FrontGear->Location = System::Drawing::Point(7, 18);
  726. this->label_P1FrontGear->Name = L"label_P1FrontGear";
  727. this->label_P1FrontGear->Size = System::Drawing::Size(60, 13);
  728. this->label_P1FrontGear->TabIndex = 21;
  729. this->label_P1FrontGear->Text = L"Front Gear:";
  730. //
  731. // comboBox_P1FrontGear
  732. //
  733. this->comboBox_P1FrontGear->FormattingEnabled = true;
  734. this->comboBox_P1FrontGear->Items->AddRange(gcnew cli::array< System::Object^ >(4) {L"none", L"1", L"2", L"3"});
  735. this->comboBox_P1FrontGear->Location = System::Drawing::Point(73, 15);
  736. this->comboBox_P1FrontGear->Name = L"comboBox_P1FrontGear";
  737. this->comboBox_P1FrontGear->Size = System::Drawing::Size(47, 21);
  738. this->comboBox_P1FrontGear->TabIndex = 19;
  739. this->comboBox_P1FrontGear->Text = L"none";
  740. this->comboBox_P1FrontGear->SelectedIndexChanged += gcnew System::EventHandler(this, &LEVSensor::comboBox_P1FrontGear_SelectedIndexChanged);
  741. //
  742. // label_P1RearGear
  743. //
  744. this->label_P1RearGear->AutoSize = true;
  745. this->label_P1RearGear->Location = System::Drawing::Point(8, 43);
  746. this->label_P1RearGear->Name = L"label_P1RearGear";
  747. this->label_P1RearGear->Size = System::Drawing::Size(59, 13);
  748. this->label_P1RearGear->TabIndex = 22;
  749. this->label_P1RearGear->Text = L"Rear Gear:";
  750. //
  751. // comboBox_P1RearGear
  752. //
  753. this->comboBox_P1RearGear->FormattingEnabled = true;
  754. this->comboBox_P1RearGear->Items->AddRange(gcnew cli::array< System::Object^ >(16) {L"none", L"1", L"2", L"3", L"4", L"5",
  755. L"6", L"7", L"8", L"9", L"10", L"11", L"12", L"13", L"14", L"15"});
  756. this->comboBox_P1RearGear->Location = System::Drawing::Point(73, 40);
  757. this->comboBox_P1RearGear->Name = L"comboBox_P1RearGear";
  758. this->comboBox_P1RearGear->Size = System::Drawing::Size(47, 21);
  759. this->comboBox_P1RearGear->TabIndex = 20;
  760. this->comboBox_P1RearGear->Text = L"none";
  761. this->comboBox_P1RearGear->SelectedIndexChanged += gcnew System::EventHandler(this, &LEVSensor::comboBox_P1RearGear_SelectedIndexChanged);
  762. //
  763. // tabPage_P1Error
  764. //
  765. this->tabPage_P1Error->Controls->Add(this->numericUpDown_P1CustomError);
  766. this->tabPage_P1Error->Controls->Add(this->radioButton_P1CustomError);
  767. this->tabPage_P1Error->Controls->Add(this->radioButton_P1Overheat);
  768. this->tabPage_P1Error->Controls->Add(this->radioButton_P1EndLife);
  769. this->tabPage_P1Error->Controls->Add(this->radioButton_P1TrainError);
  770. this->tabPage_P1Error->Controls->Add(this->radioButton_P1BatteryError);
  771. this->tabPage_P1Error->Controls->Add(this->radioButton_P1NoError);
  772. this->tabPage_P1Error->Location = System::Drawing::Point(4, 22);
  773. this->tabPage_P1Error->Name = L"tabPage_P1Error";
  774. this->tabPage_P1Error->Padding = System::Windows::Forms::Padding(3);
  775. this->tabPage_P1Error->Size = System::Drawing::Size(375, 77);
  776. this->tabPage_P1Error->TabIndex = 3;
  777. this->tabPage_P1Error->Text = L"Error";
  778. this->tabPage_P1Error->UseVisualStyleBackColor = true;
  779. //
  780. // numericUpDown_P1CustomError
  781. //
  782. this->numericUpDown_P1CustomError->Enabled = false;
  783. this->numericUpDown_P1CustomError->Location = System::Drawing::Point(310, 51);
  784. this->numericUpDown_P1CustomError->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {255, 0, 0, 0});
  785. this->numericUpDown_P1CustomError->Minimum = System::Decimal(gcnew cli::array< System::Int32 >(4) {16, 0, 0, 0});
  786. this->numericUpDown_P1CustomError->Name = L"numericUpDown_P1CustomError";
  787. this->numericUpDown_P1CustomError->Size = System::Drawing::Size(42, 20);
  788. this->numericUpDown_P1CustomError->TabIndex = 6;
  789. this->numericUpDown_P1CustomError->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) {255, 0, 0, 0});
  790. this->numericUpDown_P1CustomError->ValueChanged += gcnew System::EventHandler(this, &LEVSensor::numericUpDown_P1CustomError_ValueChanged);
  791. //
  792. // radioButton_P1CustomError
  793. //
  794. this->radioButton_P1CustomError->AutoSize = true;
  795. this->radioButton_P1CustomError->Location = System::Drawing::Point(176, 54);
  796. this->radioButton_P1CustomError->Name = L"radioButton_P1CustomError";
  797. this->radioButton_P1CustomError->Size = System::Drawing::Size(128, 17);
  798. this->radioButton_P1CustomError->TabIndex = 5;
  799. this->radioButton_P1CustomError->Text = L"Custom Error Code --";
  800. this->radioButton_P1CustomError->UseVisualStyleBackColor = true;
  801. this->radioButton_P1CustomError->CheckedChanged += gcnew System::EventHandler(this, &LEVSensor::radioButton_CheckedChanged);
  802. //
  803. // radioButton_P1Overheat
  804. //
  805. this->radioButton_P1Overheat->AutoSize = true;
  806. this->radioButton_P1Overheat->Location = System::Drawing::Point(176, 30);
  807. this->radioButton_P1Overheat->Name = L"radioButton_P1Overheat";
  808. this->radioButton_P1Overheat->Size = System::Drawing::Size(83, 17);
  809. this->radioButton_P1Overheat->TabIndex = 4;
  810. this->radioButton_P1Overheat->Text = L"Overheating";
  811. this->radioButton_P1Overheat->UseVisualStyleBackColor = true;
  812. this->radioButton_P1Overheat->CheckedChanged += gcnew System::EventHandler(this, &LEVSensor::radioButton_CheckedChanged);
  813. //
  814. // radioButton_P1EndLife
  815. //
  816. this->radioButton_P1EndLife->AutoSize = true;
  817. this->radioButton_P1EndLife->Location = System::Drawing::Point(176, 6);
  818. this->radioButton_P1EndLife->Name = L"radioButton_P1EndLife";
  819. this->radioButton_P1EndLife->Size = System::Drawing::Size(112, 17);
  820. this->radioButton_P1EndLife->TabIndex = 3;
  821. this->radioButton_P1EndLife->Text = L"Battery End of Life";
  822. this->radioButton_P1EndLife->UseVisualStyleBackColor = true;
  823. this->radioButton_P1EndLife->CheckedChanged += gcnew System::EventHandler(this, &LEVSensor::radioButton_CheckedChanged);
  824. //
  825. // radioButton_P1TrainError
  826. //
  827. this->radioButton_P1TrainError->AutoSize = true;
  828. this->radioButton_P1TrainError->Location = System::Drawing::Point(50, 54);
  829. this->radioButton_P1TrainError->Name = L"radioButton_P1TrainError";
  830. this->radioButton_P1TrainError->Size = System::Drawing::Size(102, 17);
  831. this->radioButton_P1TrainError->TabIndex = 2;
  832. this->radioButton_P1TrainError->Text = L"Drive Train Error";
  833. this->radioButton_P1TrainError->UseVisualStyleBackColor = true;
  834. this->radioButton_P1TrainError->CheckedChanged += gcnew System::EventHandler(this, &LEVSensor::radioButton_CheckedChanged);
  835. //
  836. // radioButton_P1BatteryError
  837. //
  838. this->radioButton_P1BatteryError->AutoSize = true;
  839. this->radioButton_P1BatteryError->Location = System::Drawing::Point(50, 31);
  840. this->radioButton_P1BatteryError->Name = L"radioButton_P1BatteryError";
  841. this->radioButton_P1BatteryError->Size = System::Drawing::Size(83, 17);
  842. this->radioButton_P1BatteryError->TabIndex = 1;
  843. this->radioButton_P1BatteryError->Text = L"Battery Error";
  844. this->radioButton_P1BatteryError->UseVisualStyleBackColor = true;
  845. this->radioButton_P1BatteryError->CheckedChanged += gcnew System::EventHandler(this, &LEVSensor::radioButton_CheckedChanged);
  846. //
  847. // radioButton_P1NoError
  848. //
  849. this->radioButton_P1NoError->AutoSize = true;
  850. this->radioButton_P1NoError->Checked = true;
  851. this->radioButton_P1NoError->Location = System::Drawing::Point(50, 7);
  852. this->radioButton_P1NoError->Name = L"radioButton_P1NoError";
  853. this->radioButton_P1NoError->Size = System::Drawing::Size(64, 17);
  854. this->radioButton_P1NoError->TabIndex = 0;
  855. this->radioButton_P1NoError->TabStop = true;
  856. this->radioButton_P1NoError->Text = L"No Error";
  857. this->radioButton_P1NoError->UseVisualStyleBackColor = true;
  858. this->radioButton_P1NoError->CheckedChanged += gcnew System::EventHandler(this, &LEVSensor::radioButton_CheckedChanged);
  859. //
  860. // tabPage_P1Speed
  861. //
  862. this->tabPage_P1Speed->Controls->Add(this->label_P1Speed);
  863. this->tabPage_P1Speed->Controls->Add(this->numericUpDown_P1Speed);
  864. this->tabPage_P1Speed->Location = System::Drawing::Point(4, 22);
  865. this->tabPage_P1Speed->Name = L"tabPage_P1Speed";
  866. this->tabPage_P1Speed->Padding = System::Windows::Forms::Padding(3);
  867. this->tabPage_P1Speed->Size = System::Drawing::Size(375, 77);
  868. this->tabPage_P1Speed->TabIndex = 4;
  869. this->tabPage_P1Speed->Text = L"LEV Speed";
  870. this->tabPage_P1Speed->UseVisualStyleBackColor = true;
  871. //
  872. // label_P1Speed
  873. //
  874. this->label_P1Speed->AutoSize = true;
  875. this->label_P1Speed->Location = System::Drawing::Point(107, 30);
  876. this->label_P1Speed->Name = L"label_P1Speed";
  877. this->label_P1Speed->Size = System::Drawing::Size(98, 13);
  878. this->label_P1Speed->TabIndex = 3;
  879. this->label_P1Speed->Text = L"LEV Speed (km/h):";
  880. //
  881. // numericUpDown_P1Speed
  882. //
  883. this->numericUpDown_P1Speed->DecimalPlaces = 1;
  884. this->numericUpDown_P1Speed->Location = System::Drawing::Point(211, 28);
  885. this->numericUpDown_P1Speed->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {4095, 0, 0, 65536});
  886. this->numericUpDown_P1Speed->Minimum = System::Decimal(gcnew cli::array< System::Int32 >(4) {1, 0, 0, 65536});
  887. this->numericUpDown_P1Speed->Name = L"numericUpDown_P1Speed";
  888. this->numericUpDown_P1Speed->Size = System::Drawing::Size(65, 20);
  889. this->numericUpDown_P1Speed->TabIndex = 2;
  890. this->numericUpDown_P1Speed->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) {205, 0, 0, 65536});
  891. this->numericUpDown_P1Speed->ValueChanged += gcnew System::EventHandler(this, &LEVSensor::numericUpDown_P1Speed_ValueChanged);
  892. //
  893. // tabPage_P1Temp
  894. //
  895. this->tabPage_P1Temp->Controls->Add(this->checkBox_P1TempUnused);
  896. this->tabPage_P1Temp->Controls->Add(this->checkBox_P1MotorOverheat);
  897. this->tabPage_P1Temp->Controls->Add(this->checkBox_P1BattOverheat);
  898. this->tabPage_P1Temp->Controls->Add(this->label_P1MotorTemp);
  899. this->tabPage_P1Temp->Controls->Add(this->label_P1BattTemp);
  900. this->tabPage_P1Temp->Controls->Add(this->comboBox_P1MotorTemp);
  901. this->tabPage_P1Temp->Controls->Add(this->comboBox_P1BattTemp);
  902. this->tabPage_P1Temp->Location = System::Drawing::Point(4, 22);
  903. this->tabPage_P1Temp->Name = L"tabPage_P1Temp";
  904. this->tabPage_P1Temp->Padding = System::Windows::Forms::Padding(3);
  905. this->tabPage_P1Temp->Size = System::Drawing::Size(375, 77);
  906. this->tabPage_P1Temp->TabIndex = 5;
  907. this->tabPage_P1Temp->Text = L"Temp";
  908. this->tabPage_P1Temp->UseVisualStyleBackColor = true;
  909. //
  910. // checkBox_P1TempUnused
  911. //
  912. this->checkBox_P1TempUnused->AutoSize = true;
  913. this->checkBox_P1TempUnused->Location = System::Drawing::Point(220, 51);
  914. this->checkBox_P1TempUnused->Name = L"checkBox_P1TempUnused";
  915. this->checkBox_P1TempUnused->Size = System::Drawing::Size(63, 17);
  916. this->checkBox_P1TempUnused->TabIndex = 35;
  917. this->checkBox_P1TempUnused->Text = L"Unused";
  918. this->checkBox_P1TempUnused->UseVisualStyleBackColor = true;
  919. this->checkBox_P1TempUnused->CheckedChanged += gcnew System::EventHandler(this, &LEVSensor::checkBox_P1TempUnused_CheckedChanged);
  920. //
  921. // checkBox_P1MotorOverheat
  922. //
  923. this->checkBox_P1MotorOverheat->AutoSize = true;
  924. this->checkBox_P1MotorOverheat->Location = System::Drawing::Point(220, 32);
  925. this->checkBox_P1MotorOverheat->Name = L"checkBox_P1MotorOverheat";
  926. this->checkBox_P1MotorOverheat->Size = System::Drawing::Size(124, 17);
  927. this->checkBox_P1MotorOverheat->TabIndex = 37;
  928. this->checkBox_P1MotorOverheat->Text = L"Motor Overheat Alert";
  929. this->checkBox_P1MotorOverheat->UseVisualStyleBackColor = true;
  930. this->checkBox_P1MotorOverheat->CheckedChanged += gcnew System::EventHandler(this, &LEVSensor::checkBox_P1MotorOverheat_CheckedChanged);
  931. //
  932. // checkBox_P1BattOverheat
  933. //
  934. this->checkBox_P1BattOverheat->AutoSize = true;
  935. this->checkBox_P1BattOverheat->Location = System::Drawing::Point(220, 12);
  936. this->checkBox_P1BattOverheat->Name = L"checkBox_P1BattOverheat";
  937. this->checkBox_P1BattOverheat->Size = System::Drawing::Size(130, 17);
  938. this->checkBox_P1BattOverheat->TabIndex = 36;
  939. this->checkBox_P1BattOverheat->Text = L"Battery Overheat Alert";
  940. this->checkBox_P1BattOverheat->UseVisualStyleBackColor = true;
  941. this->checkBox_P1BattOverheat->CheckedChanged += gcnew System::EventHandler(this, &LEVSensor::checkBox_P1BattOverheat_CheckedChanged);
  942. //
  943. // label_P1MotorTemp
  944. //
  945. this->label_P1MotorTemp->AutoSize = true;
  946. this->label_P1MotorTemp->Location = System::Drawing::Point(109, 20);
  947. this->label_P1MotorTemp->Name = L"label_P1MotorTemp";
  948. this->label_P1MotorTemp->Size = System::Drawing::Size(67, 13);
  949. this->label_P1MotorTemp->TabIndex = 34;
  950. this->label_P1MotorTemp->Text = L"Motor Temp:";
  951. //
  952. // label_P1BattTemp
  953. //
  954. this->label_P1BattTemp->AutoSize = true;
  955. this->label_P1BattTemp->Location = System::Drawing::Point(14, 20);
  956. this->label_P1BattTemp->Name = L"label_P1BattTemp";
  957. this->label_P1BattTemp->Size = System::Drawing::Size(73, 13);
  958. this->label_P1BattTemp->TabIndex = 33;
  959. this->label_P1BattTemp->Text = L"Battery Temp:";
  960. //
  961. // comboBox_P1MotorTemp
  962. //
  963. this->comboBox_P1MotorTemp->FormattingEnabled = true;
  964. this->comboBox_P1MotorTemp->Items->AddRange(gcnew cli::array< System::Object^ >(6) {L"Unknown", L"Cold", L"Cold/Warm", L"Warm",
  965. L"Warm/Hot", L"Hot"});
  966. this->comboBox_P1MotorTemp->Location = System::Drawing::Point(112, 36);
  967. this->comboBox_P1MotorTemp->Name = L"comboBox_P1MotorTemp";
  968. this->comboBox_P1MotorTemp->Size = System::Drawing::Size(82, 21);
  969. this->comboBox_P1MotorTemp->TabIndex = 32;
  970. this->comboBox_P1MotorTemp->Text = L"Unknown";
  971. this->comboBox_P1MotorTemp->SelectedIndexChanged += gcnew System::EventHandler(this, &LEVSensor::comboBox_P1MotorTemp_SelectedIndexChanged);
  972. //
  973. // comboBox_P1BattTemp
  974. //
  975. this->comboBox_P1BattTemp->FormattingEnabled = true;
  976. this->comboBox_P1BattTemp->Items->AddRange(gcnew cli::array< System::Object^ >(6) {L"Unknown", L"Cold", L"Cold/Warm", L"Warm",
  977. L"Warm/Hot", L"Hot"});
  978. this->comboBox_P1BattTemp->Location = System::Drawing::Point(17, 36);
  979. this->comboBox_P1BattTemp->Name = L"comboBox_P1BattTemp";
  980. this->comboBox_P1BattTemp->Size = System::Drawing::Size(82, 21);
  981. this->comboBox_P1BattTemp->TabIndex = 31;
  982. this->comboBox_P1BattTemp->Text = L"Unknown";
  983. this->comboBox_P1BattTemp->SelectedIndexChanged += gcnew System::EventHandler(this, &LEVSensor::comboBox_P1BattTemp_SelectedIndexChanged);
  984. //
  985. // tabPage_P2
  986. //
  987. this->tabPage_P2->Controls->Add(this->checkBox_UsePage34);
  988. this->tabPage_P2->Controls->Add(this->label_P2Range);
  989. this->tabPage_P2->Controls->Add(this->label_P2Speed);
  990. this->tabPage_P2->Controls->Add(this->numericUpDown_P2Speed);
  991. this->tabPage_P2->Controls->Add(this->numericUpDown_P2Range);
  992. this->tabPage_P2->Controls->Add(this->checkBox_P2RangeUnused);
  993. this->tabPage_P2->Controls->Add(this->numericUpDown_P2Distance);
  994. this->tabPage_P2->Controls->Add(this->label_P2TotalDistance);
  995. this->tabPage_P2->Controls->Add(this->label_P2TotDistDisplay);
  996. this->tabPage_P2->Controls->Add(this->button_P2UpdateDist);
  997. this->tabPage_P2->Controls->Add(this->label_P2UpdateError);
  998. this->tabPage_P2->Location = System::Drawing::Point(4, 22);
  999. this->tabPage_P2->Name = L"tabPage_P2";
  1000. this->tabPage_P2->Padding = System::Windows::Forms::Padding(3);
  1001. this->tabPage_P2->Size = System::Drawing::Size(389, 111);
  1002. this->tabPage_P2->TabIndex = 2;
  1003. this->tabPage_P2->Text = L"Page 2/34";
  1004. this->tabPage_P2->UseVisualStyleBackColor = true;
  1005. //
  1006. // checkBox_UsePage34
  1007. //
  1008. this->checkBox_UsePage34->AutoSize = true;
  1009. this->checkBox_UsePage34->Location = System::Drawing::Point(206, 88);
  1010. this->checkBox_UsePage34->Name = L"checkBox_UsePage34";
  1011. this->checkBox_UsePage34->Size = System::Drawing::Size(94, 17);
  1012. this->checkBox_UsePage34->TabIndex = 45;
  1013. this->checkBox_UsePage34->Text = L"Use Page 34\?";
  1014. this->checkBox_UsePage34->UseVisualStyleBackColor = true;
  1015. this->checkBox_UsePage34->CheckedChanged += gcnew System::EventHandler(this, &LEVSensor::checkBox_UsePage34_CheckedChanged);
  1016. //
  1017. // label_P2Range
  1018. //
  1019. this->label_P2Range->AutoSize = true;
  1020. this->label_P2Range->Location = System::Drawing::Point(22, 36);
  1021. this->label_P2Range->Name = L"label_P2Range";
  1022. this->label_P2Range->Size = System::Drawing::Size(118, 13);
  1023. this->label_P2Range->TabIndex = 44;
  1024. this->label_P2Range->Text = L"Remaining Range (km):";
  1025. //
  1026. // label_P2Speed
  1027. //
  1028. this->label_P2Speed->AutoSize = true;
  1029. this->label_P2Speed->Location = System::Drawing::Point(42, 62);
  1030. this->label_P2Speed->Name = L"label_P2Speed";
  1031. this->label_P2Speed->Size = System::Drawing::Size(98, 13);
  1032. this->label_P2Speed->TabIndex = 43;
  1033. this->label_P2Speed->Text = L"LEV Speed (km/h):";
  1034. //
  1035. // numericUpDown_P2Speed
  1036. //
  1037. this->numericUpDown_P2Speed->DecimalPlaces = 1;
  1038. this->numericUpDown_P2Speed->Location = System::Drawing::Point(146, 60);
  1039. this->numericUpDown_P2Speed->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {4095, 0, 0, 65536});
  1040. this->numericUpDown_P2Speed->Minimum = System::Decimal(gcnew cli::array< System::Int32 >(4) {1, 0, 0, 65536});
  1041. this->numericUpDown_P2Speed->Name = L"numericUpDown_P2Speed";
  1042. this->numericUpDown_P2Speed->Size = System::Drawing::Size(54, 20);
  1043. this->numericUpDown_P2Speed->TabIndex = 42;
  1044. this->numericUpDown_P2Speed->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) {205, 0, 0, 65536});
  1045. this->numericUpDown_P2Speed->ValueChanged += gcnew System::EventHandler(this, &LEVSensor::numericUpDown_P2Speed_ValueChanged);
  1046. //
  1047. // numericUpDown_P2Range
  1048. //
  1049. this->numericUpDown_P2Range->Location = System::Drawing::Point(146, 34);
  1050. this->numericUpDown_P2Range->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {4095, 0, 0, 0});
  1051. this->numericUpDown_P2Range->Minimum = System::Decimal(gcnew cli::array< System::Int32 >(4) {1, 0, 0, 0});
  1052. this->numericUpDown_P2Range->Name = L"numericUpDown_P2Range";
  1053. this->numericUpDown_P2Range->Size = System::Drawing::Size(54, 20);
  1054. this->numericUpDown_P2Range->TabIndex = 6;
  1055. this->numericUpDown_P2Range->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) {4095, 0, 0, 0});
  1056. this->numericUpDown_P2Range->ValueChanged += gcnew System::EventHandler(this, &LEVSensor::numericUpDown_P2Range_ValueChanged);
  1057. //
  1058. // checkBox_P2RangeUnused
  1059. //
  1060. this->checkBox_P2RangeUnused->AutoSize = true;
  1061. this->checkBox_P2RangeUnused->Location = System::Drawing::Point(206, 35);
  1062. this->checkBox_P2RangeUnused->Name = L"checkBox_P2RangeUnused";
  1063. this->checkBox_P2RangeUnused->Size = System::Drawing::Size(63, 17);
  1064. this->checkBox_P2RangeUnused->TabIndex = 7;
  1065. this->checkBox_P2RangeUnused->Text = L"Unused";
  1066. this->checkBox_P2RangeUnused->UseVisualStyleBackColor = true;
  1067. this->checkBox_P2RangeUnused->CheckedChanged += gcnew System::EventHandler(this, &LEVSensor::checkBox_P2RangeUnused_CheckedChanged);
  1068. //
  1069. // numericUpDown_P2Distance
  1070. //
  1071. this->numericUpDown_P2Distance->Location = System::Drawing::Point(204, 9);
  1072. this->numericUpDown_P2Distance->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {167772, 0, 0, 0});
  1073. this->numericUpDown_P2Distance->Name = L"numericUpDown_P2Distance";
  1074. this->numericUpDown_P2Distance->Size = System::Drawing::Size(68, 20);
  1075. this->numericUpDown_P2Distance->TabIndex = 38;
  1076. //
  1077. // label_P2TotalDistance
  1078. //
  1079. this->label_P2TotalDistance->AutoSize = true;
  1080. this->label_P2TotalDistance->Location = System::Drawing::Point(16, 11);
  1081. this->label_P2TotalDistance->Name = L"label_P2TotalDistance";
  1082. this->label_P2TotalDistance->Size = System::Drawing::Size(102, 13);
  1083. this->label_P2TotalDistance->TabIndex = 31;
  1084. this->label_P2TotalDistance->Text = L"Total Distance (km):";
  1085. //
  1086. // label_P2TotDistDisplay
  1087. //
  1088. this->label_P2TotDistDisplay->Location = System::Drawing::Point(124, 11);
  1089. this->label_P2TotDistDisplay->Name = L"label_P2TotDistDisplay";
  1090. this->label_P2TotDistDisplay->Size = System::Drawing::Size(74, 13);
  1091. this->label_P2TotDistDisplay->TabIndex = 32;
  1092. this->label_P2TotDistDisplay->Text = L"0";
  1093. //
  1094. // button_P2UpdateDist
  1095. //
  1096. this->button_P2UpdateDist->Location = System::Drawing::Point(278, 7);
  1097. this->button_P2UpdateDist->Name = L"button_P2UpdateDist";
  1098. this->button_P2UpdateDist->Size = System::Drawing::Size(97, 20);
  1099. this->button_P2UpdateDist->TabIndex = 35;
  1100. this->button_P2UpdateDist->Text = L"Update Distance";
  1101. this->button_P2UpdateDist->UseVisualStyleBackColor = true;
  1102. this->button_P2UpdateDist->Click += gcnew System::EventHandler(this, &LEVSensor::button_P2UpdateDist_Click);
  1103. //
  1104. // label_P2UpdateError
  1105. //
  1106. this->label_P2UpdateError->AutoSize = true;
  1107. this->label_P2UpdateError->Location = System::Drawing::Point(275, 36);
  1108. this->label_P2UpdateError->Name = L"label_P2UpdateError";
  1109. this->label_P2UpdateError->Size = System::Drawing::Size(32, 13);
  1110. this->label_P2UpdateError->TabIndex = 33;
  1111. this->label_P2UpdateError->Text = L"Error:";
  1112. this->label_P2UpdateError->Visible = false;
  1113. //
  1114. // tabPage_P3
  1115. //
  1116. this->tabPage_P3->Controls->Add(this->tabControl_Page3);
  1117. this->tabPage_P3->Location = System::Drawing::Point(4, 22);
  1118. this->tabPage_P3->Name = L"tabPage_P3";
  1119. this->tabPage_P3->Padding = System::Windows::Forms::Padding(3);
  1120. this->tabPage_P3->Size = System::Drawing::Size(389, 111);
  1121. this->tabPage_P3->TabIndex = 3;
  1122. this->tabPage_P3->Text = L"Page 3";
  1123. this->tabPage_P3->UseVisualStyleBackColor = true;
  1124. //
  1125. // tabControl_Page3
  1126. //
  1127. this->tabControl_Page3->Controls->Add(this->tabPage_P3BatterySOC);
  1128. this->tabControl_Page3->Controls->Add(this->tabPage_P3Assist);
  1129. this->tabControl_Page3->Location = System::Drawing::Point(3, 5);
  1130. this->tabControl_Page3->Name = L"tabControl_Page3";
  1131. this->tabControl_Page3->SelectedIndex = 0;
  1132. this->tabControl_Page3->Size = System::Drawing::Size(383, 103);
  1133. this->tabControl_Page3->TabIndex = 1;
  1134. //
  1135. // tabPage_P3BatterySOC
  1136. //
  1137. this->tabPage_P3BatterySOC->Controls->Add(this->groupBox_P3Charge);
  1138. this->tabPage_P3BatterySOC->Controls->Add(this->label_P3Note2);
  1139. this->tabPage_P3BatterySOC->Controls->Add(this->label_P3Note1);
  1140. this->tabPage_P3BatterySOC->Location = System::Drawing::Point(4, 22);
  1141. this->tabPage_P3BatterySOC->Name = L"tabPage_P3BatterySOC";
  1142. this->tabPage_P3BatterySOC->Padding = System::Windows::Forms::Padding(3);
  1143. this->tabPage_P3BatterySOC->Size = System::Drawing::Size(375, 77);
  1144. this->tabPage_P3BatterySOC->TabIndex = 5;
  1145. this->tabPage_P3BatterySOC->Text = L"Battery SOC";
  1146. this->tabPage_P3BatterySOC->UseVisualStyleBackColor = true;
  1147. //
  1148. // groupBox_P3Charge
  1149. //
  1150. this->groupBox_P3Charge->Controls->Add(this->numericUpDown_P3Charge);
  1151. this->groupBox_P3Charge->Controls->Add(this->checkBox_P3BattEmpty);
  1152. this->groupBox_P3Charge->Location = System::Drawing::Point(154, 25);
  1153. this->groupBox_P3Charge->Name = L"groupBox_P3Charge";
  1154. this->groupBox_P3Charge->Size = System::Drawing::Size(182, 46);
  1155. this->groupBox_P3Charge->TabIndex = 13;
  1156. this->groupBox_P3Charge->TabStop = false;
  1157. this->groupBox_P3Charge->Text = L"Battery Charge (%)";
  1158. //
  1159. // numericUpDown_P3Charge
  1160. //
  1161. this->numericUpDown_P3Charge->Location = System::Drawing::Point(20, 19);
  1162. this->numericUpDown_P3Charge->Name = L"numericUpDown_P3Charge";
  1163. this->numericUpDown_P3Charge->Size = System::Drawing::Size(45, 20);
  1164. this->numericUpDown_P3Charge->TabIndex = 4;
  1165. this->numericUpDown_P3Charge->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) {100, 0, 0, 0});
  1166. this->numericUpDown_P3Charge->ValueChanged += gcnew System::EventHandler(this, &LEVSensor::numericUpDown_P3Charge_ValueChanged);
  1167. //
  1168. // checkBox_P3BattEmpty
  1169. //
  1170. this->checkBox_P3BattEmpty->AutoSize = true;
  1171. this->checkBox_P3BattEmpty->Location = System::Drawing::Point(71, 22);
  1172. this->checkBox_P3BattEmpty->Name = L"checkBox_P3BattEmpty";
  1173. this->checkBox_P3BattEmpty->Size = System::Drawing::Size(91, 17);
  1174. this->checkBox_P3BattEmpty->TabIndex = 3;
  1175. this->checkBox_P3BattEmpty->Text = L"Battery Empty";
  1176. this->checkBox_P3BattEmpty->UseVisualStyleBackColor = true;
  1177. this->checkBox_P3BattEmpty->CheckedChanged += gcnew System::EventHandler(this, &LEVSensor::checkBox_P3BattEmpty_CheckedChanged);
  1178. //
  1179. // label_P3Note2
  1180. //
  1181. this->label_P3Note2->AutoSize = true;
  1182. this->label_P3Note2->Location = System::Drawing::Point(7, 20);
  1183. this->label_P3Note2->Name = L"label_P3Note2";
  1184. this->label_P3Note2->Size = System::Drawing::Size(110, 13);
  1185. this->label_P3Note2->TabIndex = 1;
  1186. this->label_P3Note2->Text = L"under the Page 1 tab.";
  1187. //
  1188. // label_P3Note1
  1189. //
  1190. this->label_P3Note1->AutoSize = true;
  1191. this->label_P3Note1->Location = System::Drawing::Point(7, 7);
  1192. this->label_P3Note1->Name = L"label_P3Note1";
  1193. this->label_P3Note1->Size = System::Drawing::Size(360, 13);
  1194. this->label_P3Note1->TabIndex = 0;
  1195. this->label_P3Note1->Text = L"Please note that fields shared between Page 1 and Page 3 must be altered";
  1196. //
  1197. // tabPage_P3Assist
  1198. //
  1199. this->tabPage_P3Assist->Controls->Add(this->label_P3PercentAssist);
  1200. this->tabPage_P3Assist->Controls->Add(this->numericUpDown_P3PercentAssist);
  1201. this->tabPage_P3Assist->Location = System::Drawing::Point(4, 22);
  1202. this->tabPage_P3Assist->Name = L"tabPage_P3Assist";
  1203. this->tabPage_P3Assist->Padding = System::Windows::Forms::Padding(3);
  1204. this->tabPage_P3Assist->Size = System::Drawing::Size(375, 77);
  1205. this->tabPage_P3Assist->TabIndex = 6;
  1206. this->tabPage_P3Assist->Text = L"% Assist";
  1207. this->tabPage_P3Assist->UseVisualStyleBackColor = true;
  1208. //
  1209. // label_P3PercentAssist
  1210. //
  1211. this->label_P3PercentAssist->AutoSize = true;
  1212. this->label_P3PercentAssist->Location = System::Drawing::Point(123, 30);
  1213. this->label_P3PercentAssist->Name = L"label_P3PercentAssist";
  1214. this->label_P3PercentAssist->Size = System::Drawing::Size(77, 13);
  1215. this->label_P3PercentAssist->TabIndex = 43;
  1216. this->label_P3PercentAssist->Text = L"Percent Assist:";
  1217. //
  1218. // numericUpDown_P3PercentAssist
  1219. //
  1220. this->numericUpDown_P3PercentAssist->Location = System::Drawing::Point(206, 28);
  1221. this->numericUpDown_P3PercentAssist->Name = L"numericUpDown_P3PercentAssist";
  1222. this->numericUpDown_P3PercentAssist->Size = System::Drawing::Size(45, 20);
  1223. this->numericUpDown_P3PercentAssist->TabIndex = 42;
  1224. this->numericUpDown_P3PercentAssist->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) {100, 0, 0, 0});
  1225. this->numericUpDown_P3PercentAssist->ValueChanged += gcnew System::EventHandler(this, &LEVSensor::numericUpDown_P3PercentAssist_ValueChanged);
  1226. //
  1227. // tabPage4
  1228. //
  1229. this->tabPage4->Controls->Add(this->tabControl_Page45);
  1230. this->tabPage4->Location = System::Drawing::Point(4, 22);
  1231. this->tabPage4->Name = L"tabPage4";
  1232. this->tabPage4->Padding = System::Windows::Forms::Padding(3);
  1233. this->tabPage4->Size = System::Drawing::Size(389, 111);
  1234. this->tabPage4->TabIndex = 8;
  1235. this->tabPage4->Text = L"Page 4/5";
  1236. this->tabPage4->UseVisualStyleBackColor = true;
  1237. //
  1238. // tabControl_Page45
  1239. //
  1240. this->tabControl_Page45->Controls->Add(this->tabPage_Page4);
  1241. this->tabControl_Page45->Controls->Add(this->tabPage_Page4Cont);
  1242. this->tabControl_Page45->Controls->Add(this->tabPage_Page5);
  1243. this->tabControl_Page45->Location = System::Drawing::Point(3, 5);
  1244. this->tabControl_Page45->Name = L"tabControl_Page45";
  1245. this->tabControl_Page45->SelectedIndex = 0;
  1246. this->tabControl_Page45->Size = System::Drawing::Size(383, 103);
  1247. this->tabControl_Page45->TabIndex = 2;
  1248. //
  1249. // tabPage_Page4
  1250. //
  1251. this->tabPage_Page4->Controls->Add(this->numericUpDown_P4ChargeCycle);
  1252. this->tabPage_Page4->Controls->Add(this->checkBox_P4DistanceOnChargeUnused);
  1253. this->tabPage_Page4->Controls->Add(this->checkBox_P4FuelConsumptionUnused);
  1254. this->tabPage_Page4->Controls->Add(this->checkBox_P4ChargeCycleUnused);
  1255. this->tabPage_Page4->Controls->Add(this->label_P4DistanceOnCharge);
  1256. this->tabPage_Page4->Controls->Add(this->numericUpDown_P4DistanceOnCharge);
  1257. this->tabPage_Page4->Controls->Add(this->numericUpDown_P4FuelConsumption);
  1258. this->tabPage_Page4->Controls->Add(this->label_P4FuelConsumption);
  1259. this->tabPage_Page4->Controls->Add(this->label_P4ChargeCycle);
  1260. this->tabPage_Page4->Location = System::Drawing::Point(4, 22);
  1261. this->tabPage_Page4->Name = L"tabPage_Page4";
  1262. this->tabPage_Page4->Padding = System::Windows::Forms::Padding(3);
  1263. this->tabPage_Page4->Size = System::Drawing::Size(375, 77);
  1264. this->tabPage_Page4->TabIndex = 5;
  1265. this->tabPage_Page4->Text = L"Page 4";
  1266. this->tabPage_Page4->UseVisualStyleBackColor = true;
  1267. //
  1268. // numericUpDown_P4ChargeCycle
  1269. //
  1270. this->numericUpDown_P4ChargeCycle->Location = System::Drawing::Point(153, 6);
  1271. this->numericUpDown_P4ChargeCycle->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {4095, 0, 0, 0});
  1272. this->numericUpDown_P4ChargeCycle->Minimum = System::Decimal(gcnew cli::array< System::Int32 >(4) {1, 0, 0, 0});
  1273. this->numericUpDown_P4ChargeCycle->Name = L"numericUpDown_P4ChargeCycle";
  1274. this->numericUpDown_P4ChargeCycle->Size = System::Drawing::Size(54, 20);
  1275. this->numericUpDown_P4ChargeCycle->TabIndex = 15;
  1276. this->numericUpDown_P4ChargeCycle->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) {56, 0, 0, 0});
  1277. this->numericUpDown_P4ChargeCycle->ValueChanged += gcnew System::EventHandler(this, &LEVSensor::numericUpDown_P4ChargeCycle_ValueChanged);
  1278. //
  1279. // checkBox_P4DistanceOnChargeUnused
  1280. //
  1281. this->checkBox_P4DistanceOnChargeUnused->AutoSize = true;
  1282. this->checkBox_P4DistanceOnChargeUnused->Location = System::Drawing::Point(237, 54);
  1283. this->checkBox_P4DistanceOnChargeUnused->Name = L"checkBox_P4DistanceOnChargeUnused";
  1284. this->checkBox_P4DistanceOnChargeUnused->Size = System::Drawing::Size(63, 17);
  1285. this->checkBox_P4DistanceOnChargeUnused->TabIndex = 14;
  1286. this->checkBox_P4DistanceOnChargeUnused->Text = L"Unused";
  1287. this->checkBox_P4DistanceOnChargeUnused->UseVisualStyleBackColor = true;
  1288. this->checkBox_P4DistanceOnChargeUnused->CheckedChanged += gcnew System::EventHandler(this, &LEVSensor::checkBox_P4DistanceOnChargeUnused_CheckedChanged);
  1289. //
  1290. // checkBox_P4FuelConsumptionUnused
  1291. //
  1292. this->checkBox_P4FuelConsumptionUnused->AutoSize = true;
  1293. this->checkBox_P4FuelConsumptionUnused->Location = System::Drawing::Point(237, 31);
  1294. this->checkBox_P4FuelConsumptionUnused->Name = L"checkBox_P4FuelConsumptionUnused";
  1295. this->checkBox_P4FuelConsumptionUnused->Size = System::Drawing::Size(63, 17);
  1296. this->checkBox_P4FuelConsumptionUnused->TabIndex = 13;
  1297. this->checkBox_P4FuelConsumptionUnused->Text = L"Unused";
  1298. this->checkBox_P4FuelConsumptionUnused->UseVisualStyleBackColor = true;
  1299. this->checkBox_P4FuelConsumptionUnused->CheckedChanged += gcnew System::EventHandler(this, &LEVSensor::checkBox_P4FuelConsumptionUnused_CheckedChanged);
  1300. //
  1301. // checkBox_P4ChargeCycleUnused
  1302. //
  1303. this->checkBox_P4ChargeCycleUnused->AutoSize = true;
  1304. this->checkBox_P4ChargeCycleUnused->Location = System::Drawing::Point(237, 7);
  1305. this->checkBox_P4ChargeCycleUnused->Name = L"checkBox_P4ChargeCycleUnused";
  1306. this->checkBox_P4ChargeCycleUnused->Size = System::Drawing::Size(63, 17);
  1307. this->checkBox_P4ChargeCycleUnused->TabIndex = 12;
  1308. this->checkBox_P4ChargeCycleUnused->Text = L"Unused";
  1309. this->checkBox_P4ChargeCycleUnused->UseVisualStyleBackColor = true;
  1310. this->checkBox_P4ChargeCycleUnused->CheckedChanged += gcnew System::EventHandler(this, &LEVSensor::checkBox_P4ChargeCycleUnused_CheckedChanged);
  1311. //
  1312. // label_P4DistanceOnCharge
  1313. //
  1314. this->label_P4DistanceOnCharge->AutoSize = true;
  1315. this->label_P4DistanceOnCharge->Location = System::Drawing::Point(8, 55);
  1316. this->label_P4DistanceOnCharge->Name = L"label_P4DistanceOnCharge";
  1317. this->label_P4DistanceOnCharge->Size = System::Drawing::Size(127, 13);
  1318. this->label_P4DistanceOnCharge->TabIndex = 11;
  1319. this->label_P4DistanceOnCharge->Text = L"Distance on Charge (km):";
  1320. //
  1321. // numericUpDown_P4DistanceOnCharge
  1322. //
  1323. this->numericUpDown_P4DistanceOnCharge->DecimalPlaces = 1;
  1324. this->numericUpDown_P4DistanceOnCharge->Location = System::Drawing::Point(153, 53);
  1325. this->numericUpDown_P4DistanceOnCharge->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {65535, 0, 0, 65536});
  1326. this->numericUpDown_P4DistanceOnCharge->Minimum = System::Decimal(gcnew cli::array< System::Int32 >(4) {1, 0, 0, 65536});
  1327. this->numericUpDown_P4DistanceOnCharge->Name = L"numericUpDown_P4DistanceOnCharge";
  1328. this->numericUpDown_P4DistanceOnCharge->Size = System::Drawing::Size(54, 20);
  1329. this->numericUpDown_P4DistanceOnCharge->TabIndex = 10;
  1330. this->numericUpDown_P4DistanceOnCharge->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) {4014, 0, 0, 65536});
  1331. this->numericUpDown_P4DistanceOnCharge->ValueChanged += gcnew System::EventHandler(this, &LEVSensor::numericUpDown_P4DistanceOnCharge_ValueChanged);
  1332. //
  1333. // numericUpDown_P4FuelConsumption
  1334. //
  1335. this->numericUpDown_P4FuelConsumption->DecimalPlaces = 1;
  1336. this->numericUpDown_P4FuelConsumption->Increment = System::Decimal(gcnew cli::array< System::Int32 >(4) {1, 0, 0, 65536});
  1337. this->numericUpDown_P4FuelConsumption->Location = System::Drawing::Point(153, 30);
  1338. this->numericUpDown_P4FuelConsumption->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {4095, 0, 0, 65536});
  1339. this->numericUpDown_P4FuelConsumption->Minimum = System::Decimal(gcnew cli::array< System::Int32 >(4) {1, 0, 0, 65536});
  1340. this->numericUpDown_P4FuelConsumption->Name = L"numericUpDown_P4FuelConsumption";
  1341. this->numericUpDown_P4FuelConsumption->Size = System::Drawing::Size(54, 20);
  1342. this->numericUpDown_P4FuelConsumption->TabIndex = 9;
  1343. this->numericUpDown_P4FuelConsumption->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) {105, 0, 0, 65536});
  1344. this->numericUpDown_P4FuelConsumption->ValueChanged += gcnew System::EventHandler(this, &LEVSensor::numericUpDown_P4FuelConsumption_ValueChanged);
  1345. //
  1346. // label_P4FuelConsumption
  1347. //
  1348. this->label_P4FuelConsumption->AutoSize = true;
  1349. this->label_P4FuelConsumption->Location = System::Drawing::Point(8, 32);
  1350. this->label_P4FuelConsumption->Name = L"label_P4FuelConsumption";
  1351. this->label_P4FuelConsumption->Size = System::Drawing::Size(139, 13);
  1352. this->label_P4FuelConsumption->TabIndex = 8;
  1353. this->label_P4FuelConsumption->Text = L"Fuel Consumption (Wh/km):";
  1354. //
  1355. // label_P4ChargeCycle
  1356. //
  1357. this->label_P4ChargeCycle->AutoSize = true;
  1358. this->label_P4ChargeCycle->Location = System::Drawing::Point(8, 8);
  1359. this->label_P4ChargeCycle->Name = L"label_P4ChargeCycle";
  1360. this->label_P4ChargeCycle->Size = System::Drawing::Size(112, 13);
  1361. this->label_P4ChargeCycle->TabIndex = 0;
  1362. this->label_P4ChargeCycle->Text = L"Charging Cycle Count:";
  1363. //
  1364. // tabPage_Page4Cont
  1365. //
  1366. this->tabPage_Page4Cont->Controls->Add(this->groupBox_P4Voltage);
  1367. this->tabPage_Page4Cont->Location = System::Drawing::Point(4, 22);
  1368. this->tabPage_Page4Cont->Name = L"tabPage_Page4Cont";
  1369. this->tabPage_Page4Cont->Padding = System::Windows::Forms::Padding(3);
  1370. this->tabPage_Page4Cont->Size = System::Drawing::Size(375, 77);
  1371. this->tabPage_Page4Cont->TabIndex = 7;
  1372. this->tabPage_Page4Cont->Text = L"Page 4 Cont\'d";
  1373. this->tabPage_Page4Cont->UseVisualStyleBackColor = true;
  1374. //
  1375. // groupBox_P4Voltage
  1376. //
  1377. this->groupBox_P4Voltage->Controls->Add(this->numericUpDown_P4Voltage);
  1378. this->groupBox_P4Voltage->Controls->Add(this->checkBox_P4VoltUnused);
  1379. this->groupBox_P4Voltage->Location = System::Drawing::Point(125, 14);
  1380. this->groupBox_P4Voltage->Name = L"groupBox_P4Voltage";
  1381. this->groupBox_P4Voltage->Size = System::Drawing::Size(125, 48);
  1382. this->groupBox_P4Voltage->TabIndex = 16;
  1383. this->groupBox_P4Voltage->TabStop = false;
  1384. this->groupBox_P4Voltage->Text = L"Batt Voltage (1/4V)";
  1385. //
  1386. // numericUpDown_P4Voltage
  1387. //
  1388. this->numericUpDown_P4Voltage->Location = System::Drawing::Point(6, 19);
  1389. this->numericUpDown_P4Voltage->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {255, 0, 0, 0});
  1390. this->numericUpDown_P4Voltage->Minimum = System::Decimal(gcnew cli::array< System::Int32 >(4) {1, 0, 0, 0});
  1391. this->numericUpDown_P4Voltage->Name = L"numericUpDown_P4Voltage";
  1392. this->numericUpDown_P4Voltage->Size = System::Drawing::Size(45, 20);
  1393. this->numericUpDown_P4Voltage->TabIndex = 5;
  1394. this->numericUpDown_P4Voltage->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) {255, 0, 0, 0});
  1395. this->numericUpDown_P4Voltage->ValueChanged += gcnew System::EventHandler(this, &LEVSensor::numericUpDown_P4Voltage_ValueChanged);
  1396. //
  1397. // checkBox_P4VoltUnused
  1398. //
  1399. this->checkBox_P4VoltUnused->AutoSize = true;
  1400. this->checkBox_P4VoltUnused->Location = System::Drawing::Point(57, 20);
  1401. this->checkBox_P4VoltUnused->Name = L"checkBox_P4VoltUnused";
  1402. this->checkBox_P4VoltUnused->Size = System::Drawing::Size(63, 17);
  1403. this->checkBox_P4VoltUnused->TabIndex = 8;
  1404. this->checkBox_P4VoltUnused->Text = L"Unused";
  1405. this->checkBox_P4VoltUnused->UseVisualStyleBackColor = true;
  1406. this->checkBox_P4VoltUnused->CheckedChanged += gcnew System::EventHandler(this, &LEVSensor::checkBox_P4VoltUnused_CheckedChanged);
  1407. //
  1408. // tabPage_Page5
  1409. //
  1410. this->tabPage_Page5->Controls->Add(this->label_P5);
  1411. this->tabPage_Page5->Controls->Add(this->checkBox_P5WheelCircum);
  1412. this->tabPage_Page5->Controls->Add(this->numericUpDown_P5Circum);
  1413. this->tabPage_Page5->Controls->Add(this->label_P5Circum);
  1414. this->tabPage_Page5->Controls->Add(this->label_P5RegenModes);
  1415. this->tabPage_Page5->Controls->Add(this->label_P5AssistModes);
  1416. this->tabPage_Page5->Controls->Add(this->numericUpDown_P5RegenModes);
  1417. this->tabPage_Page5->Controls->Add(this->numericUpDwn_P5AssistModes);
  1418. this->tabPage_Page5->Location = System::Drawing::Point(4, 22);
  1419. this->tabPage_Page5->Name = L"tabPage_Page5";
  1420. this->tabPage_Page5->Padding = System::Windows::Forms::Padding(3);
  1421. this->tabPage_Page5->Size = System::Drawing::Size(375, 77);
  1422. this->tabPage_Page5->TabIndex = 6;
  1423. this->tabPage_Page5->Text = L"Page 5";
  1424. this->tabPage_Page5->UseVisualStyleBackColor = true;
  1425. //
  1426. // label_P5
  1427. //
  1428. this->label_P5->AutoSize = true;
  1429. this->label_P5->Location = System::Drawing::Point(6, 9);
  1430. this->label_P5->Name = L"label_P5";
  1431. this->label_P5->Size = System::Drawing::Size(164, 13);
  1432. this->label_P5->TabIndex = 19;
  1433. this->label_P5->Text = L"Travel Modes Supported by LEV:";
  1434. //
  1435. // checkBox_P5WheelCircum
  1436. //
  1437. this->checkBox_P5WheelCircum->AutoSize = true;
  1438. this->checkBox_P5WheelCircum->Location = System::Drawing::Point(277, 38);
  1439. this->checkBox_P5WheelCircum->Name = L"checkBox_P5WheelCircum";
  1440. this->checkBox_P5WheelCircum->Size = System::Drawing::Size(63, 17);
  1441. this->checkBox_P5WheelCircum->TabIndex = 18;
  1442. this->checkBox_P5WheelCircum->Text = L"Unused";
  1443. this->checkBox_P5WheelCircum->UseVisualStyleBackColor = true;
  1444. this->checkBox_P5WheelCircum->CheckedChanged += gcnew System::EventHandler(this, &LEVSensor::checkBox_P5WheelCircum_CheckedChanged);
  1445. //
  1446. // numericUpDown_P5Circum
  1447. //
  1448. this->numericUpDown_P5Circum->Location = System::Drawing::Point(206, 35);
  1449. this->numericUpDown_P5Circum->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {4095, 0, 0, 0});
  1450. this->numericUpDown_P5Circum->Name = L"numericUpDown_P5Circum";
  1451. this->numericUpDown_P5Circum->Size = System::Drawing::Size(54, 20);
  1452. this->numericUpDown_P5Circum->TabIndex = 17;
  1453. this->numericUpDown_P5Circum->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) {2000, 0, 0, 0});
  1454. this->numericUpDown_P5Circum->ValueChanged += gcnew System::EventHandler(this, &LEVSensor::numericUpDown_P5Circum_ValueChanged);
  1455. //
  1456. // label_P5Circum
  1457. //
  1458. this->label_P5Circum->AutoSize = true;
  1459. this->label_P5Circum->Location = System::Drawing::Point(203, 19);
  1460. this->label_P5Circum->Name = L"label_P5Circum";
  1461. this->label_P5Circum->Size = System::Drawing::Size(137, 13);
  1462. this->label_P5Circum->TabIndex = 16;
  1463. this->label_P5Circum->Text = L"Wheel Circumference (mm):";
  1464. //
  1465. // label_P5RegenModes
  1466. //
  1467. this->label_P5RegenModes->AutoSize = true;
  1468. this->label_P5RegenModes->Location = System::Drawing::Point(13, 53);
  1469. this->label_P5RegenModes->Name = L"label_P5RegenModes";
  1470. this->label_P5RegenModes->Size = System::Drawing::Size(87, 13);
  1471. this->label_P5RegenModes->TabIndex = 15;
  1472. this->label_P5RegenModes->Text = L"# Regen Modes:";
  1473. //
  1474. // label_P5AssistModes
  1475. //
  1476. this->label_P5AssistModes->AutoSize = true;
  1477. this->label_P5AssistModes->Location = System::Drawing::Point(13, 30);
  1478. this->label_P5AssistModes->Name = L"label_P5AssistModes";
  1479. this->label_P5AssistModes->Size = System::Drawing::Size(82, 13);
  1480. this->label_P5AssistModes->TabIndex = 14;
  1481. this->label_P5AssistModes->Text = L"# Assist Modes:";
  1482. //
  1483. // numericUpDown_P5RegenModes
  1484. //
  1485. this->numericUpDown_P5RegenModes->Location = System::Drawing::Point(106, 51);
  1486. this->numericUpDown_P5RegenModes->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {7, 0, 0, 0});
  1487. this->numericUpDown_P5RegenModes->Name = L"numericUpDown_P5RegenModes";
  1488. this->numericUpDown_P5RegenModes->Size = System::Drawing::Size(35, 20);
  1489. this->numericUpDown_P5RegenModes->TabIndex = 13;
  1490. this->numericUpDown_P5RegenModes->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) {7, 0, 0, 0});
  1491. this->numericUpDown_P5RegenModes->ValueChanged += gcnew System::EventHandler(this, &LEVSensor::numericUpDown_P5RegenModes_ValueChanged);
  1492. //
  1493. // numericUpDwn_P5AssistModes
  1494. //
  1495. this->numericUpDwn_P5AssistModes->Location = System::Drawing::Point(106, 28);
  1496. this->numericUpDwn_P5AssistModes->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {7, 0, 0, 0});
  1497. this->numericUpDwn_P5AssistModes->Minimum = System::Decimal(gcnew cli::array< System::Int32 >(4) {1, 0, 0, 0});
  1498. this->numericUpDwn_P5AssistModes->Name = L"numericUpDwn_P5AssistModes";
  1499. this->numericUpDwn_P5AssistModes->Size = System::Drawing::Size(35, 20);
  1500. this->numericUpDwn_P5AssistModes->TabIndex = 12;
  1501. this->numericUpDwn_P5AssistModes->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) {7, 0, 0, 0});
  1502. this->numericUpDwn_P5AssistModes->ValueChanged += gcnew System::EventHandler(this, &LEVSensor::numericUpDwn_P5AssistModes_ValueChanged);
  1503. //
  1504. // tabPage_P16
  1505. //
  1506. this->tabPage_P16->Controls->Add(this->label_P16ManIDValue);
  1507. this->tabPage_P16->Controls->Add(this->label_P16ManuID);
  1508. this->tabPage_P16->Controls->Add(this->checkBox_P16Supported);
  1509. this->tabPage_P16->Location = System::Drawing::Point(4, 22);
  1510. this->tabPage_P16->Name = L"tabPage_P16";
  1511. this->tabPage_P16->Padding = System::Windows::Forms::Padding(3);
  1512. this->tabPage_P16->Size = System::Drawing::Size(389, 111);
  1513. this->tabPage_P16->TabIndex = 10;
  1514. this->tabPage_P16->Text = L"Page 16";
  1515. this->tabPage_P16->UseVisualStyleBackColor = true;
  1516. //
  1517. // label_P16ManIDValue
  1518. //
  1519. this->label_P16ManIDValue->AutoSize = true;
  1520. this->label_P16ManIDValue->Location = System::Drawing::Point(244, 69);
  1521. this->label_P16ManIDValue->Name = L"label_P16ManIDValue";
  1522. this->label_P16ManIDValue->Size = System::Drawing::Size(31, 13);
  1523. this->label_P16ManIDValue->TabIndex = 4;
  1524. this->label_P16ManIDValue->Text = L"-- -- --";
  1525. //
  1526. // label_P16ManuID
  1527. //
  1528. this->label_P16ManuID->AutoSize = true;
  1529. this->label_P16ManuID->Location = System::Drawing::Point(114, 69);
  1530. this->label_P16ManuID->Name = L"label_P16ManuID";
  1531. this->label_P16ManuID->Size = System::Drawing::Size(124, 13);
  1532. this->label_P16ManuID->TabIndex = 3;
  1533. this->label_P16ManuID->Text = L"Display Manufacturer ID:";
  1534. //
  1535. // checkBox_P16Supported
  1536. //
  1537. this->checkBox_P16Supported->AutoSize = true;
  1538. this->checkBox_P16Supported->Checked = true;
  1539. this->checkBox_P16Supported->CheckState = System::Windows::Forms::CheckState::Checked;
  1540. this->checkBox_P16Supported->Location = System::Drawing::Point(117, 29);
  1541. this->checkBox_P16Supported->Name = L"checkBox_P16Supported";
  1542. this->checkBox_P16Supported->Size = System::Drawing::Size(134, 17);
  1543. this->checkBox_P16Supported->TabIndex = 1;
  1544. this->checkBox_P16Supported->Text = L"Rx Page 16 Supported";
  1545. this->checkBox_P16Supported->UseVisualStyleBackColor = true;
  1546. this->checkBox_P16Supported->CheckedChanged += gcnew System::EventHandler(this, &LEVSensor::checkBox_P16Supported_CheckedChanged);
  1547. //
  1548. // tabPage_Common1
  1549. //
  1550. this->tabPage_Common1->Controls->Add(this->checkBox_NoSerial);
  1551. this->tabPage_Common1->Controls->Add(this->label_Common1);
  1552. this->tabPage_Common1->Controls->Add(this->label_SoftwareVer);
  1553. this->tabPage_Common1->Controls->Add(this->label_HardwareVer);
  1554. this->tabPage_Common1->Controls->Add(this->button_CommonUpdate);
  1555. this->tabPage_Common1->Controls->Add(this->label_ErrorCommon);
  1556. this->tabPage_Common1->Controls->Add(this->label_ManfID);
  1557. this->tabPage_Common1->Controls->Add(this->label_SerialNum);
  1558. this->tabPage_Common1->Controls->Add(this->textBox_SerialNum);
  1559. this->tabPage_Common1->Controls->Add(this->textBox_SwVersion);
  1560. this->tabPage_Common1->Controls->Add(this->textBox_HwVersion);
  1561. this->tabPage_Common1->Controls->Add(this->textBox_ModelNum);
  1562. this->tabPage_Common1->Controls->Add(this->textBox_MfgID);
  1563. this->tabPage_Common1->Controls->Add(this->label_ModelNum);
  1564. this->tabPage_Common1->Location = System::Drawing::Point(4, 22);
  1565. this->tabPage_Common1->Name = L"tabPage_Common1";
  1566. this->tabPage_Common1->Padding = System::Windows::Forms::Padding(3);
  1567. this->tabPage_Common1->Size = System::Drawing::Size(389, 111);
  1568. this->tabPage_Common1->TabIndex = 11;
  1569. this->tabPage_Common1->Text = L"Common Tx";
  1570. this->tabPage_Common1->UseVisualStyleBackColor = true;
  1571. //
  1572. // checkBox_NoSerial
  1573. //
  1574. this->checkBox_NoSerial->AutoSize = true;
  1575. this->checkBox_NoSerial->Location = System::Drawing::Point(172, 31);
  1576. this->checkBox_NoSerial->Name = L"checkBox_NoSerial";
  1577. this->checkBox_NoSerial->Size = System::Drawing::Size(79, 17);
  1578. this->checkBox_NoSerial->TabIndex = 54;
  1579. this->checkBox_NoSerial->Text = L"No Serial #";
  1580. this->checkBox_NoSerial->UseVisualStyleBackColor = true;
  1581. this->checkBox_NoSerial->CheckedChanged += gcnew System::EventHandler(this, &LEVSensor::checkBox_NoSerial_CheckedChanged);
  1582. //
  1583. // label_Common1
  1584. //
  1585. this->label_Common1->AutoSize = true;
  1586. this->label_Common1->Location = System::Drawing::Point(6, 8);
  1587. this->label_Common1->Name = L"label_Common1";
  1588. this->label_Common1->Size = System::Drawing::Size(136, 13);
  1589. this->label_Common1->TabIndex = 53;
  1590. this->label_Common1->Text = L"LEV Sensor Common Data:";
  1591. //
  1592. // label_SoftwareVer
  1593. //
  1594. this->label_SoftwareVer->AutoSize = true;
  1595. this->label_SoftwareVer->Location = System::Drawing::Point(261, 55);
  1596. this->label_SoftwareVer->Name = L"label_SoftwareVer";
  1597. this->label_SoftwareVer->Size = System::Drawing::Size(71, 13);
  1598. this->label_SoftwareVer->TabIndex = 44;
  1599. this->label_SoftwareVer->Text = L"Software Ver:";
  1600. //
  1601. // label_HardwareVer
  1602. //
  1603. this->label_HardwareVer->AutoSize = true;
  1604. this->label_HardwareVer->Location = System::Drawing::Point(257, 32);
  1605. this->label_HardwareVer->Name = L"label_HardwareVer";
  1606. this->label_HardwareVer->Size = System::Drawing::Size(75, 13);
  1607. this->label_HardwareVer->TabIndex = 43;
  1608. this->label_HardwareVer->Text = L"Hardware Ver:";
  1609. //
  1610. // button_CommonUpdate
  1611. //
  1612. this->button_CommonUpdate->Location = System::Drawing::Point(260, 82);
  1613. this->button_CommonUpdate->Name = L"button_CommonUpdate";
  1614. this->button_CommonUpdate->Size = System::Drawing::Size(97, 20);
  1615. this->button_CommonUpdate->TabIndex = 52;
  1616. this->button_CommonUpdate->Text = L"Update All";
  1617. this->button_CommonUpdate->UseVisualStyleBackColor = true;
  1618. this->button_CommonUpdate->Click += gcnew System::EventHandler(this, &LEVSensor::button_CommonUpdate_Click);
  1619. //
  1620. // label_ErrorCommon
  1621. //
  1622. this->label_ErrorCommon->AutoSize = true;
  1623. this->label_ErrorCommon->ForeColor = System::Drawing::Color::Red;
  1624. this->label_ErrorCommon->Location = System::Drawing::Point(172, 86);
  1625. this->label_ErrorCommon->Name = L"label_ErrorCommon";
  1626. this->label_ErrorCommon->Size = System::Drawing::Size(32, 13);
  1627. this->label_ErrorCommon->TabIndex = 46;
  1628. this->label_ErrorCommon->Text = L"Error:";
  1629. this->label_ErrorCommon->Visible = false;
  1630. //
  1631. // label_ManfID
  1632. //
  1633. this->label_ManfID->AutoSize = true;
  1634. this->label_ManfID->Location = System::Drawing::Point(38, 55);
  1635. this->label_ManfID->Name = L"label_ManfID";
  1636. this->label_ManfID->Size = System::Drawing::Size(51, 13);
  1637. this->label_ManfID->TabIndex = 41;
  1638. this->label_ManfID->Text = L"Manf. ID:";
  1639. //
  1640. // label_SerialNum
  1641. //
  1642. this->label_SerialNum->AutoSize = true;
  1643. this->label_SerialNum->Location = System::Drawing::Point(38, 32);
  1644. this->label_SerialNum->Name = L"label_SerialNum";
  1645. this->label_SerialNum->Size = System::Drawing::Size(46, 13);
  1646. this->label_SerialNum->TabIndex = 42;
  1647. this->label_SerialNum->Text = L"Serial #:";
  1648. //
  1649. // textBox_SerialNum
  1650. //
  1651. this->textBox_SerialNum->Location = System::Drawing::Point(90, 29);
  1652. this->textBox_SerialNum->MaxLength = 10;
  1653. this->textBox_SerialNum->Name = L"textBox_SerialNum";
  1654. this->textBox_SerialNum->Size = System::Drawing::Size(76, 20);
  1655. this->textBox_SerialNum->TabIndex = 49;
  1656. this->textBox_SerialNum->Text = L"987654321";
  1657. //
  1658. // textBox_SwVersion
  1659. //
  1660. this->textBox_SwVersion->Location = System::Drawing::Point(338, 52);
  1661. this->textBox_SwVersion->MaxLength = 3;
  1662. this->textBox_SwVersion->Name = L"textBox_SwVersion";
  1663. this->textBox_SwVersion->Size = System::Drawing::Size(29, 20);
  1664. this->textBox_SwVersion->TabIndex = 51;
  1665. this->textBox_SwVersion->Text = L"2";
  1666. //
  1667. // textBox_HwVersion
  1668. //
  1669. this->textBox_HwVersion->Location = System::Drawing::Point(338, 29);
  1670. this->textBox_HwVersion->MaxLength = 3;
  1671. this->textBox_HwVersion->Name = L"textBox_HwVersion";
  1672. this->textBox_HwVersion->Size = System::Drawing::Size(29, 20);
  1673. this->textBox_HwVersion->TabIndex = 50;
  1674. this->textBox_HwVersion->Text = L"2";
  1675. //
  1676. // textBox_ModelNum
  1677. //
  1678. this->textBox_ModelNum->Location = System::Drawing::Point(117, 76);
  1679. this->textBox_ModelNum->MaxLength = 5;
  1680. this->textBox_ModelNum->Name = L"textBox_ModelNum";
  1681. this->textBox_ModelNum->Size = System::Drawing::Size(49, 20);
  1682. this->textBox_ModelNum->TabIndex = 48;
  1683. this->textBox_ModelNum->Text = L"22448";
  1684. //
  1685. // textBox_MfgID
  1686. //
  1687. this->textBox_MfgID->Location = System::Drawing::Point(117, 52);
  1688. this->textBox_MfgID->MaxLength = 5;
  1689. this->textBox_MfgID->Name = L"textBox_MfgID";
  1690. this->textBox_MfgID->Size = System::Drawing::Size(49, 20);
  1691. this->textBox_MfgID->TabIndex = 47;
  1692. this->textBox_MfgID->Text = L"12345";
  1693. //
  1694. // label_ModelNum
  1695. //
  1696. this->label_ModelNum->AutoSize = true;
  1697. this->label_ModelNum->Location = System::Drawing::Point(38, 79);
  1698. this->label_ModelNum->Name = L"label_ModelNum";
  1699. this->label_ModelNum->Size = System::Drawing::Size(49, 13);
  1700. this->label_ModelNum->TabIndex = 45;
  1701. this->label_ModelNum->Text = L"Model #:";
  1702. //
  1703. // tabPage_Common2
  1704. //
  1705. this->tabPage_Common2->Controls->Add(this->groupBox_P81Rx);
  1706. this->tabPage_Common2->Controls->Add(this->groupBox_P80Rx);
  1707. this->tabPage_Common2->Controls->Add(this->label_Common2);
  1708. this->tabPage_Common2->Location = System::Drawing::Point(4, 22);
  1709. this->tabPage_Common2->Name = L"tabPage_Common2";
  1710. this->tabPage_Common2->Padding = System::Windows::Forms::Padding(3);
  1711. this->tabPage_Common2->Size = System::Drawing::Size(389, 111);
  1712. this->tabPage_Common2->TabIndex = 12;
  1713. this->tabPage_Common2->Text = L"Common Rx";
  1714. this->tabPage_Common2->UseVisualStyleBackColor = true;
  1715. //
  1716. // groupBox_P81Rx
  1717. //
  1718. this->groupBox_P81Rx->Controls->Add(this->label_Glb_SoftwareVer);
  1719. this->groupBox_P81Rx->Controls->Add(this->label_Glb_SoftwareVerDisplay);
  1720. this->groupBox_P81Rx->Controls->Add(this->label_Glb_SerialNumDisplay);
  1721. this->groupBox_P81Rx->Controls->Add(this->label_Glb_SerialNum);
  1722. this->groupBox_P81Rx->Location = System::Drawing::Point(197, 26);
  1723. this->groupBox_P81Rx->Name = L"groupBox_P81Rx";
  1724. this->groupBox_P81Rx->Size = System::Drawing::Size(162, 79);
  1725. this->groupBox_P81Rx->TabIndex = 56;
  1726. this->groupBox_P81Rx->TabStop = false;
  1727. this->groupBox_P81Rx->Text = L"Page 81";
  1728. //
  1729. // label_Glb_SoftwareVer
  1730. //
  1731. this->label_Glb_SoftwareVer->AutoSize = true;
  1732. this->label_Glb_SoftwareVer->Location = System::Drawing::Point(15, 42);
  1733. this->label_Glb_SoftwareVer->Name = L"label_Glb_SoftwareVer";
  1734. this->label_Glb_SoftwareVer->Size = System::Drawing::Size(63, 13);
  1735. this->label_Glb_SoftwareVer->TabIndex = 28;
  1736. this->label_Glb_SoftwareVer->Text = L"Sw Version:";
  1737. //
  1738. // label_Glb_SoftwareVerDisplay
  1739. //
  1740. this->label_Glb_SoftwareVerDisplay->AutoSize = true;
  1741. this->label_Glb_SoftwareVerDisplay->Location = System::Drawing::Point(85, 42);
  1742. this->label_Glb_SoftwareVerDisplay->Name = L"label_Glb_SoftwareVerDisplay";
  1743. this->label_Glb_SoftwareVerDisplay->Size = System::Drawing::Size(16, 13);
  1744. this->label_Glb_SoftwareVerDisplay->TabIndex = 30;
  1745. this->label_Glb_SoftwareVerDisplay->Text = L"---";
  1746. //
  1747. // label_Glb_SerialNumDisplay
  1748. //
  1749. this->label_Glb_SerialNumDisplay->AutoSize = true;
  1750. this->label_Glb_SerialNumDisplay->Location = System::Drawing::Point(85, 29);
  1751. this->label_Glb_SerialNumDisplay->Name = L"label_Glb_SerialNumDisplay";
  1752. this->label_Glb_SerialNumDisplay->Size = System::Drawing::Size(16, 13);
  1753. this->label_Glb_SerialNumDisplay->TabIndex = 29;
  1754. this->label_Glb_SerialNumDisplay->Text = L"---";
  1755. //
  1756. // label_Glb_SerialNum
  1757. //
  1758. this->label_Glb_SerialNum->AutoSize = true;
  1759. this->label_Glb_SerialNum->Location = System::Drawing::Point(32, 29);
  1760. this->label_Glb_SerialNum->Name = L"label_Glb_SerialNum";
  1761. this->label_Glb_SerialNum->Size = System::Drawing::Size(46, 13);
  1762. this->label_Glb_SerialNum->TabIndex = 27;
  1763. this->label_Glb_SerialNum->Text = L"Serial #:";
  1764. //
  1765. // groupBox_P80Rx
  1766. //
  1767. this->groupBox_P80Rx->Controls->Add(this->label_Glb_HardwareVer);
  1768. this->groupBox_P80Rx->Controls->Add(this->label_Glb_ModelNum);
  1769. this->groupBox_P80Rx->Controls->Add(this->label_Glb_ManfIDDisplay);
  1770. this->groupBox_P80Rx->Controls->Add(this->label_Glb_ModelNumDisplay);
  1771. this->groupBox_P80Rx->Controls->Add(this->label_Glb_HardwareVerDisplay);
  1772. this->groupBox_P80Rx->Controls->Add(this->label_Glb_ManfID);
  1773. this->groupBox_P80Rx->Location = System::Drawing::Point(27, 26);
  1774. this->groupBox_P80Rx->Name = L"groupBox_P80Rx";
  1775. this->groupBox_P80Rx->Size = System::Drawing::Size(164, 79);
  1776. this->groupBox_P80Rx->TabIndex = 55;
  1777. this->groupBox_P80Rx->TabStop = false;
  1778. this->groupBox_P80Rx->Text = L"Page 80";
  1779. //
  1780. // label_Glb_HardwareVer
  1781. //
  1782. this->label_Glb_HardwareVer->AutoSize = true;
  1783. this->label_Glb_HardwareVer->Location = System::Drawing::Point(13, 49);
  1784. this->label_Glb_HardwareVer->Name = L"label_Glb_HardwareVer";
  1785. this->label_Glb_HardwareVer->Size = System::Drawing::Size(64, 13);
  1786. this->label_Glb_HardwareVer->TabIndex = 27;
  1787. this->label_Glb_HardwareVer->Text = L"Hw Version:";
  1788. //
  1789. // label_Glb_ModelNum
  1790. //
  1791. this->label_Glb_ModelNum->AutoSize = true;
  1792. this->label_Glb_ModelNum->Location = System::Drawing::Point(28, 36);
  1793. this->label_Glb_ModelNum->Name = L"label_Glb_ModelNum";
  1794. this->label_Glb_ModelNum->Size = System::Drawing::Size(49, 13);
  1795. this->label_Glb_ModelNum->TabIndex = 28;
  1796. this->label_Glb_ModelNum->Text = L"Model #:";
  1797. //
  1798. // label_Glb_ManfIDDisplay
  1799. //
  1800. this->label_Glb_ManfIDDisplay->Location = System::Drawing::Point(83, 23);
  1801. this->label_Glb_ManfIDDisplay->Name = L"label_Glb_ManfIDDisplay";
  1802. this->label_Glb_ManfIDDisplay->Size = System::Drawing::Size(50, 13);
  1803. this->label_Glb_ManfIDDisplay->TabIndex = 29;
  1804. this->label_Glb_ManfIDDisplay->Text = L"---";
  1805. //
  1806. // label_Glb_ModelNumDisplay
  1807. //
  1808. this->label_Glb_ModelNumDisplay->Location = System::Drawing::Point(83, 36);
  1809. this->label_Glb_ModelNumDisplay->Name = L"label_Glb_ModelNumDisplay";
  1810. this->label_Glb_ModelNumDisplay->Size = System::Drawing::Size(50, 13);
  1811. this->label_Glb_ModelNumDisplay->TabIndex = 30;
  1812. this->label_Glb_ModelNumDisplay->Text = L"---";
  1813. //
  1814. // label_Glb_HardwareVerDisplay
  1815. //
  1816. this->label_Glb_HardwareVerDisplay->Location = System::Drawing::Point(83, 49);
  1817. this->label_Glb_HardwareVerDisplay->Name = L"label_Glb_HardwareVerDisplay";
  1818. this->label_Glb_HardwareVerDisplay->Size = System::Drawing::Size(27, 13);
  1819. this->label_Glb_HardwareVerDisplay->TabIndex = 31;
  1820. this->label_Glb_HardwareVerDisplay->Text = L"---";
  1821. //
  1822. // label_Glb_ManfID
  1823. //
  1824. this->label_Glb_ManfID->AutoSize = true;
  1825. this->label_Glb_ManfID->Location = System::Drawing::Point(26, 23);
  1826. this->label_Glb_ManfID->Name = L"label_Glb_ManfID";
  1827. this->label_Glb_ManfID->Size = System::Drawing::Size(51, 13);
  1828. this->label_Glb_ManfID->TabIndex = 26;
  1829. this->label_Glb_ManfID->Text = L"Manf. ID:";
  1830. //
  1831. // label_Common2
  1832. //
  1833. this->label_Common2->AutoSize = true;
  1834. this->label_Common2->Location = System::Drawing::Point(6, 8);
  1835. this->label_Common2->Name = L"label_Common2";
  1836. this->label_Common2->Size = System::Drawing::Size(137, 13);
  1837. this->label_Common2->TabIndex = 54;
  1838. this->label_Common2->Text = L"LEV Display Common Data:";
  1839. //
  1840. // panel_Display
  1841. //
  1842. this->panel_Display->BorderStyle = System::Windows::Forms::BorderStyle::Fixed3D;
  1843. this->panel_Display->Controls->Add(this->label_StatusAssistVal);
  1844. this->panel_Display->Controls->Add(this->label_StatusAssist);
  1845. this->panel_Display->Controls->Add(this->label_StatusSpeedVal);
  1846. this->panel_Display->Controls->Add(this->label_StatusSpeed);
  1847. this->panel_Display->Controls->Add(this->label_StatusOdoVal);
  1848. this->panel_Display->Controls->Add(this->label_StatusOdometer);
  1849. this->panel_Display->Controls->Add(this->label_TxStatusBox);
  1850. this->panel_Display->Location = System::Drawing::Point(58, 188);
  1851. this->panel_Display->Name = L"panel_Display";
  1852. this->panel_Display->Size = System::Drawing::Size(200, 90);
  1853. this->panel_Display->TabIndex = 1;
  1854. //
  1855. // label_StatusAssistVal
  1856. //
  1857. this->label_StatusAssistVal->AutoSize = true;
  1858. this->label_StatusAssistVal->Location = System::Drawing::Point(126, 61);
  1859. this->label_StatusAssistVal->Name = L"label_StatusAssistVal";
  1860. this->label_StatusAssistVal->Size = System::Drawing::Size(16, 13);
  1861. this->label_StatusAssistVal->TabIndex = 29;
  1862. this->label_StatusAssistVal->Text = L"---";
  1863. //
  1864. // label_StatusAssist
  1865. //
  1866. this->label_StatusAssist->AutoSize = true;
  1867. this->label_StatusAssist->Location = System::Drawing::Point(6, 61);
  1868. this->label_StatusAssist->Name = L"label_StatusAssist";
  1869. this->label_StatusAssist->Size = System::Drawing::Size(48, 13);
  1870. this->label_StatusAssist->TabIndex = 28;
  1871. this->label_StatusAssist->Text = L"% Assist:";
  1872. //
  1873. // label_StatusSpeedVal
  1874. //
  1875. this->label_StatusSpeedVal->AutoSize = true;
  1876. this->label_StatusSpeedVal->Location = System::Drawing::Point(126, 31);
  1877. this->label_StatusSpeedVal->Name = L"label_StatusSpeedVal";
  1878. this->label_StatusSpeedVal->Size = System::Drawing::Size(16, 13);
  1879. this->label_StatusSpeedVal->TabIndex = 27;
  1880. this->label_StatusSpeedVal->Text = L"---";
  1881. //
  1882. // label_StatusSpeed
  1883. //
  1884. this->label_StatusSpeed->AutoSize = true;
  1885. this->label_StatusSpeed->Location = System::Drawing::Point(6, 31);
  1886. this->label_StatusSpeed->Name = L"label_StatusSpeed";
  1887. this->label_StatusSpeed->Size = System::Drawing::Size(93, 13);
  1888. this->label_StatusSpeed->TabIndex = 26;
  1889. this->label_StatusSpeed->Text = L"Speed (0.1 km/h):";
  1890. //
  1891. // label_StatusOdoVal
  1892. //
  1893. this->label_StatusOdoVal->AutoSize = true;
  1894. this->label_StatusOdoVal->Location = System::Drawing::Point(126, 46);
  1895. this->label_StatusOdoVal->Name = L"label_StatusOdoVal";
  1896. this->label_StatusOdoVal->Size = System::Drawing::Size(16, 13);
  1897. this->label_StatusOdoVal->TabIndex = 25;
  1898. this->label_StatusOdoVal->Text = L"---";
  1899. //
  1900. // label_StatusOdometer
  1901. //
  1902. this->label_StatusOdometer->AutoSize = true;
  1903. this->label_StatusOdometer->Location = System::Drawing::Point(6, 46);
  1904. this->label_StatusOdometer->Name = L"label_StatusOdometer";
  1905. this->label_StatusOdometer->Size = System::Drawing::Size(103, 13);
  1906. this->label_StatusOdometer->TabIndex = 24;
  1907. this->label_StatusOdometer->Text = L"Odometer (0.01 km):";
  1908. //
  1909. // label_TxStatusBox
  1910. //
  1911. this->label_TxStatusBox->AutoSize = true;
  1912. this->label_TxStatusBox->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 8.25F, System::Drawing::FontStyle::Underline,
  1913. System::Drawing::GraphicsUnit::Point, static_cast<System::Byte>(0)));
  1914. this->label_TxStatusBox->Location = System::Drawing::Point(3, 8);
  1915. this->label_TxStatusBox->Name = L"label_TxStatusBox";
  1916. this->label_TxStatusBox->Size = System::Drawing::Size(139, 13);
  1917. this->label_TxStatusBox->TabIndex = 23;
  1918. this->label_TxStatusBox->Text = L"Current LEV Tx Data (Raw):";
  1919. //
  1920. // tabPage_P16TravelMode
  1921. //
  1922. this->tabPage_P16TravelMode->Controls->Add(this->checkBox_P16TravelMode);
  1923. this->tabPage_P16TravelMode->Controls->Add(this->label_P16Regen);
  1924. this->tabPage_P16TravelMode->Controls->Add(this->label_P16Assist);
  1925. this->tabPage_P16TravelMode->Controls->Add(this->comboBox_P16Assist);
  1926. this->tabPage_P16TravelMode->Controls->Add(this->comboBox_P16Regen);
  1927. this->tabPage_P16TravelMode->Location = System::Drawing::Point(4, 22);
  1928. this->tabPage_P16TravelMode->Name = L"tabPage_P16TravelMode";
  1929. this->tabPage_P16TravelMode->Padding = System::Windows::Forms::Padding(3);
  1930. this->tabPage_P16TravelMode->Size = System::Drawing::Size(375, 77);
  1931. this->tabPage_P16TravelMode->TabIndex = 0;
  1932. this->tabPage_P16TravelMode->Text = L"Travel Mode";
  1933. this->tabPage_P16TravelMode->UseVisualStyleBackColor = true;
  1934. //
  1935. // checkBox_P16TravelMode
  1936. //
  1937. this->checkBox_P16TravelMode->AutoSize = true;
  1938. this->checkBox_P16TravelMode->Location = System::Drawing::Point(6, 6);
  1939. this->checkBox_P16TravelMode->Name = L"checkBox_P16TravelMode";
  1940. this->checkBox_P16TravelMode->Size = System::Drawing::Size(102, 17);
  1941. this->checkBox_P16TravelMode->TabIndex = 23;
  1942. this->checkBox_P16TravelMode->Text = L"Mode Unknown";
  1943. this->checkBox_P16TravelMode->UseVisualStyleBackColor = true;
  1944. //
  1945. // label_P16Regen
  1946. //
  1947. this->label_P16Regen->AutoSize = true;
  1948. this->label_P16Regen->Location = System::Drawing::Point(183, 26);
  1949. this->label_P16Regen->Name = L"label_P16Regen";
  1950. this->label_P16Regen->Size = System::Drawing::Size(140, 13);
  1951. this->label_P16Regen->TabIndex = 22;
  1952. this->label_P16Regen->Text = L"Current Regenerative Level:";
  1953. //
  1954. // label_P16Assist
  1955. //
  1956. this->label_P16Assist->AutoSize = true;
  1957. this->label_P16Assist->Location = System::Drawing::Point(51, 26);
  1958. this->label_P16Assist->Name = L"label_P16Assist";
  1959. this->label_P16Assist->Size = System::Drawing::Size(103, 13);
  1960. this->label_P16Assist->TabIndex = 21;
  1961. this->label_P16Assist->Text = L"Current Assist Level:";
  1962. //
  1963. // comboBox_P16Assist
  1964. //
  1965. this->comboBox_P16Assist->FormattingEnabled = true;
  1966. this->comboBox_P16Assist->Items->AddRange(gcnew cli::array< System::Object^ >(8) {L"Assist Off", L"Assist 1", L"Assist 2",
  1967. L"Assist 3", L"Assist 4", L"Assist 5", L"Assist 6", L"Assist 7"});
  1968. this->comboBox_P16Assist->Location = System::Drawing::Point(54, 42);
  1969. this->comboBox_P16Assist->Name = L"comboBox_P16Assist";
  1970. this->comboBox_P16Assist->Size = System::Drawing::Size(110, 21);
  1971. this->comboBox_P16Assist->TabIndex = 20;
  1972. this->comboBox_P16Assist->Text = L"Assist Off";
  1973. //
  1974. // comboBox_P16Regen
  1975. //
  1976. this->comboBox_P16Regen->FormattingEnabled = true;
  1977. this->comboBox_P16Regen->Items->AddRange(gcnew cli::array< System::Object^ >(8) {L"Regenerative Off", L"Regenerative 1",
  1978. L"Regenerative 2", L"Regenerative 3", L"Regenerative 4", L"Regenerative 5", L"Regenerative 6", L"Regenerative 7"});
  1979. this->comboBox_P16Regen->Location = System::Drawing::Point(186, 42);
  1980. this->comboBox_P16Regen->Name = L"comboBox_P16Regen";
  1981. this->comboBox_P16Regen->Size = System::Drawing::Size(110, 21);
  1982. this->comboBox_P16Regen->TabIndex = 19;
  1983. this->comboBox_P16Regen->Text = L"Regenerative Off";
  1984. //
  1985. // tabPage_P16Command
  1986. //
  1987. this->tabPage_P16Command->Controls->Add(this->groupBox_P16Gear);
  1988. this->tabPage_P16Command->Controls->Add(this->checkBox_P16RightTurnOn);
  1989. this->tabPage_P16Command->Controls->Add(this->checkBox_P16LeftTurnOn);
  1990. this->tabPage_P16Command->Controls->Add(this->checkBox_P16HighBeamOn);
  1991. this->tabPage_P16Command->Controls->Add(this->checkBox_P16LightOn);
  1992. this->tabPage_P16Command->Location = System::Drawing::Point(4, 22);
  1993. this->tabPage_P16Command->Name = L"tabPage_P16Command";
  1994. this->tabPage_P16Command->Padding = System::Windows::Forms::Padding(3);
  1995. this->tabPage_P16Command->Size = System::Drawing::Size(375, 77);
  1996. this->tabPage_P16Command->TabIndex = 1;
  1997. this->tabPage_P16Command->Text = L"Display Command";
  1998. this->tabPage_P16Command->UseVisualStyleBackColor = true;
  1999. //
  2000. // groupBox_P16Gear
  2001. //
  2002. this->groupBox_P16Gear->Controls->Add(this->label_P16FrontGear);
  2003. this->groupBox_P16Gear->Controls->Add(this->comboBox_P16FrontGear);
  2004. this->groupBox_P16Gear->Controls->Add(this->label_P16RearGear);
  2005. this->groupBox_P16Gear->Controls->Add(this->comboBox_P16RearGear);
  2006. this->groupBox_P16Gear->Location = System::Drawing::Point(6, 5);
  2007. this->groupBox_P16Gear->Name = L"groupBox_P16Gear";
  2008. this->groupBox_P16Gear->Size = System::Drawing::Size(133, 67);
  2009. this->groupBox_P16Gear->TabIndex = 27;
  2010. this->groupBox_P16Gear->TabStop = false;
  2011. this->groupBox_P16Gear->Text = L"Current Gear";
  2012. //
  2013. // label_P16FrontGear
  2014. //
  2015. this->label_P16FrontGear->AutoSize = true;
  2016. this->label_P16FrontGear->Location = System::Drawing::Point(7, 18);
  2017. this->label_P16FrontGear->Name = L"label_P16FrontGear";
  2018. this->label_P16FrontGear->Size = System::Drawing::Size(60, 13);
  2019. this->label_P16FrontGear->TabIndex = 21;
  2020. this->label_P16FrontGear->Text = L"Front Gear:";
  2021. //
  2022. // comboBox_P16FrontGear
  2023. //
  2024. this->comboBox_P16FrontGear->FormattingEnabled = true;
  2025. this->comboBox_P16FrontGear->Items->AddRange(gcnew cli::array< System::Object^ >(4) {L"none", L"1", L"2", L"3"});
  2026. this->comboBox_P16FrontGear->Location = System::Drawing::Point(73, 15);
  2027. this->comboBox_P16FrontGear->Name = L"comboBox_P16FrontGear";
  2028. this->comboBox_P16FrontGear->Size = System::Drawing::Size(47, 21);
  2029. this->comboBox_P16FrontGear->TabIndex = 19;
  2030. this->comboBox_P16FrontGear->Text = L"none";
  2031. //
  2032. // label_P16RearGear
  2033. //
  2034. this->label_P16RearGear->AutoSize = true;
  2035. this->label_P16RearGear->Location = System::Drawing::Point(8, 43);
  2036. this->label_P16RearGear->Name = L"label_P16RearGear";
  2037. this->label_P16RearGear->Size = System::Drawing::Size(59, 13);
  2038. this->label_P16RearGear->TabIndex = 22;
  2039. this->label_P16RearGear->Text = L"Rear Gear:";
  2040. //
  2041. // comboBox_P16RearGear
  2042. //
  2043. this->comboBox_P16RearGear->FormattingEnabled = true;
  2044. this->comboBox_P16RearGear->Items->AddRange(gcnew cli::array< System::Object^ >(16) {L"none", L"1", L"2", L"3", L"4", L"5",
  2045. L"6", L"7", L"8", L"9", L"10", L"11", L"12", L"13", L"14", L"15"});
  2046. this->comboBox_P16RearGear->Location = System::Drawing::Point(73, 40);
  2047. this->comboBox_P16RearGear->Name = L"comboBox_P16RearGear";
  2048. this->comboBox_P16RearGear->Size = System::Drawing::Size(47, 21);
  2049. this->comboBox_P16RearGear->TabIndex = 20;
  2050. this->comboBox_P16RearGear->Text = L"none";
  2051. //
  2052. // checkBox_P16RightTurnOn
  2053. //
  2054. this->checkBox_P16RightTurnOn->AutoSize = true;
  2055. this->checkBox_P16RightTurnOn->Location = System::Drawing::Point(247, 41);
  2056. this->checkBox_P16RightTurnOn->Name = L"checkBox_P16RightTurnOn";
  2057. this->checkBox_P16RightTurnOn->Size = System::Drawing::Size(125, 17);
  2058. this->checkBox_P16RightTurnOn->TabIndex = 26;
  2059. this->checkBox_P16RightTurnOn->Text = L"Right Turn Signal On";
  2060. this->checkBox_P16RightTurnOn->UseVisualStyleBackColor = true;
  2061. //
  2062. // checkBox_P16LeftTurnOn
  2063. //
  2064. this->checkBox_P16LeftTurnOn->AutoSize = true;
  2065. this->checkBox_P16LeftTurnOn->Location = System::Drawing::Point(247, 18);
  2066. this->checkBox_P16LeftTurnOn->Name = L"checkBox_P16LeftTurnOn";
  2067. this->checkBox_P16LeftTurnOn->Size = System::Drawing::Size(118, 17);
  2068. this->checkBox_P16LeftTurnOn->TabIndex = 25;
  2069. this->checkBox_P16LeftTurnOn->Text = L"Left Turn Signal On";
  2070. this->checkBox_P16LeftTurnOn->UseVisualStyleBackColor = true;
  2071. //
  2072. // checkBox_P16HighBeamOn
  2073. //
  2074. this->checkBox_P16HighBeamOn->AutoSize = true;
  2075. this->checkBox_P16HighBeamOn->Location = System::Drawing::Point(149, 18);
  2076. this->checkBox_P16HighBeamOn->Name = L"checkBox_P16HighBeamOn";
  2077. this->checkBox_P16HighBeamOn->Size = System::Drawing::Size(95, 17);
  2078. this->checkBox_P16HighBeamOn->TabIndex = 24;
  2079. this->checkBox_P16HighBeamOn->Text = L"High Beam On";
  2080. this->checkBox_P16HighBeamOn->UseVisualStyleBackColor = true;
  2081. //
  2082. // checkBox_P16LightOn
  2083. //
  2084. this->checkBox_P16LightOn->AutoSize = true;
  2085. this->checkBox_P16LightOn->Location = System::Drawing::Point(149, 41);
  2086. this->checkBox_P16LightOn->Name = L"checkBox_P16LightOn";
  2087. this->checkBox_P16LightOn->Size = System::Drawing::Size(66, 17);
  2088. this->checkBox_P16LightOn->TabIndex = 23;
  2089. this->checkBox_P16LightOn->Text = L"Light On";
  2090. this->checkBox_P16LightOn->UseVisualStyleBackColor = true;
  2091. //
  2092. // tabPage_P16ManID
  2093. //
  2094. this->tabPage_P16ManID->Controls->Add(this->label_P16ManID);
  2095. this->tabPage_P16ManID->Controls->Add(this->numericUpDown_P16ManID);
  2096. this->tabPage_P16ManID->Location = System::Drawing::Point(4, 22);
  2097. this->tabPage_P16ManID->Name = L"tabPage_P16ManID";
  2098. this->tabPage_P16ManID->Padding = System::Windows::Forms::Padding(3);
  2099. this->tabPage_P16ManID->Size = System::Drawing::Size(375, 77);
  2100. this->tabPage_P16ManID->TabIndex = 2;
  2101. this->tabPage_P16ManID->Text = L"Manufacturer ID";
  2102. this->tabPage_P16ManID->UseVisualStyleBackColor = true;
  2103. //
  2104. // label_P16ManID
  2105. //
  2106. this->label_P16ManID->AutoSize = true;
  2107. this->label_P16ManID->Location = System::Drawing::Point(114, 31);
  2108. this->label_P16ManID->Name = L"label_P16ManID";
  2109. this->label_P16ManID->Size = System::Drawing::Size(87, 13);
  2110. this->label_P16ManID->TabIndex = 1;
  2111. this->label_P16ManID->Text = L"Manufacturer ID:";
  2112. //
  2113. // numericUpDown_P16ManID
  2114. //
  2115. this->numericUpDown_P16ManID->Location = System::Drawing::Point(207, 29);
  2116. this->numericUpDown_P16ManID->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {65535, 0, 0, 0});
  2117. this->numericUpDown_P16ManID->Name = L"numericUpDown_P16ManID";
  2118. this->numericUpDown_P16ManID->Size = System::Drawing::Size(54, 20);
  2119. this->numericUpDown_P16ManID->TabIndex = 0;
  2120. this->numericUpDown_P16ManID->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) {65535, 0, 0, 0});
  2121. //
  2122. // LEVSensor
  2123. //
  2124. this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);
  2125. this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
  2126. this->ClientSize = System::Drawing::Size(794, 351);
  2127. this->Controls->Add(this->panel_Display);
  2128. this->Controls->Add(this->panel_Settings);
  2129. this->Name = L"LEVSensor";
  2130. this->Text = L"Light Electric Vehicle (LEV)";
  2131. this->panel_Settings->ResumeLayout(false);
  2132. this->tabControl_LEV->ResumeLayout(false);
  2133. this->tabPage_P1->ResumeLayout(false);
  2134. this->tabControl_P1->ResumeLayout(false);
  2135. this->tabPage_P1Mode->ResumeLayout(false);
  2136. this->tabPage_P1Mode->PerformLayout();
  2137. this->tabPage_P1State->ResumeLayout(false);
  2138. this->tabPage_P1State->PerformLayout();
  2139. this->tabPage_P1Gear->ResumeLayout(false);
  2140. this->tabPage_P1Gear->PerformLayout();
  2141. this->groupBox_P1CurrentGear->ResumeLayout(false);
  2142. this->groupBox_P1CurrentGear->PerformLayout();
  2143. this->tabPage_P1Error->ResumeLayout(false);
  2144. this->tabPage_P1Error->PerformLayout();
  2145. (cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->numericUpDown_P1CustomError))->EndInit();
  2146. this->tabPage_P1Speed->ResumeLayout(false);
  2147. this->tabPage_P1Speed->PerformLayout();
  2148. (cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->numericUpDown_P1Speed))->EndInit();
  2149. this->tabPage_P1Temp->ResumeLayout(false);
  2150. this->tabPage_P1Temp->PerformLayout();
  2151. this->tabPage_P2->ResumeLayout(false);
  2152. this->tabPage_P2->PerformLayout();
  2153. (cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->numericUpDown_P2Speed))->EndInit();
  2154. (cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->numericUpDown_P2Range))->EndInit();
  2155. (cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->numericUpDown_P2Distance))->EndInit();
  2156. this->tabPage_P3->ResumeLayout(false);
  2157. this->tabControl_Page3->ResumeLayout(false);
  2158. this->tabPage_P3BatterySOC->ResumeLayout(false);
  2159. this->tabPage_P3BatterySOC->PerformLayout();
  2160. this->groupBox_P3Charge->ResumeLayout(false);
  2161. this->groupBox_P3Charge->PerformLayout();
  2162. (cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->numericUpDown_P3Charge))->EndInit();
  2163. this->tabPage_P3Assist->ResumeLayout(false);
  2164. this->tabPage_P3Assist->PerformLayout();
  2165. (cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->numericUpDown_P3PercentAssist))->EndInit();
  2166. this->tabPage4->ResumeLayout(false);
  2167. this->tabControl_Page45->ResumeLayout(false);
  2168. this->tabPage_Page4->ResumeLayout(false);
  2169. this->tabPage_Page4->PerformLayout();
  2170. (cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->numericUpDown_P4ChargeCycle))->EndInit();
  2171. (cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->numericUpDown_P4DistanceOnCharge))->EndInit();
  2172. (cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->numericUpDown_P4FuelConsumption))->EndInit();
  2173. this->tabPage_Page4Cont->ResumeLayout(false);
  2174. this->groupBox_P4Voltage->ResumeLayout(false);
  2175. this->groupBox_P4Voltage->PerformLayout();
  2176. (cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->numericUpDown_P4Voltage))->EndInit();
  2177. this->tabPage_Page5->ResumeLayout(false);
  2178. this->tabPage_Page5->PerformLayout();
  2179. (cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->numericUpDown_P5Circum))->EndInit();
  2180. (cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->numericUpDown_P5RegenModes))->EndInit();
  2181. (cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->numericUpDwn_P5AssistModes))->EndInit();
  2182. this->tabPage_P16->ResumeLayout(false);
  2183. this->tabPage_P16->PerformLayout();
  2184. this->tabPage_Common1->ResumeLayout(false);
  2185. this->tabPage_Common1->PerformLayout();
  2186. this->tabPage_Common2->ResumeLayout(false);
  2187. this->tabPage_Common2->PerformLayout();
  2188. this->groupBox_P81Rx->ResumeLayout(false);
  2189. this->groupBox_P81Rx->PerformLayout();
  2190. this->groupBox_P80Rx->ResumeLayout(false);
  2191. this->groupBox_P80Rx->PerformLayout();
  2192. this->panel_Display->ResumeLayout(false);
  2193. this->panel_Display->PerformLayout();
  2194. this->tabPage_P16TravelMode->ResumeLayout(false);
  2195. this->tabPage_P16TravelMode->PerformLayout();
  2196. this->tabPage_P16Command->ResumeLayout(false);
  2197. this->tabPage_P16Command->PerformLayout();
  2198. this->groupBox_P16Gear->ResumeLayout(false);
  2199. this->groupBox_P16Gear->PerformLayout();
  2200. this->tabPage_P16ManID->ResumeLayout(false);
  2201. this->tabPage_P16ManID->PerformLayout();
  2202. (cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->numericUpDown_P16ManID))->EndInit();
  2203. this->ResumeLayout(false);
  2204. }
  2205. #pragma endregion
  2206. };