<html> <head> <META http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>TA Enhancement With Db4oTool</title> <link rel="stylesheet" type="text/css" href="../../../../../style.css"> </head> <body> <div class="CommonContent"> <div class="CommonContentArea"> <h1>TA Enhancement With Db4oTool</h1><script> //We attach this function to a browser object as a variable so that if multiple of these blocks are //present on the same page, then they will simply over-write eachother with the same function instead //of generating a naming collision. window.WikiCodeFormattingCopyToClipboard = function copyToClipboard(sID){ var sContent = document.getElementById(sID).innerText; if( window.clipboardData && clipboardData.setData ) { clipboardData.setData("Text", sContent); } else { alert("You must enable javascript access to your clipboard for this feature to work. Please referr to your browser documentation or Google search for instructions."); } } </script><p><font color="#990000">This topic applies to .NET version only</font> </p><p>TA instrumentation can be done by appilying<br></p><p> <a href="../../../../implementation_strategies/enhancement_tools/enhancement_for_.net/db4otool.html" class="wikiLink">Db4oTool</a> utility to the ready .NET assemblies:</p> <p><code>Db4oTool -ta assembly</code></p> <p>Let's look at a simple example. We will use SensorPanel class from <a href="../../../activation.html" class="wikiLink">Activation</a> example: </p> <span name="cs_wiki_filter" csw_filters="cs"> <div class="FormattedSourceCode"><div class="fscHeader"><span class="fscFileName">SensorPanelTA.cs</span></div><div class="fscCode"><pre ID="..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51"><div><!-- Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --><span style="color: #008080;">01</span><img id="..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_0_67_Open_Image" src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_0_67_Open_Text').style.display='none'; document.getElementById('..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_0_67_Closed_Image').style.display='inline'; document.getElementById('..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_0_67_Closed_Text').style.display='inline';"/><img id="..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_0_67_Closed_Image" src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_0_67_Closed_Text').style.display='none'; document.getElementById('..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_0_67_Open_Image').style.display='inline'; document.getElementById('..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_0_67_Open_Text').style.display='inline';"/><span id="..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_0_67_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">/**/</span><span id="..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_0_67_Open_Text"><span style="color: #008000;">/*</span><span style="color: #008000;"> Copyright (C) 2004 - 2007 db4objects Inc. </span><span style="color: #008000; text-decoration: underline;">http://www.db4o.com</span><span style="color: #008000;"> </span><span style="color: #008000;">*/</span></span><span style="color: #000000;"> </span><span style="color: #008080;">02</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/></span><span style="color: #0000FF;">using</span><span style="color: #000000;"> Db4objects.Db4o; </span><span style="color: #008080;">03</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/></span><span style="color: #0000FF;">using</span><span style="color: #000000;"> Db4objects.Db4o.Activation; </span><span style="color: #008080;">04</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/></span><span style="color: #0000FF;">using</span><span style="color: #000000;"> Db4objects.Db4o.TA; </span><span style="color: #008080;">05</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/> </span><span style="color: #008080;">06</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/></span><span style="color: #0000FF;">namespace</span><span style="color: #000000;"> Db4ojects.Db4odoc.TAExamples </span><span style="color: #008080;">07</span><span style="color: #000000;"><img id="..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_191_1525_Open_Image" src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_191_1525_Open_Text').style.display='none'; document.getElementById('..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_191_1525_Closed_Image').style.display='inline'; document.getElementById('..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_191_1525_Closed_Text').style.display='inline';"/><img id="..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_191_1525_Closed_Image" src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_191_1525_Closed_Text').style.display='none'; document.getElementById('..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_191_1525_Open_Image').style.display='inline'; document.getElementById('..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_191_1525_Open_Text').style.display='inline';"/></span><span id="..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_191_1525_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_191_1525_Open_Text"><span style="color: #000000;">{ </span><span style="color: #008080;">08</span><span style="color: #000000;"><img id="..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_224_261_Open_Image" src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_224_261_Open_Text').style.display='none'; document.getElementById('..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_224_261_Closed_Image').style.display='inline'; document.getElementById('..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_224_261_Closed_Text').style.display='inline';"/><img id="..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_224_261_Closed_Image" src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_224_261_Closed_Text').style.display='none'; document.getElementById('..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_224_261_Open_Image').style.display='inline'; document.getElementById('..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_224_261_Open_Text').style.display='inline';"/> </span><span style="color: #0000FF;">public</span><span style="color: #000000;"> </span><span style="color: #0000FF;">class</span><span style="color: #000000;"> SensorPanelTA </span><span id="..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_224_261_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">/**/</span><span id="..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_224_261_Open_Text"><span style="color: #008000;">/*</span><span style="color: #008000;">must implement Activatable for TA</span><span style="color: #008000;">*/</span></span><span style="color: #000000;"> </span><span style="color: #008080;">09</span><span style="color: #000000;"><img id="..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_266_1522_Open_Image" src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_266_1522_Open_Text').style.display='none'; document.getElementById('..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_266_1522_Closed_Image').style.display='inline'; document.getElementById('..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_266_1522_Closed_Text').style.display='inline';"/><img id="..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_266_1522_Closed_Image" src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_266_1522_Closed_Text').style.display='none'; document.getElementById('..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_266_1522_Open_Image').style.display='inline'; document.getElementById('..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_266_1522_Open_Text').style.display='inline';"/> </span><span id="..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_266_1522_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_266_1522_Open_Text"><span style="color: #000000;">{ </span><span style="color: #008080;">10</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #0000FF;">private</span><span style="color: #000000;"> </span><span style="color: #0000FF;">object</span><span style="color: #000000;"> _sensor; </span><span style="color: #008080;">11</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #008080;">12</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #0000FF;">private</span><span style="color: #000000;"> SensorPanelTA _next; </span><span style="color: #008080;">13</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #008080;">14</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #008080;">15</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #0000FF;">public</span><span style="color: #000000;"> SensorPanelTA() </span><span style="color: #008080;">16</span><span style="color: #000000;"><img id="..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_387_451_Open_Image" src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_387_451_Open_Text').style.display='none'; document.getElementById('..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_387_451_Closed_Image').style.display='inline'; document.getElementById('..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_387_451_Closed_Text').style.display='inline';"/><img id="..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_387_451_Closed_Image" src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_387_451_Closed_Text').style.display='none'; document.getElementById('..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_387_451_Open_Image').style.display='inline'; document.getElementById('..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_387_451_Open_Text').style.display='inline';"/> </span><span id="..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_387_451_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_387_451_Open_Text"><span style="color: #000000;">{ </span><span style="color: #008080;">17</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #008000;">//</span><span style="color: #008000;"> default constructor for instantiation</span><span style="color: #008000;"> </span><span style="color: #008080;">18</span><span style="color: #008000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"/></span><span style="color: #000000;"> }</span></span><span style="color: #000000;"> </span><span style="color: #008080;">19</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #008080;">20</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #0000FF;">public</span><span style="color: #000000;"> SensorPanelTA(</span><span style="color: #0000FF;">int</span><span style="color: #000000;"> value) </span><span style="color: #008080;">21</span><span style="color: #000000;"><img id="..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_501_541_Open_Image" src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_501_541_Open_Text').style.display='none'; document.getElementById('..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_501_541_Closed_Image').style.display='inline'; document.getElementById('..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_501_541_Closed_Text').style.display='inline';"/><img id="..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_501_541_Closed_Image" src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_501_541_Closed_Text').style.display='none'; document.getElementById('..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_501_541_Open_Image').style.display='inline'; document.getElementById('..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_501_541_Open_Text').style.display='inline';"/> </span><span id="..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_501_541_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_501_541_Open_Text"><span style="color: #000000;">{ </span><span style="color: #008080;">22</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> _sensor </span><span style="color: #000000;">=</span><span style="color: #000000;"> value; </span><span style="color: #008080;">23</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"/> }</span></span><span style="color: #000000;"> </span><span style="color: #008080;">24</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #008080;">25</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #008080;">26</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #0000FF;">public</span><span style="color: #000000;"> SensorPanelTA Next </span><span style="color: #008080;">27</span><span style="color: #000000;"><img id="..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_594_679_Open_Image" src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_594_679_Open_Text').style.display='none'; document.getElementById('..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_594_679_Closed_Image').style.display='inline'; document.getElementById('..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_594_679_Closed_Text').style.display='inline';"/><img id="..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_594_679_Closed_Image" src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_594_679_Closed_Text').style.display='none'; document.getElementById('..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_594_679_Open_Image').style.display='inline'; document.getElementById('..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_594_679_Open_Text').style.display='inline';"/> </span><span id="..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_594_679_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_594_679_Open_Text"><span style="color: #000000;">{ </span><span style="color: #008080;">28</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #0000FF;">get</span><span style="color: #000000;"> </span><span style="color: #008080;">29</span><span style="color: #000000;"><img id="..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_624_669_Open_Image" src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_624_669_Open_Text').style.display='none'; document.getElementById('..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_624_669_Closed_Image').style.display='inline'; document.getElementById('..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_624_669_Closed_Text').style.display='inline';"/><img id="..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_624_669_Closed_Image" src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_624_669_Closed_Text').style.display='none'; document.getElementById('..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_624_669_Open_Image').style.display='inline'; document.getElementById('..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_624_669_Open_Text').style.display='inline';"/> </span><span id="..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_624_669_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_624_669_Open_Text"><span style="color: #000000;">{ </span><span style="color: #008080;">30</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #0000FF;">return</span><span style="color: #000000;"> _next; </span><span style="color: #008080;">31</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"/> }</span></span><span style="color: #000000;"> </span><span style="color: #008080;">32</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"/> }</span></span><span style="color: #000000;"> </span><span style="color: #008080;">33</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #008080;">34</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #0000FF;">public</span><span style="color: #000000;"> </span><span style="color: #0000FF;">object</span><span style="color: #000000;"> Sensor </span><span style="color: #008080;">35</span><span style="color: #000000;"><img id="..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_718_805_Open_Image" src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_718_805_Open_Text').style.display='none'; document.getElementById('..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_718_805_Closed_Image').style.display='inline'; document.getElementById('..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_718_805_Closed_Text').style.display='inline';"/><img id="..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_718_805_Closed_Image" src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_718_805_Closed_Text').style.display='none'; document.getElementById('..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_718_805_Open_Image').style.display='inline'; document.getElementById('..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_718_805_Open_Text').style.display='inline';"/> </span><span id="..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_718_805_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_718_805_Open_Text"><span style="color: #000000;">{ </span><span style="color: #008080;">36</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #0000FF;">get</span><span style="color: #000000;"> </span><span style="color: #008080;">37</span><span style="color: #000000;"><img id="..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_748_795_Open_Image" src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_748_795_Open_Text').style.display='none'; document.getElementById('..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_748_795_Closed_Image').style.display='inline'; document.getElementById('..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_748_795_Closed_Text').style.display='inline';"/><img id="..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_748_795_Closed_Image" src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_748_795_Closed_Text').style.display='none'; document.getElementById('..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_748_795_Open_Image').style.display='inline'; document.getElementById('..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_748_795_Open_Text').style.display='inline';"/> </span><span id="..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_748_795_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_748_795_Open_Text"><span style="color: #000000;">{ </span><span style="color: #008080;">38</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #0000FF;">return</span><span style="color: #000000;"> _sensor; </span><span style="color: #008080;">39</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"/> }</span></span><span style="color: #000000;"> </span><span style="color: #008080;">40</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"/> }</span></span><span style="color: #000000;"> </span><span style="color: #008080;">41</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #008080;">42</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #0000FF;">public</span><span style="color: #000000;"> SensorPanelTA CreateList(</span><span style="color: #0000FF;">int</span><span style="color: #000000;"> length) </span><span style="color: #008080;">43</span><span style="color: #000000;"><img id="..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_867_920_Open_Image" src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_867_920_Open_Text').style.display='none'; document.getElementById('..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_867_920_Closed_Image').style.display='inline'; document.getElementById('..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_867_920_Closed_Text').style.display='inline';"/><img id="..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_867_920_Closed_Image" src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_867_920_Closed_Text').style.display='none'; document.getElementById('..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_867_920_Open_Image').style.display='inline'; document.getElementById('..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_867_920_Open_Text').style.display='inline';"/> </span><span id="..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_867_920_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_867_920_Open_Text"><span style="color: #000000;">{ </span><span style="color: #008080;">44</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #0000FF;">return</span><span style="color: #000000;"> CreateList(length, </span><span style="color: #800080;">1</span><span style="color: #000000;">); </span><span style="color: #008080;">45</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"/> }</span></span><span style="color: #000000;"> </span><span style="color: #008080;">46</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #008080;">47</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #0000FF;">public</span><span style="color: #000000;"> SensorPanelTA CreateList(</span><span style="color: #0000FF;">int</span><span style="color: #000000;"> length, </span><span style="color: #0000FF;">int</span><span style="color: #000000;"> first) </span><span style="color: #008080;">48</span><span style="color: #000000;"><img id="..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_993_1292_Open_Image" src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_993_1292_Open_Text').style.display='none'; document.getElementById('..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_993_1292_Closed_Image').style.display='inline'; document.getElementById('..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_993_1292_Closed_Text').style.display='inline';"/><img id="..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_993_1292_Closed_Image" src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_993_1292_Closed_Text').style.display='none'; document.getElementById('..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_993_1292_Open_Image').style.display='inline'; document.getElementById('..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_993_1292_Open_Text').style.display='inline';"/> </span><span id="..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_993_1292_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_993_1292_Open_Text"><span style="color: #000000;">{ </span><span style="color: #008080;">49</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #0000FF;">int</span><span style="color: #000000;"> val </span><span style="color: #000000;">=</span><span style="color: #000000;"> first; </span><span style="color: #008080;">50</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> SensorPanelTA root </span><span style="color: #000000;">=</span><span style="color: #000000;"> NewElement(first); </span><span style="color: #008080;">51</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> SensorPanelTA list </span><span style="color: #000000;">=</span><span style="color: #000000;"> root; </span><span style="color: #008080;">52</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #0000FF;">while</span><span style="color: #000000;"> (</span><span style="color: #000000;">--</span><span style="color: #000000;">length </span><span style="color: #000000;">></span><span style="color: #000000;"> </span><span style="color: #800080;">0</span><span style="color: #000000;">) </span><span style="color: #008080;">53</span><span style="color: #000000;"><img id="..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_1160_1257_Open_Image" src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_1160_1257_Open_Text').style.display='none'; document.getElementById('..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_1160_1257_Closed_Image').style.display='inline'; document.getElementById('..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_1160_1257_Closed_Text').style.display='inline';"/><img id="..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_1160_1257_Closed_Image" src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_1160_1257_Closed_Text').style.display='none'; document.getElementById('..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_1160_1257_Open_Image').style.display='inline'; document.getElementById('..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_1160_1257_Open_Text').style.display='inline';"/> </span><span id="..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_1160_1257_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_1160_1257_Open_Text"><span style="color: #000000;">{ </span><span style="color: #008080;">54</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> list._next </span><span style="color: #000000;">=</span><span style="color: #000000;"> NewElement(</span><span style="color: #000000;">++</span><span style="color: #000000;">val); </span><span style="color: #008080;">55</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> list </span><span style="color: #000000;">=</span><span style="color: #000000;"> list.Next; </span><span style="color: #008080;">56</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"/> }</span></span><span style="color: #000000;"> </span><span style="color: #008080;">57</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #0000FF;">return</span><span style="color: #000000;"> root; </span><span style="color: #008080;">58</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"/> }</span></span><span style="color: #000000;"> </span><span style="color: #008080;">59</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #008080;">60</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #0000FF;">protected</span><span style="color: #000000;"> SensorPanelTA NewElement(</span><span style="color: #0000FF;">int</span><span style="color: #000000;"> value) </span><span style="color: #008080;">61</span><span style="color: #000000;"><img id="..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_1356_1412_Open_Image" src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_1356_1412_Open_Text').style.display='none'; document.getElementById('..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_1356_1412_Closed_Image').style.display='inline'; document.getElementById('..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_1356_1412_Closed_Text').style.display='inline';"/><img id="..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_1356_1412_Closed_Image" src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_1356_1412_Closed_Text').style.display='none'; document.getElementById('..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_1356_1412_Open_Image').style.display='inline'; document.getElementById('..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_1356_1412_Open_Text').style.display='inline';"/> </span><span id="..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_1356_1412_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_1356_1412_Open_Text"><span style="color: #000000;">{ </span><span style="color: #008080;">62</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #0000FF;">return</span><span style="color: #000000;"> </span><span style="color: #0000FF;">new</span><span style="color: #000000;"> SensorPanelTA(value); </span><span style="color: #008080;">63</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"/> }</span></span><span style="color: #000000;"> </span><span style="color: #008080;">64</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #008080;">65</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #0000FF;">public</span><span style="color: #000000;"> </span><span style="color: #0000FF;">override</span><span style="color: #000000;"> </span><span style="color: #0000FF;">string</span><span style="color: #000000;"> ToString() </span><span style="color: #008080;">66</span><span style="color: #000000;"><img id="..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_1464_1515_Open_Image" src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_1464_1515_Open_Text').style.display='none'; document.getElementById('..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_1464_1515_Closed_Image').style.display='inline'; document.getElementById('..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_1464_1515_Closed_Text').style.display='inline';"/><img id="..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_1464_1515_Closed_Image" src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_1464_1515_Closed_Text').style.display='none'; document.getElementById('..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_1464_1515_Open_Image').style.display='inline'; document.getElementById('..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_1464_1515_Open_Text').style.display='inline';"/> </span><span id="..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_1464_1515_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="..BTAExamplesCS.ZipsSensorPanelTA.Cs_SensorPanelTA.Cs_486_51_1464_1515_Open_Text"><span style="color: #000000;">{ </span><span style="color: #008080;">67</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #0000FF;">return</span><span style="color: #000000;"> </span><span style="color: #800000;">"</span><span style="color: #800000;">Sensor #</span><span style="color: #800000;">"</span><span style="color: #000000;"> </span><span style="color: #000000;">+</span><span style="color: #000000;"> Sensor; </span><span style="color: #008080;">68</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"/> }</span></span><span style="color: #000000;"> </span><span style="color: #008080;">69</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #008080;">70</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"/> }</span></span><span style="color: #000000;"> </span><span style="color: #008080;">71</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #008080;">72</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockEnd.gif" align="top"/>}</span></span></div></pre></div></div> </span> <span name="cs_wiki_filter" csw_filters="vb"> <div class="FormattedSourceCode"><div class="fscHeader"><span class="fscFileName">SensorPanelTA.vb</span></div><div class="fscCode"><pre ID="..BTAExamplesVB.ZipsSensorPanelTA.Vb_SensorPanelTA.Vb_601_51"><div><!-- Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --><span style="color: #008080;">01</span><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/><span style="color: #008000;">'</span><span style="color: #008000;"> Copyright (C) 2004 - 2007 db4objects Inc. http://www.db4o.com</span><span style="color: #008000;"> </span><span style="color: #008080;">02</span><span style="color: #008000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/></span><span style="color: #0000FF;">Imports</span><span style="color: #000000;"> Db4objects.Db4o </span><span style="color: #008080;">03</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/></span><span style="color: #0000FF;">Imports</span><span style="color: #000000;"> Db4objects.Db4o.Activation </span><span style="color: #008080;">04</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/></span><span style="color: #0000FF;">Imports</span><span style="color: #000000;"> Db4objects.Db4o.TA </span><span style="color: #008080;">05</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/> </span><span style="color: #008080;">06</span><span style="color: #000000;"><img id="..BTAExamplesVB.ZipsSensorPanelTA.Vb_SensorPanelTA.Vb_601_51_151_1797_Open_Image" src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('..BTAExamplesVB.ZipsSensorPanelTA.Vb_SensorPanelTA.Vb_601_51_151_1797_Open_Text').style.display='none'; document.getElementById('..BTAExamplesVB.ZipsSensorPanelTA.Vb_SensorPanelTA.Vb_601_51_151_1797_Closed_Image').style.display='inline'; document.getElementById('..BTAExamplesVB.ZipsSensorPanelTA.Vb_SensorPanelTA.Vb_601_51_151_1797_Closed_Text').style.display='inline';"/><img id="..BTAExamplesVB.ZipsSensorPanelTA.Vb_SensorPanelTA.Vb_601_51_151_1797_Closed_Image" src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('..BTAExamplesVB.ZipsSensorPanelTA.Vb_SensorPanelTA.Vb_601_51_151_1797_Closed_Text').style.display='none'; document.getElementById('..BTAExamplesVB.ZipsSensorPanelTA.Vb_SensorPanelTA.Vb_601_51_151_1797_Open_Image').style.display='inline'; document.getElementById('..BTAExamplesVB.ZipsSensorPanelTA.Vb_SensorPanelTA.Vb_601_51_151_1797_Open_Text').style.display='inline';"/></span><span id="..BTAExamplesVB.ZipsSensorPanelTA.Vb_SensorPanelTA.Vb_601_51_151_1797_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">Namespace Db4ojects</span><span id="..BTAExamplesVB.ZipsSensorPanelTA.Vb_SensorPanelTA.Vb_601_51_151_1797_Open_Text"><span style="color: #0000FF;">Namespace</span><span style="color: #000000;"> Db4ojects.Db4odoc.TAExamples </span><span style="color: #008080;">07</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #008080;">08</span><span style="color: #000000;"><img id="..BTAExamplesVB.ZipsSensorPanelTA.Vb_SensorPanelTA.Vb_601_51_202_1783_Open_Image" src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('..BTAExamplesVB.ZipsSensorPanelTA.Vb_SensorPanelTA.Vb_601_51_202_1783_Open_Text').style.display='none'; document.getElementById('..BTAExamplesVB.ZipsSensorPanelTA.Vb_SensorPanelTA.Vb_601_51_202_1783_Closed_Image').style.display='inline'; document.getElementById('..BTAExamplesVB.ZipsSensorPanelTA.Vb_SensorPanelTA.Vb_601_51_202_1783_Closed_Text').style.display='inline';"/><img id="..BTAExamplesVB.ZipsSensorPanelTA.Vb_SensorPanelTA.Vb_601_51_202_1783_Closed_Image" src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('..BTAExamplesVB.ZipsSensorPanelTA.Vb_SensorPanelTA.Vb_601_51_202_1783_Closed_Text').style.display='none'; document.getElementById('..BTAExamplesVB.ZipsSensorPanelTA.Vb_SensorPanelTA.Vb_601_51_202_1783_Open_Image').style.display='inline'; document.getElementById('..BTAExamplesVB.ZipsSensorPanelTA.Vb_SensorPanelTA.Vb_601_51_202_1783_Open_Text').style.display='inline';"/> </span><span style="color: #0000FF;">Public</span><span style="color: #000000;"> </span><span id="..BTAExamplesVB.ZipsSensorPanelTA.Vb_SensorPanelTA.Vb_601_51_202_1783_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">Class SensorPanelTA</span><span id="..BTAExamplesVB.ZipsSensorPanelTA.Vb_SensorPanelTA.Vb_601_51_202_1783_Open_Text"><span style="color: #0000FF;">Class</span><span style="color: #000000;"> SensorPanelTA </span><span style="color: #008080;">09</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #008080;">10</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #0000FF;">Private</span><span style="color: #000000;"> _sensor </span><span style="color: #0000FF;">As</span><span style="color: #000000;"> </span><span style="color: #0000FF;">Object</span><span style="color: #000000;"> </span><span style="color: #008080;">11</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #0000FF;">Private</span><span style="color: #000000;"> _next </span><span style="color: #0000FF;">As</span><span style="color: #000000;"> SensorPanelTA </span><span style="color: #008080;">12</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #008080;">13</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #008080;">14</span><span style="color: #000000;"><img id="..BTAExamplesVB.ZipsSensorPanelTA.Vb_SensorPanelTA.Vb_601_51_322_347_Open_Image" src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('..BTAExamplesVB.ZipsSensorPanelTA.Vb_SensorPanelTA.Vb_601_51_322_347_Open_Text').style.display='none'; document.getElementById('..BTAExamplesVB.ZipsSensorPanelTA.Vb_SensorPanelTA.Vb_601_51_322_347_Closed_Image').style.display='inline'; document.getElementById('..BTAExamplesVB.ZipsSensorPanelTA.Vb_SensorPanelTA.Vb_601_51_322_347_Closed_Text').style.display='inline';"/><img id="..BTAExamplesVB.ZipsSensorPanelTA.Vb_SensorPanelTA.Vb_601_51_322_347_Closed_Image" src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('..BTAExamplesVB.ZipsSensorPanelTA.Vb_SensorPanelTA.Vb_601_51_322_347_Closed_Text').style.display='none'; document.getElementById('..BTAExamplesVB.ZipsSensorPanelTA.Vb_SensorPanelTA.Vb_601_51_322_347_Open_Image').style.display='inline'; document.getElementById('..BTAExamplesVB.ZipsSensorPanelTA.Vb_SensorPanelTA.Vb_601_51_322_347_Open_Text').style.display='inline';"/> </span><span style="color: #0000FF;">Public</span><span style="color: #000000;"> </span><span id="..BTAExamplesVB.ZipsSensorPanelTA.Vb_SensorPanelTA.Vb_601_51_322_347_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">Sub New()</span><span id="..BTAExamplesVB.ZipsSensorPanelTA.Vb_SensorPanelTA.Vb_601_51_322_347_Open_Text"><span style="color: #0000FF;">Sub</span><span style="color: #000000;"> </span><span style="color: #0000FF;">New</span><span style="color: #000000;">() </span><span style="color: #008080;">15</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"/> </span><span style="color: #0000FF;">End Sub</span></span><span style="color: #000000;"> </span><span style="color: #008080;">16</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #008080;">17</span><span style="color: #000000;"><img id="..BTAExamplesVB.ZipsSensorPanelTA.Vb_SensorPanelTA.Vb_601_51_364_439_Open_Image" src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('..BTAExamplesVB.ZipsSensorPanelTA.Vb_SensorPanelTA.Vb_601_51_364_439_Open_Text').style.display='none'; document.getElementById('..BTAExamplesVB.ZipsSensorPanelTA.Vb_SensorPanelTA.Vb_601_51_364_439_Closed_Image').style.display='inline'; document.getElementById('..BTAExamplesVB.ZipsSensorPanelTA.Vb_SensorPanelTA.Vb_601_51_364_439_Closed_Text').style.display='inline';"/><img id="..BTAExamplesVB.ZipsSensorPanelTA.Vb_SensorPanelTA.Vb_601_51_364_439_Closed_Image" src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('..BTAExamplesVB.ZipsSensorPanelTA.Vb_SensorPanelTA.Vb_601_51_364_439_Closed_Text').style.display='none'; document.getElementById('..BTAExamplesVB.ZipsSensorPanelTA.Vb_SensorPanelTA.Vb_601_51_364_439_Open_Image').style.display='inline'; document.getElementById('..BTAExamplesVB.ZipsSensorPanelTA.Vb_SensorPanelTA.Vb_601_51_364_439_Open_Text').style.display='inline';"/> </span><span style="color: #0000FF;">Public</span><span style="color: #000000;"> </span><span id="..BTAExamplesVB.ZipsSensorPanelTA.Vb_SensorPanelTA.Vb_601_51_364_439_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">Sub New()</span><span id="..BTAExamplesVB.ZipsSensorPanelTA.Vb_SensorPanelTA.Vb_601_51_364_439_Open_Text"><span style="color: #0000FF;">Sub</span><span style="color: #000000;"> </span><span style="color: #0000FF;">New</span><span style="color: #000000;">(</span><span style="color: #0000FF;">ByVal</span><span style="color: #000000;"> value </span><span style="color: #0000FF;">As</span><span style="color: #000000;"> </span><span style="color: #0000FF;">Integer</span><span style="color: #000000;">) </span><span style="color: #008080;">18</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> _sensor </span><span style="color: #000000;">=</span><span style="color: #000000;"> value </span><span style="color: #008080;">19</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"/> </span><span style="color: #0000FF;">End Sub</span></span><span style="color: #000000;"> </span><span style="color: #008080;">20</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #008080;">21</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #008080;">22</span><span style="color: #000000;"><img id="..BTAExamplesVB.ZipsSensorPanelTA.Vb_SensorPanelTA.Vb_601_51_474_598_Open_Image" src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('..BTAExamplesVB.ZipsSensorPanelTA.Vb_SensorPanelTA.Vb_601_51_474_598_Open_Text').style.display='none'; document.getElementById('..BTAExamplesVB.ZipsSensorPanelTA.Vb_SensorPanelTA.Vb_601_51_474_598_Closed_Image').style.display='inline'; document.getElementById('..BTAExamplesVB.ZipsSensorPanelTA.Vb_SensorPanelTA.Vb_601_51_474_598_Closed_Text').style.display='inline';"/><img id="..BTAExamplesVB.ZipsSensorPanelTA.Vb_SensorPanelTA.Vb_601_51_474_598_Closed_Image" src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('..BTAExamplesVB.ZipsSensorPanelTA.Vb_SensorPanelTA.Vb_601_51_474_598_Closed_Text').style.display='none'; document.getElementById('..BTAExamplesVB.ZipsSensorPanelTA.Vb_SensorPanelTA.Vb_601_51_474_598_Open_Image').style.display='inline'; document.getElementById('..BTAExamplesVB.ZipsSensorPanelTA.Vb_SensorPanelTA.Vb_601_51_474_598_Open_Text').style.display='inline';"/> </span><span style="color: #0000FF;">Public</span><span style="color: #000000;"> </span><span style="color: #0000FF;">ReadOnly</span><span style="color: #000000;"> </span><span id="..BTAExamplesVB.ZipsSensorPanelTA.Vb_SensorPanelTA.Vb_601_51_474_598_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">Property NextSensor()</span><span id="..BTAExamplesVB.ZipsSensorPanelTA.Vb_SensorPanelTA.Vb_601_51_474_598_Open_Text"><span style="color: #0000FF;">Property</span><span style="color: #000000;"> NextSensor() </span><span style="color: #0000FF;">As</span><span style="color: #000000;"> SensorPanelTA </span><span style="color: #008080;">23</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #0000FF;">Get</span><span style="color: #000000;"> </span><span style="color: #008080;">24</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #0000FF;">Return</span><span style="color: #000000;"> _next </span><span style="color: #008080;">25</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #0000FF;">End</span><span style="color: #000000;"> </span><span style="color: #0000FF;">Get</span><span style="color: #000000;"> </span><span style="color: #008080;">26</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"/> </span><span style="color: #0000FF;">End Property</span></span><span style="color: #000000;"> </span><span style="color: #008080;">27</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #008080;">28</span><span style="color: #000000;"><img id="..BTAExamplesVB.ZipsSensorPanelTA.Vb_SensorPanelTA.Vb_601_51_624_739_Open_Image" src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('..BTAExamplesVB.ZipsSensorPanelTA.Vb_SensorPanelTA.Vb_601_51_624_739_Open_Text').style.display='none'; document.getElementById('..BTAExamplesVB.ZipsSensorPanelTA.Vb_SensorPanelTA.Vb_601_51_624_739_Closed_Image').style.display='inline'; document.getElementById('..BTAExamplesVB.ZipsSensorPanelTA.Vb_SensorPanelTA.Vb_601_51_624_739_Closed_Text').style.display='inline';"/><img id="..BTAExamplesVB.ZipsSensorPanelTA.Vb_SensorPanelTA.Vb_601_51_624_739_Closed_Image" src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('..BTAExamplesVB.ZipsSensorPanelTA.Vb_SensorPanelTA.Vb_601_51_624_739_Closed_Text').style.display='none'; document.getElementById('..BTAExamplesVB.ZipsSensorPanelTA.Vb_SensorPanelTA.Vb_601_51_624_739_Open_Image').style.display='inline'; document.getElementById('..BTAExamplesVB.ZipsSensorPanelTA.Vb_SensorPanelTA.Vb_601_51_624_739_Open_Text').style.display='inline';"/> </span><span style="color: #0000FF;">Public</span><span style="color: #000000;"> </span><span style="color: #0000FF;">ReadOnly</span><span style="color: #000000;"> </span><span id="..BTAExamplesVB.ZipsSensorPanelTA.Vb_SensorPanelTA.Vb_601_51_624_739_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">Property Sensor()</span><span id="..BTAExamplesVB.ZipsSensorPanelTA.Vb_SensorPanelTA.Vb_601_51_624_739_Open_Text"><span style="color: #0000FF;">Property</span><span style="color: #000000;"> Sensor() </span><span style="color: #0000FF;">As</span><span style="color: #000000;"> </span><span style="color: #0000FF;">Object</span><span style="color: #000000;"> </span><span style="color: #008080;">29</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #0000FF;">Get</span><span style="color: #000000;"> </span><span style="color: #008080;">30</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #0000FF;">Return</span><span style="color: #000000;"> _sensor </span><span style="color: #008080;">31</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #0000FF;">End</span><span style="color: #000000;"> </span><span style="color: #0000FF;">Get</span><span style="color: #000000;"> </span><span style="color: #008080;">32</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"/> </span><span style="color: #0000FF;">End Property</span></span><span style="color: #000000;"> </span><span style="color: #008080;">33</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #008080;">34</span><span style="color: #000000;"><img id="..BTAExamplesVB.ZipsSensorPanelTA.Vb_SensorPanelTA.Vb_601_51_756_879_Open_Image" src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('..BTAExamplesVB.ZipsSensorPanelTA.Vb_SensorPanelTA.Vb_601_51_756_879_Open_Text').style.display='none'; document.getElementById('..BTAExamplesVB.ZipsSensorPanelTA.Vb_SensorPanelTA.Vb_601_51_756_879_Closed_Image').style.display='inline'; document.getElementById('..BTAExamplesVB.ZipsSensorPanelTA.Vb_SensorPanelTA.Vb_601_51_756_879_Closed_Text').style.display='inline';"/><img id="..BTAExamplesVB.ZipsSensorPanelTA.Vb_SensorPanelTA.Vb_601_51_756_879_Closed_Image" src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('..BTAExamplesVB.ZipsSensorPanelTA.Vb_SensorPanelTA.Vb_601_51_756_879_Closed_Text').style.display='none'; document.getElementById('..BTAExamplesVB.ZipsSensorPanelTA.Vb_SensorPanelTA.Vb_601_51_756_879_Open_Image').style.display='inline'; document.getElementById('..BTAExamplesVB.ZipsSensorPanelTA.Vb_SensorPanelTA.Vb_601_51_756_879_Open_Text').style.display='inline';"/> </span><span style="color: #0000FF;">Public</span><span style="color: #000000;"> </span><span id="..BTAExamplesVB.ZipsSensorPanelTA.Vb_SensorPanelTA.Vb_601_51_756_879_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">Function CreateList()</span><span id="..BTAExamplesVB.ZipsSensorPanelTA.Vb_SensorPanelTA.Vb_601_51_756_879_Open_Text"><span style="color: #0000FF;">Function</span><span style="color: #000000;"> CreateList(</span><span style="color: #0000FF;">ByVal</span><span style="color: #000000;"> length </span><span style="color: #0000FF;">As</span><span style="color: #000000;"> </span><span style="color: #0000FF;">Integer</span><span style="color: #000000;">) </span><span style="color: #0000FF;">As</span><span style="color: #000000;"> SensorPanelTA </span><span style="color: #008080;">35</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #0000FF;">Return</span><span style="color: #000000;"> CreateList(length, </span><span style="color: #800080;">1</span><span style="color: #000000;">) </span><span style="color: #008080;">36</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"/> </span><span style="color: #0000FF;">End Function</span></span><span style="color: #000000;"> </span><span style="color: #008080;">37</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #008080;">38</span><span style="color: #000000;"><img id="..BTAExamplesVB.ZipsSensorPanelTA.Vb_SensorPanelTA.Vb_601_51_896_1383_Open_Image" src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('..BTAExamplesVB.ZipsSensorPanelTA.Vb_SensorPanelTA.Vb_601_51_896_1383_Open_Text').style.display='none'; document.getElementById('..BTAExamplesVB.ZipsSensorPanelTA.Vb_SensorPanelTA.Vb_601_51_896_1383_Closed_Image').style.display='inline'; document.getElementById('..BTAExamplesVB.ZipsSensorPanelTA.Vb_SensorPanelTA.Vb_601_51_896_1383_Closed_Text').style.display='inline';"/><img id="..BTAExamplesVB.ZipsSensorPanelTA.Vb_SensorPanelTA.Vb_601_51_896_1383_Closed_Image" src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('..BTAExamplesVB.ZipsSensorPanelTA.Vb_SensorPanelTA.Vb_601_51_896_1383_Closed_Text').style.display='none'; document.getElementById('..BTAExamplesVB.ZipsSensorPanelTA.Vb_SensorPanelTA.Vb_601_51_896_1383_Open_Image').style.display='inline'; document.getElementById('..BTAExamplesVB.ZipsSensorPanelTA.Vb_SensorPanelTA.Vb_601_51_896_1383_Open_Text').style.display='inline';"/> </span><span style="color: #0000FF;">Public</span><span style="color: #000000;"> </span><span id="..BTAExamplesVB.ZipsSensorPanelTA.Vb_SensorPanelTA.Vb_601_51_896_1383_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">Function CreateList()</span><span id="..BTAExamplesVB.ZipsSensorPanelTA.Vb_SensorPanelTA.Vb_601_51_896_1383_Open_Text"><span style="color: #0000FF;">Function</span><span style="color: #000000;"> CreateList(</span><span style="color: #0000FF;">ByVal</span><span style="color: #000000;"> length </span><span style="color: #0000FF;">As</span><span style="color: #000000;"> </span><span style="color: #0000FF;">Integer</span><span style="color: #000000;">, </span><span style="color: #0000FF;">ByVal</span><span style="color: #000000;"> first </span><span style="color: #0000FF;">As</span><span style="color: #000000;"> </span><span style="color: #0000FF;">Integer</span><span style="color: #000000;">) </span><span style="color: #0000FF;">As</span><span style="color: #000000;"> SensorPanelTA </span><span style="color: #008080;">39</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #0000FF;">Dim</span><span style="color: #000000;"> </span><span style="color: #0000FF;">val</span><span style="color: #000000;"> </span><span style="color: #0000FF;">As</span><span style="color: #000000;"> </span><span style="color: #0000FF;">Integer</span><span style="color: #000000;"> </span><span style="color: #000000;">=</span><span style="color: #000000;"> first </span><span style="color: #008080;">40</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #0000FF;">Dim</span><span style="color: #000000;"> root </span><span style="color: #0000FF;">As</span><span style="color: #000000;"> SensorPanelTA </span><span style="color: #000000;">=</span><span style="color: #000000;"> NewElement(first) </span><span style="color: #008080;">41</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #0000FF;">Dim</span><span style="color: #000000;"> list </span><span style="color: #0000FF;">As</span><span style="color: #000000;"> SensorPanelTA </span><span style="color: #000000;">=</span><span style="color: #000000;"> root </span><span style="color: #008080;">42</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #0000FF;">While</span><span style="color: #000000;"> System.Threading.Interlocked.Decrement(length) </span><span style="color: #000000;">></span><span style="color: #000000;"> </span><span style="color: #800080;">0</span><span style="color: #000000;"> </span><span style="color: #008080;">43</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> list._next </span><span style="color: #000000;">=</span><span style="color: #000000;"> NewElement(System.Threading.Interlocked.Increment(</span><span style="color: #0000FF;">val</span><span style="color: #000000;">)) </span><span style="color: #008080;">44</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> list </span><span style="color: #000000;">=</span><span style="color: #000000;"> list.NextSensor </span><span style="color: #008080;">45</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #0000FF;">End</span><span style="color: #000000;"> </span><span style="color: #0000FF;">While</span><span style="color: #000000;"> </span><span style="color: #008080;">46</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #0000FF;">Return</span><span style="color: #000000;"> root </span><span style="color: #008080;">47</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"/> </span><span style="color: #0000FF;">End Function</span></span><span style="color: #000000;"> </span><span style="color: #008080;">48</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #008080;">49</span><span style="color: #000000;"><img id="..BTAExamplesVB.ZipsSensorPanelTA.Vb_SensorPanelTA.Vb_601_51_1403_1528_Open_Image" src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('..BTAExamplesVB.ZipsSensorPanelTA.Vb_SensorPanelTA.Vb_601_51_1403_1528_Open_Text').style.display='none'; document.getElementById('..BTAExamplesVB.ZipsSensorPanelTA.Vb_SensorPanelTA.Vb_601_51_1403_1528_Closed_Image').style.display='inline'; document.getElementById('..BTAExamplesVB.ZipsSensorPanelTA.Vb_SensorPanelTA.Vb_601_51_1403_1528_Closed_Text').style.display='inline';"/><img id="..BTAExamplesVB.ZipsSensorPanelTA.Vb_SensorPanelTA.Vb_601_51_1403_1528_Closed_Image" src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('..BTAExamplesVB.ZipsSensorPanelTA.Vb_SensorPanelTA.Vb_601_51_1403_1528_Closed_Text').style.display='none'; document.getElementById('..BTAExamplesVB.ZipsSensorPanelTA.Vb_SensorPanelTA.Vb_601_51_1403_1528_Open_Image').style.display='inline'; document.getElementById('..BTAExamplesVB.ZipsSensorPanelTA.Vb_SensorPanelTA.Vb_601_51_1403_1528_Open_Text').style.display='inline';"/> </span><span style="color: #0000FF;">Protected</span><span style="color: #000000;"> </span><span id="..BTAExamplesVB.ZipsSensorPanelTA.Vb_SensorPanelTA.Vb_601_51_1403_1528_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">Function NewElement()</span><span id="..BTAExamplesVB.ZipsSensorPanelTA.Vb_SensorPanelTA.Vb_601_51_1403_1528_Open_Text"><span style="color: #0000FF;">Function</span><span style="color: #000000;"> NewElement(</span><span style="color: #0000FF;">ByVal</span><span style="color: #000000;"> value </span><span style="color: #0000FF;">As</span><span style="color: #000000;"> </span><span style="color: #0000FF;">Integer</span><span style="color: #000000;">) </span><span style="color: #0000FF;">As</span><span style="color: #000000;"> SensorPanelTA </span><span style="color: #008080;">50</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #0000FF;">Return</span><span style="color: #000000;"> </span><span style="color: #0000FF;">New</span><span style="color: #000000;"> SensorPanelTA(value) </span><span style="color: #008080;">51</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"/> </span><span style="color: #0000FF;">End Function</span></span><span style="color: #000000;"> </span><span style="color: #008080;">52</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #008080;">53</span><span style="color: #000000;"><img id="..BTAExamplesVB.ZipsSensorPanelTA.Vb_SensorPanelTA.Vb_601_51_1565_1769_Open_Image" src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('..BTAExamplesVB.ZipsSensorPanelTA.Vb_SensorPanelTA.Vb_601_51_1565_1769_Open_Text').style.display='none'; document.getElementById('..BTAExamplesVB.ZipsSensorPanelTA.Vb_SensorPanelTA.Vb_601_51_1565_1769_Closed_Image').style.display='inline'; document.getElementById('..BTAExamplesVB.ZipsSensorPanelTA.Vb_SensorPanelTA.Vb_601_51_1565_1769_Closed_Text').style.display='inline';"/><img id="..BTAExamplesVB.ZipsSensorPanelTA.Vb_SensorPanelTA.Vb_601_51_1565_1769_Closed_Image" src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('..BTAExamplesVB.ZipsSensorPanelTA.Vb_SensorPanelTA.Vb_601_51_1565_1769_Closed_Text').style.display='none'; document.getElementById('..BTAExamplesVB.ZipsSensorPanelTA.Vb_SensorPanelTA.Vb_601_51_1565_1769_Open_Image').style.display='inline'; document.getElementById('..BTAExamplesVB.ZipsSensorPanelTA.Vb_SensorPanelTA.Vb_601_51_1565_1769_Open_Text').style.display='inline';"/> </span><span style="color: #0000FF;">Public</span><span style="color: #000000;"> </span><span style="color: #0000FF;">Overloads</span><span style="color: #000000;"> </span><span style="color: #0000FF;">Overrides</span><span style="color: #000000;"> </span><span id="..BTAExamplesVB.ZipsSensorPanelTA.Vb_SensorPanelTA.Vb_601_51_1565_1769_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">Function ToString()</span><span id="..BTAExamplesVB.ZipsSensorPanelTA.Vb_SensorPanelTA.Vb_601_51_1565_1769_Open_Text"><span style="color: #0000FF;">Function</span><span style="color: #000000;"> ToString() </span><span style="color: #0000FF;">As</span><span style="color: #000000;"> </span><span style="color: #0000FF;">String</span><span style="color: #000000;"> </span><span style="color: #008080;">54</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #0000FF;">If</span><span style="color: #000000;"> Sensor </span><span style="color: #0000FF;">Is</span><span style="color: #000000;"> </span><span style="color: #0000FF;">Nothing</span><span style="color: #000000;"> </span><span style="color: #0000FF;">Then</span><span style="color: #000000;"> </span><span style="color: #008080;">55</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #0000FF;">Return</span><span style="color: #000000;"> </span><span style="color: #800000;">""</span><span style="color: #000000;"> </span><span style="color: #008080;">56</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #0000FF;">Else</span><span style="color: #000000;"> </span><span style="color: #008080;">57</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #0000FF;">Return</span><span style="color: #000000;"> </span><span style="color: #800000;">"</span><span style="color: #800000;">Sensor #</span><span style="color: #800000;">"</span><span style="color: #000000;"> </span><span style="color: #000000;">+</span><span style="color: #000000;"> Sensor.ToString() </span><span style="color: #008080;">58</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #0000FF;">End</span><span style="color: #000000;"> </span><span style="color: #0000FF;">If</span><span style="color: #000000;"> </span><span style="color: #008080;">59</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"/> </span><span style="color: #0000FF;">End Function</span></span><span style="color: #000000;"> </span><span style="color: #008080;">60</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"/> </span><span style="color: #0000FF;">End Class</span></span><span style="color: #000000;"> </span><span style="color: #008080;">61</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockEnd.gif" align="top"/></span><span style="color: #0000FF;">End Namespace</span></span></div></pre></div></div> </span> <p>In your code you will need to add Transparent Activation support to the configuration:</p> <span name="cs_wiki_filter" csw_filters="cs"> <div class="FormattedSourceCode"><div class="fscHeader"><span class="fscFileName">TAExample.cs: <span class="fscMemberName">ConfigureTA</span></span></div><div class="fscCode"><pre ID="..BTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_ConfigureTA_814_59"><div><!-- Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --><span style="color: #008080;">1</span><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/><span style="color: #0000FF;">private</span><span style="color: #000000;"> </span><span style="color: #0000FF;">static</span><span style="color: #000000;"> IConfiguration ConfigureTA() </span><span style="color: #008080;">2</span><span style="color: #000000;"><img id="..BTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_ConfigureTA_814_59_52_357_Open_Image" src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('..BTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_ConfigureTA_814_59_52_357_Open_Text').style.display='none'; document.getElementById('..BTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_ConfigureTA_814_59_52_357_Closed_Image').style.display='inline'; document.getElementById('..BTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_ConfigureTA_814_59_52_357_Closed_Text').style.display='inline';"/><img id="..BTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_ConfigureTA_814_59_52_357_Closed_Image" src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('..BTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_ConfigureTA_814_59_52_357_Closed_Text').style.display='none'; document.getElementById('..BTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_ConfigureTA_814_59_52_357_Open_Image').style.display='inline'; document.getElementById('..BTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_ConfigureTA_814_59_52_357_Open_Text').style.display='inline';"/> </span><span id="..BTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_ConfigureTA_814_59_52_357_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="..BTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_ConfigureTA_814_59_52_357_Open_Text"><span style="color: #000000;">{ </span><span style="color: #008080;">3</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> IConfiguration configuration </span><span style="color: #000000;">=</span><span style="color: #000000;"> Db4oFactory.NewConfiguration(); </span><span style="color: #008080;">4</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #008000;">//</span><span style="color: #008000;"> set normal activation to 0</span><span style="color: #008000;"> </span><span style="color: #008080;">5</span><span style="color: #008000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/></span><span style="color: #000000;"> configuration.ActivationDepth(</span><span style="color: #800080;">0</span><span style="color: #000000;">); </span><span style="color: #008080;">6</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #008000;">//</span><span style="color: #008000;"> add TA support</span><span style="color: #008000;"> </span><span style="color: #008080;">7</span><span style="color: #008000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/></span><span style="color: #000000;"> configuration.Add(</span><span style="color: #0000FF;">new</span><span style="color: #000000;"> TransparentActivationSupport()); </span><span style="color: #008080;">8</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #0000FF;">return</span><span style="color: #000000;"> configuration; </span><span style="color: #008080;">9</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockEnd.gif" align="top"/> }</span></span></div></pre></div></div> <div class="FormattedSourceCode"><div class="fscHeader"><span class="fscFileName">TAExample.cs: <span class="fscMemberName">StoreSensorPanel</span></span></div><div class="fscCode"><pre ID="..BTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_StoreSensorPanel_877_64"><div><!-- Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --><span style="color: #008080;">01</span><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/><span style="color: #0000FF;">private</span><span style="color: #000000;"> </span><span style="color: #0000FF;">static</span><span style="color: #000000;"> </span><span style="color: #0000FF;">void</span><span style="color: #000000;"> StoreSensorPanel() </span><span style="color: #008080;">02</span><span style="color: #000000;"><img id="..BTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_StoreSensorPanel_877_64_47_573_Open_Image" src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('..BTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_StoreSensorPanel_877_64_47_573_Open_Text').style.display='none'; document.getElementById('..BTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_StoreSensorPanel_877_64_47_573_Closed_Image').style.display='inline'; document.getElementById('..BTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_StoreSensorPanel_877_64_47_573_Closed_Text').style.display='inline';"/><img id="..BTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_StoreSensorPanel_877_64_47_573_Closed_Image" src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('..BTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_StoreSensorPanel_877_64_47_573_Closed_Text').style.display='none'; document.getElementById('..BTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_StoreSensorPanel_877_64_47_573_Open_Image').style.display='inline'; document.getElementById('..BTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_StoreSensorPanel_877_64_47_573_Open_Text').style.display='inline';"/> </span><span id="..BTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_StoreSensorPanel_877_64_47_573_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="..BTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_StoreSensorPanel_877_64_47_573_Open_Text"><span style="color: #000000;">{ </span><span style="color: #008080;">03</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> File.Delete(Db4oFileName); </span><span style="color: #008080;">04</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> IObjectContainer container </span><span style="color: #000000;">=</span><span style="color: #000000;"> Database(Db4oFactory.NewConfiguration()); </span><span style="color: #008080;">05</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #0000FF;">if</span><span style="color: #000000;"> (container </span><span style="color: #000000;">!=</span><span style="color: #000000;"> </span><span style="color: #0000FF;">null</span><span style="color: #000000;">) </span><span style="color: #008080;">06</span><span style="color: #000000;"><img id="..BTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_StoreSensorPanel_877_64_218_563_Open_Image" src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('..BTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_StoreSensorPanel_877_64_218_563_Open_Text').style.display='none'; document.getElementById('..BTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_StoreSensorPanel_877_64_218_563_Closed_Image').style.display='inline'; document.getElementById('..BTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_StoreSensorPanel_877_64_218_563_Closed_Text').style.display='inline';"/><img id="..BTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_StoreSensorPanel_877_64_218_563_Closed_Image" src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('..BTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_StoreSensorPanel_877_64_218_563_Closed_Text').style.display='none'; document.getElementById('..BTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_StoreSensorPanel_877_64_218_563_Open_Image').style.display='inline'; document.getElementById('..BTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_StoreSensorPanel_877_64_218_563_Open_Text').style.display='inline';"/> </span><span id="..BTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_StoreSensorPanel_877_64_218_563_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="..BTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_StoreSensorPanel_877_64_218_563_Open_Text"><span style="color: #000000;">{ </span><span style="color: #008080;">07</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #0000FF;">try</span><span style="color: #000000;"> </span><span style="color: #008080;">08</span><span style="color: #000000;"><img id="..BTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_StoreSensorPanel_877_64_256_452_Open_Image" src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('..BTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_StoreSensorPanel_877_64_256_452_Open_Text').style.display='none'; document.getElementById('..BTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_StoreSensorPanel_877_64_256_452_Closed_Image').style.display='inline'; document.getElementById('..BTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_StoreSensorPanel_877_64_256_452_Closed_Text').style.display='inline';"/><img id="..BTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_StoreSensorPanel_877_64_256_452_Closed_Image" src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('..BTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_StoreSensorPanel_877_64_256_452_Closed_Text').style.display='none'; document.getElementById('..BTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_StoreSensorPanel_877_64_256_452_Open_Image').style.display='inline'; document.getElementById('..BTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_StoreSensorPanel_877_64_256_452_Open_Text').style.display='inline';"/> </span><span id="..BTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_StoreSensorPanel_877_64_256_452_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="..BTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_StoreSensorPanel_877_64_256_452_Open_Text"><span style="color: #000000;">{ </span><span style="color: #008080;">09</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #008000;">//</span><span style="color: #008000;"> create a linked list with length 10</span><span style="color: #008000;"> </span><span style="color: #008080;">10</span><span style="color: #008000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/></span><span style="color: #000000;"> SensorPanelTA list </span><span style="color: #000000;">=</span><span style="color: #000000;"> </span><span style="color: #0000FF;">new</span><span style="color: #000000;"> SensorPanelTA().CreateList(</span><span style="color: #800080;">10</span><span style="color: #000000;">); </span><span style="color: #008080;">11</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> container.Set(list); </span><span style="color: #008080;">12</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"/> }</span></span><span style="color: #000000;"> </span><span style="color: #008080;">13</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #0000FF;">finally</span><span style="color: #000000;"> </span><span style="color: #008080;">14</span><span style="color: #000000;"><img id="..BTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_StoreSensorPanel_877_64_493_549_Open_Image" src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('..BTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_StoreSensorPanel_877_64_493_549_Open_Text').style.display='none'; document.getElementById('..BTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_StoreSensorPanel_877_64_493_549_Closed_Image').style.display='inline'; document.getElementById('..BTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_StoreSensorPanel_877_64_493_549_Closed_Text').style.display='inline';"/><img id="..BTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_StoreSensorPanel_877_64_493_549_Closed_Image" src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('..BTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_StoreSensorPanel_877_64_493_549_Closed_Text').style.display='none'; document.getElementById('..BTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_StoreSensorPanel_877_64_493_549_Open_Image').style.display='inline'; document.getElementById('..BTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_StoreSensorPanel_877_64_493_549_Open_Text').style.display='inline';"/> </span><span id="..BTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_StoreSensorPanel_877_64_493_549_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="..BTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_StoreSensorPanel_877_64_493_549_Open_Text"><span style="color: #000000;">{ </span><span style="color: #008080;">15</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> CloseDatabase(); </span><span style="color: #008080;">16</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"/> }</span></span><span style="color: #000000;"> </span><span style="color: #008080;">17</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"/> }</span></span><span style="color: #000000;"> </span><span style="color: #008080;">18</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockEnd.gif" align="top"/> }</span></span></div></pre></div></div> <div class="FormattedSourceCode"><div class="fscHeader"><span class="fscFileName">TAExample.cs: <span class="fscMemberName">TestActivation</span></span></div><div class="fscCode"><pre ID="..BTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestActivation_945_62"><div><!-- Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --><span style="color: #008080;">01</span><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/><span style="color: #0000FF;">private</span><span style="color: #000000;"> </span><span style="color: #0000FF;">static</span><span style="color: #000000;"> </span><span style="color: #0000FF;">void</span><span style="color: #000000;"> TestActivation() </span><span style="color: #008080;">02</span><span style="color: #000000;"><img id="..BTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestActivation_945_62_45_1179_Open_Image" src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('..BTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestActivation_945_62_45_1179_Open_Text').style.display='none'; document.getElementById('..BTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestActivation_945_62_45_1179_Closed_Image').style.display='inline'; document.getElementById('..BTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestActivation_945_62_45_1179_Closed_Text').style.display='inline';"/><img id="..BTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestActivation_945_62_45_1179_Closed_Image" src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('..BTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestActivation_945_62_45_1179_Closed_Text').style.display='none'; document.getElementById('..BTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestActivation_945_62_45_1179_Open_Image').style.display='inline'; document.getElementById('..BTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestActivation_945_62_45_1179_Open_Text').style.display='inline';"/> </span><span id="..BTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestActivation_945_62_45_1179_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="..BTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestActivation_945_62_45_1179_Open_Text"><span style="color: #000000;">{ </span><span style="color: #008080;">03</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> StoreSensorPanel(); </span><span style="color: #008080;">04</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> IConfiguration configuration </span><span style="color: #000000;">=</span><span style="color: #000000;"> ConfigureTA(); </span><span style="color: #008080;">05</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #008080;">06</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> IObjectContainer container </span><span style="color: #000000;">=</span><span style="color: #000000;"> Database(configuration); </span><span style="color: #008080;">07</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #0000FF;">if</span><span style="color: #000000;"> (container </span><span style="color: #000000;">!=</span><span style="color: #000000;"> </span><span style="color: #0000FF;">null</span><span style="color: #000000;">) </span><span style="color: #008080;">08</span><span style="color: #000000;"><img id="..BTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestActivation_945_62_251_1169_Open_Image" src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('..BTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestActivation_945_62_251_1169_Open_Text').style.display='none'; document.getElementById('..BTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestActivation_945_62_251_1169_Closed_Image').style.display='inline'; document.getElementById('..BTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestActivation_945_62_251_1169_Closed_Text').style.display='inline';"/><img id="..BTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestActivation_945_62_251_1169_Closed_Image" src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('..BTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestActivation_945_62_251_1169_Closed_Text').style.display='none'; document.getElementById('..BTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestActivation_945_62_251_1169_Open_Image').style.display='inline'; document.getElementById('..BTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestActivation_945_62_251_1169_Open_Text').style.display='inline';"/> </span><span id="..BTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestActivation_945_62_251_1169_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="..BTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestActivation_945_62_251_1169_Open_Text"><span style="color: #000000;">{ </span><span style="color: #008080;">09</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #0000FF;">try</span><span style="color: #000000;"> </span><span style="color: #008080;">10</span><span style="color: #000000;"><img id="..BTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestActivation_945_62_289_1058_Open_Image" src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('..BTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestActivation_945_62_289_1058_Open_Text').style.display='none'; document.getElementById('..BTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestActivation_945_62_289_1058_Closed_Image').style.display='inline'; document.getElementById('..BTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestActivation_945_62_289_1058_Closed_Text').style.display='inline';"/><img id="..BTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestActivation_945_62_289_1058_Closed_Image" src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('..BTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestActivation_945_62_289_1058_Closed_Text').style.display='none'; document.getElementById('..BTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestActivation_945_62_289_1058_Open_Image').style.display='inline'; document.getElementById('..BTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestActivation_945_62_289_1058_Open_Text').style.display='inline';"/> </span><span id="..BTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestActivation_945_62_289_1058_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="..BTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestActivation_945_62_289_1058_Open_Text"><span style="color: #000000;">{ </span><span style="color: #008080;">11</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> System.Console.WriteLine(</span><span style="color: #800000;">"</span><span style="color: #800000;">Zero activation depth</span><span style="color: #800000;">"</span><span style="color: #000000;">); </span><span style="color: #008080;">12</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> IObjectSet result </span><span style="color: #000000;">=</span><span style="color: #000000;"> container.Get(</span><span style="color: #0000FF;">new</span><span style="color: #000000;"> SensorPanelTA(</span><span style="color: #800080;">1</span><span style="color: #000000;">)); </span><span style="color: #008080;">13</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> ListResult(result); </span><span style="color: #008080;">14</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #0000FF;">if</span><span style="color: #000000;"> (result.Size() </span><span style="color: #000000;">></span><span style="color: #000000;"> </span><span style="color: #800080;">0</span><span style="color: #000000;">) </span><span style="color: #008080;">15</span><span style="color: #000000;"><img id="..BTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestActivation_945_62_542_1040_Open_Image" src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('..BTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestActivation_945_62_542_1040_Open_Text').style.display='none'; document.getElementById('..BTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestActivation_945_62_542_1040_Closed_Image').style.display='inline'; document.getElementById('..BTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestActivation_945_62_542_1040_Closed_Text').style.display='inline';"/><img id="..BTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestActivation_945_62_542_1040_Closed_Image" src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('..BTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestActivation_945_62_542_1040_Closed_Text').style.display='none'; document.getElementById('..BTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestActivation_945_62_542_1040_Open_Image').style.display='inline'; document.getElementById('..BTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestActivation_945_62_542_1040_Open_Text').style.display='inline';"/> </span><span id="..BTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestActivation_945_62_542_1040_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="..BTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestActivation_945_62_542_1040_Open_Text"><span style="color: #000000;">{ </span><span style="color: #008080;">16</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> SensorPanelTA sensor </span><span style="color: #000000;">=</span><span style="color: #000000;"> (SensorPanelTA)result[</span><span style="color: #800080;">0</span><span style="color: #000000;">]; </span><span style="color: #008080;">17</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #008000;">//</span><span style="color: #008000;"> the object is a linked list, so each call to next() </span><span style="color: #008080;">18</span><span style="color: #008000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #008000;">//</span><span style="color: #008000;"> will need to activate a new object</span><span style="color: #008000;"> </span><span style="color: #008080;">19</span><span style="color: #008000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/></span><span style="color: #000000;"> SensorPanelTA next </span><span style="color: #000000;">=</span><span style="color: #000000;"> sensor.Next; </span><span style="color: #008080;">20</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #0000FF;">while</span><span style="color: #000000;"> (next </span><span style="color: #000000;">!=</span><span style="color: #000000;"> </span><span style="color: #0000FF;">null</span><span style="color: #000000;">) </span><span style="color: #008080;">21</span><span style="color: #000000;"><img id="..BTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestActivation_945_62_885_1018_Open_Image" src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('..BTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestActivation_945_62_885_1018_Open_Text').style.display='none'; document.getElementById('..BTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestActivation_945_62_885_1018_Closed_Image').style.display='inline'; document.getElementById('..BTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestActivation_945_62_885_1018_Closed_Text').style.display='inline';"/><img id="..BTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestActivation_945_62_885_1018_Closed_Image" src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('..BTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestActivation_945_62_885_1018_Closed_Text').style.display='none'; document.getElementById('..BTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestActivation_945_62_885_1018_Open_Image').style.display='inline'; document.getElementById('..BTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestActivation_945_62_885_1018_Open_Text').style.display='inline';"/> </span><span id="..BTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestActivation_945_62_885_1018_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="..BTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestActivation_945_62_885_1018_Open_Text"><span style="color: #000000;">{ </span><span style="color: #008080;">22</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> System.Console.WriteLine(next); </span><span style="color: #008080;">23</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> next </span><span style="color: #000000;">=</span><span style="color: #000000;"> next.Next; </span><span style="color: #008080;">24</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"/> }</span></span><span style="color: #000000;"> </span><span style="color: #008080;">25</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"/> }</span></span><span style="color: #000000;"> </span><span style="color: #008080;">26</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"/> }</span></span><span style="color: #000000;"> </span><span style="color: #008080;">27</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #0000FF;">finally</span><span style="color: #000000;"> </span><span style="color: #008080;">28</span><span style="color: #000000;"><img id="..BTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestActivation_945_62_1099_1155_Open_Image" src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('..BTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestActivation_945_62_1099_1155_Open_Text').style.display='none'; document.getElementById('..BTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestActivation_945_62_1099_1155_Closed_Image').style.display='inline'; document.getElementById('..BTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestActivation_945_62_1099_1155_Closed_Text').style.display='inline';"/><img id="..BTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestActivation_945_62_1099_1155_Closed_Image" src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('..BTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestActivation_945_62_1099_1155_Closed_Text').style.display='none'; document.getElementById('..BTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestActivation_945_62_1099_1155_Open_Image').style.display='inline'; document.getElementById('..BTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestActivation_945_62_1099_1155_Open_Text').style.display='inline';"/> </span><span id="..BTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestActivation_945_62_1099_1155_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="..BTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestActivation_945_62_1099_1155_Open_Text"><span style="color: #000000;">{ </span><span style="color: #008080;">29</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> CloseDatabase(); </span><span style="color: #008080;">30</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"/> }</span></span><span style="color: #000000;"> </span><span style="color: #008080;">31</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"/> }</span></span><span style="color: #000000;"> </span><span style="color: #008080;">32</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockEnd.gif" align="top"/> }</span></span></div></pre></div></div> </span> <span name="cs_wiki_filter" csw_filters="vb"> <div class="FormattedSourceCode"><div class="fscHeader"><span class="fscFileName">TAExample.vb: <span class="fscMemberName">ConfigureTA</span></span></div><div class="fscCode"><pre ID="..BTAExamplesVB.ZipsTAExample.Vb_TAExample.Vb_ConfigureTA_1071_59"><div><!-- Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --><span style="color: #008080;">1</span><img id="..BTAExamplesVB.ZipsTAExample.Vb_TAExample.Vb_ConfigureTA_1071_59_15_367_Open_Image" src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('..BTAExamplesVB.ZipsTAExample.Vb_TAExample.Vb_ConfigureTA_1071_59_15_367_Open_Text').style.display='none'; document.getElementById('..BTAExamplesVB.ZipsTAExample.Vb_TAExample.Vb_ConfigureTA_1071_59_15_367_Closed_Image').style.display='inline'; document.getElementById('..BTAExamplesVB.ZipsTAExample.Vb_TAExample.Vb_ConfigureTA_1071_59_15_367_Closed_Text').style.display='inline';"/><img id="..BTAExamplesVB.ZipsTAExample.Vb_TAExample.Vb_ConfigureTA_1071_59_15_367_Closed_Image" src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('..BTAExamplesVB.ZipsTAExample.Vb_TAExample.Vb_ConfigureTA_1071_59_15_367_Closed_Text').style.display='none'; document.getElementById('..BTAExamplesVB.ZipsTAExample.Vb_TAExample.Vb_ConfigureTA_1071_59_15_367_Open_Image').style.display='inline'; document.getElementById('..BTAExamplesVB.ZipsTAExample.Vb_TAExample.Vb_ConfigureTA_1071_59_15_367_Open_Text').style.display='inline';"/><span style="color: #0000FF;">Private</span><span style="color: #000000;"> </span><span style="color: #0000FF;">Shared</span><span style="color: #000000;"> </span><span id="..BTAExamplesVB.ZipsTAExample.Vb_TAExample.Vb_ConfigureTA_1071_59_15_367_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">Function ConfigureTA()</span><span id="..BTAExamplesVB.ZipsTAExample.Vb_TAExample.Vb_ConfigureTA_1071_59_15_367_Open_Text"><span style="color: #0000FF;">Function</span><span style="color: #000000;"> ConfigureTA() </span><span style="color: #0000FF;">As</span><span style="color: #000000;"> IConfiguration </span><span style="color: #008080;">2</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #0000FF;">Dim</span><span style="color: #000000;"> configuration </span><span style="color: #0000FF;">As</span><span style="color: #000000;"> IConfiguration </span><span style="color: #000000;">=</span><span style="color: #000000;"> Db4oFactory.NewConfiguration </span><span style="color: #008080;">3</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #008000;">'</span><span style="color: #008000;"> set normal activation to 0</span><span style="color: #008000;"> </span><span style="color: #008080;">4</span><span style="color: #008000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/></span><span style="color: #000000;"> configuration.ActivationDepth(</span><span style="color: #800080;">0</span><span style="color: #000000;">) </span><span style="color: #008080;">5</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #008000;">'</span><span style="color: #008000;"> add TA support</span><span style="color: #008000;"> </span><span style="color: #008080;">6</span><span style="color: #008000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/></span><span style="color: #000000;"> configuration.Add(</span><span style="color: #0000FF;">New</span><span style="color: #000000;"> TransparentActivationSupport) </span><span style="color: #008080;">7</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #0000FF;">Return</span><span style="color: #000000;"> configuration </span><span style="color: #008080;">8</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockEnd.gif" align="top"/> </span><span style="color: #0000FF;">End Function</span></span></div></pre></div></div> <div class="FormattedSourceCode"><div class="fscHeader"><span class="fscFileName">TAExample.vb: <span class="fscMemberName">StoreSensorPanel</span></span></div><div class="fscCode"><pre ID="..BTAExamplesVB.ZipsTAExample.Vb_TAExample.Vb_StoreSensorPanel_1134_64"><div><!-- Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --><span style="color: #008080;">01</span><img id="..BTAExamplesVB.ZipsTAExample.Vb_TAExample.Vb_StoreSensorPanel_1134_64_15_529_Open_Image" src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('..BTAExamplesVB.ZipsTAExample.Vb_TAExample.Vb_StoreSensorPanel_1134_64_15_529_Open_Text').style.display='none'; document.getElementById('..BTAExamplesVB.ZipsTAExample.Vb_TAExample.Vb_StoreSensorPanel_1134_64_15_529_Closed_Image').style.display='inline'; document.getElementById('..BTAExamplesVB.ZipsTAExample.Vb_TAExample.Vb_StoreSensorPanel_1134_64_15_529_Closed_Text').style.display='inline';"/><img id="..BTAExamplesVB.ZipsTAExample.Vb_TAExample.Vb_StoreSensorPanel_1134_64_15_529_Closed_Image" src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('..BTAExamplesVB.ZipsTAExample.Vb_TAExample.Vb_StoreSensorPanel_1134_64_15_529_Closed_Text').style.display='none'; document.getElementById('..BTAExamplesVB.ZipsTAExample.Vb_TAExample.Vb_StoreSensorPanel_1134_64_15_529_Open_Image').style.display='inline'; document.getElementById('..BTAExamplesVB.ZipsTAExample.Vb_TAExample.Vb_StoreSensorPanel_1134_64_15_529_Open_Text').style.display='inline';"/><span style="color: #0000FF;">Private</span><span style="color: #000000;"> </span><span style="color: #0000FF;">Shared</span><span style="color: #000000;"> </span><span id="..BTAExamplesVB.ZipsTAExample.Vb_TAExample.Vb_StoreSensorPanel_1134_64_15_529_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">Sub StoreSensorPanel()</span><span id="..BTAExamplesVB.ZipsTAExample.Vb_TAExample.Vb_StoreSensorPanel_1134_64_15_529_Open_Text"><span style="color: #0000FF;">Sub</span><span style="color: #000000;"> StoreSensorPanel() </span><span style="color: #008080;">02</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> File.Delete(Db4oFileName) </span><span style="color: #008080;">03</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #0000FF;">Dim</span><span style="color: #000000;"> container </span><span style="color: #0000FF;">As</span><span style="color: #000000;"> IObjectContainer </span><span style="color: #000000;">=</span><span style="color: #000000;"> Database(Db4oFactory.NewConfiguration) </span><span style="color: #008080;">04</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #0000FF;">If</span><span style="color: #000000;"> </span><span style="color: #0000FF;">Not</span><span style="color: #000000;"> (container </span><span style="color: #0000FF;">Is</span><span style="color: #000000;"> </span><span style="color: #0000FF;">Nothing</span><span style="color: #000000;">) </span><span style="color: #0000FF;">Then</span><span style="color: #000000;"> </span><span style="color: #008080;">05</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #0000FF;">Try</span><span style="color: #000000;"> </span><span style="color: #008080;">06</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #008000;">'</span><span style="color: #008000;"> create a linked list with length 10</span><span style="color: #008000;"> </span><span style="color: #008080;">07</span><span style="color: #008000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/></span><span style="color: #000000;"> </span><span style="color: #0000FF;">Dim</span><span style="color: #000000;"> list </span><span style="color: #0000FF;">As</span><span style="color: #000000;"> SensorPanelTA </span><span style="color: #000000;">=</span><span style="color: #000000;"> (</span><span style="color: #0000FF;">New</span><span style="color: #000000;"> SensorPanelTA).CreateList(</span><span style="color: #800080;">10</span><span style="color: #000000;">) </span><span style="color: #008080;">08</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> container.Set(list) </span><span style="color: #008080;">09</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #0000FF;">Finally</span><span style="color: #000000;"> </span><span style="color: #008080;">10</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> CloseDatabase() </span><span style="color: #008080;">11</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #0000FF;">End</span><span style="color: #000000;"> </span><span style="color: #0000FF;">Try</span><span style="color: #000000;"> </span><span style="color: #008080;">12</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #0000FF;">End</span><span style="color: #000000;"> </span><span style="color: #0000FF;">If</span><span style="color: #000000;"> </span><span style="color: #008080;">13</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockEnd.gif" align="top"/> </span><span style="color: #0000FF;">End Sub</span></span></div></pre></div></div> <div class="FormattedSourceCode"><div class="fscHeader"><span class="fscFileName">TAExample.vb: <span class="fscMemberName">TestActivation</span></span></div><div class="fscCode"><pre ID="..BTAExamplesVB.ZipsTAExample.Vb_TAExample.Vb_TestActivation_1202_62"><div><!-- Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --><span style="color: #008080;">01</span><img id="..BTAExamplesVB.ZipsTAExample.Vb_TAExample.Vb_TestActivation_1202_62_15_1183_Open_Image" src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('..BTAExamplesVB.ZipsTAExample.Vb_TAExample.Vb_TestActivation_1202_62_15_1183_Open_Text').style.display='none'; document.getElementById('..BTAExamplesVB.ZipsTAExample.Vb_TAExample.Vb_TestActivation_1202_62_15_1183_Closed_Image').style.display='inline'; document.getElementById('..BTAExamplesVB.ZipsTAExample.Vb_TAExample.Vb_TestActivation_1202_62_15_1183_Closed_Text').style.display='inline';"/><img id="..BTAExamplesVB.ZipsTAExample.Vb_TAExample.Vb_TestActivation_1202_62_15_1183_Closed_Image" src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('..BTAExamplesVB.ZipsTAExample.Vb_TAExample.Vb_TestActivation_1202_62_15_1183_Closed_Text').style.display='none'; document.getElementById('..BTAExamplesVB.ZipsTAExample.Vb_TAExample.Vb_TestActivation_1202_62_15_1183_Open_Image').style.display='inline'; document.getElementById('..BTAExamplesVB.ZipsTAExample.Vb_TAExample.Vb_TestActivation_1202_62_15_1183_Open_Text').style.display='inline';"/><span style="color: #0000FF;">Private</span><span style="color: #000000;"> </span><span style="color: #0000FF;">Shared</span><span style="color: #000000;"> </span><span id="..BTAExamplesVB.ZipsTAExample.Vb_TAExample.Vb_TestActivation_1202_62_15_1183_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">Sub TestActivation()</span><span id="..BTAExamplesVB.ZipsTAExample.Vb_TAExample.Vb_TestActivation_1202_62_15_1183_Open_Text"><span style="color: #0000FF;">Sub</span><span style="color: #000000;"> TestActivation() </span><span style="color: #008080;">02</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> StoreSensorPanel() </span><span style="color: #008080;">03</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #0000FF;">Dim</span><span style="color: #000000;"> configuration </span><span style="color: #0000FF;">As</span><span style="color: #000000;"> IConfiguration </span><span style="color: #000000;">=</span><span style="color: #000000;"> ConfigureTA() </span><span style="color: #008080;">04</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #0000FF;">Dim</span><span style="color: #000000;"> container </span><span style="color: #0000FF;">As</span><span style="color: #000000;"> IObjectContainer </span><span style="color: #000000;">=</span><span style="color: #000000;"> Database(configuration) </span><span style="color: #008080;">05</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #0000FF;">If</span><span style="color: #000000;"> </span><span style="color: #0000FF;">Not</span><span style="color: #000000;"> (container </span><span style="color: #0000FF;">Is</span><span style="color: #000000;"> </span><span style="color: #0000FF;">Nothing</span><span style="color: #000000;">) </span><span style="color: #0000FF;">Then</span><span style="color: #000000;"> </span><span style="color: #008080;">06</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #0000FF;">Try</span><span style="color: #000000;"> </span><span style="color: #008080;">07</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> System.Console.WriteLine(</span><span style="color: #800000;">"</span><span style="color: #800000;">Zero activation depth</span><span style="color: #800000;">"</span><span style="color: #000000;">) </span><span style="color: #008080;">08</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #0000FF;">Dim</span><span style="color: #000000;"> result </span><span style="color: #0000FF;">As</span><span style="color: #000000;"> IObjectSet </span><span style="color: #000000;">=</span><span style="color: #000000;"> container.Get(</span><span style="color: #0000FF;">New</span><span style="color: #000000;"> SensorPanelTA(</span><span style="color: #800080;">1</span><span style="color: #000000;">)) </span><span style="color: #008080;">09</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> ListResult(result) </span><span style="color: #008080;">10</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #0000FF;">If</span><span style="color: #000000;"> result.Size </span><span style="color: #000000;">></span><span style="color: #000000;"> </span><span style="color: #800080;">0</span><span style="color: #000000;"> </span><span style="color: #0000FF;">Then</span><span style="color: #000000;"> </span><span style="color: #008080;">11</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #0000FF;">Dim</span><span style="color: #000000;"> sensor </span><span style="color: #0000FF;">As</span><span style="color: #000000;"> SensorPanelTA </span><span style="color: #000000;">=</span><span style="color: #000000;"> </span><span style="color: #0000FF;">CType</span><span style="color: #000000;">(result(</span><span style="color: #800080;">0</span><span style="color: #000000;">), SensorPanelTA) </span><span style="color: #008080;">12</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #008000;">'</span><span style="color: #008000;"> the object is a linked list, so each call to next()</span><span style="color: #008000;"> </span><span style="color: #008080;">13</span><span style="color: #008000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/></span><span style="color: #000000;"> </span><span style="color: #008000;">'</span><span style="color: #008000;"> will need to activate a new object</span><span style="color: #008000;"> </span><span style="color: #008080;">14</span><span style="color: #008000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/></span><span style="color: #000000;"> </span><span style="color: #0000FF;">Dim</span><span style="color: #000000;"> nextSensor </span><span style="color: #0000FF;">As</span><span style="color: #000000;"> SensorPanelTA </span><span style="color: #000000;">=</span><span style="color: #000000;"> sensor.NextSensor </span><span style="color: #008080;">15</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #0000FF;">While</span><span style="color: #000000;"> </span><span style="color: #0000FF;">Not</span><span style="color: #000000;"> (nextSensor </span><span style="color: #0000FF;">Is</span><span style="color: #000000;"> </span><span style="color: #0000FF;">Nothing</span><span style="color: #000000;">) </span><span style="color: #008080;">16</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> System.Console.WriteLine(nextSensor.ToString()) </span><span style="color: #008080;">17</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> nextSensor </span><span style="color: #000000;">=</span><span style="color: #000000;"> nextSensor.NextSensor </span><span style="color: #008080;">18</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #0000FF;">End</span><span style="color: #000000;"> </span><span style="color: #0000FF;">While</span><span style="color: #000000;"> </span><span style="color: #008080;">19</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #0000FF;">End</span><span style="color: #000000;"> </span><span style="color: #0000FF;">If</span><span style="color: #000000;"> </span><span style="color: #008080;">20</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #0000FF;">Finally</span><span style="color: #000000;"> </span><span style="color: #008080;">21</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> CloseDatabase() </span><span style="color: #008080;">22</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #0000FF;">End</span><span style="color: #000000;"> </span><span style="color: #0000FF;">Try</span><span style="color: #000000;"> </span><span style="color: #008080;">23</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #0000FF;">End</span><span style="color: #000000;"> </span><span style="color: #0000FF;">If</span><span style="color: #000000;"> </span><span style="color: #008080;">24</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockEnd.gif" align="top"/> </span><span style="color: #0000FF;">End Sub</span></span></div></pre></div></div> </span> <p>Compile and run the application. Now, you can add TA support by using the following command-line:</p> <p><code>Db4oTool -ta TAExamples.exe</code></p> <p>use -vv option for verbose output:</p> <p><code>Db4oTool -ta -vv TAExamples.exe</code></p> <p>You can also apply type filter to TA enable only selected types:</p> <p><code>Db4oTool.exe -vv -ta -by-name:S* TAExamples.exe</code></p> <p>Db4oTool uses .NET regex to parse the -by-name parameter, in the example above all types starting with "S" will be TA enabled.</p><p>Run TA enabled assembly and compare results to the previous run. </p></div> </div> <div id="footer"> This revision (2) was last Modified 2007-12-03T19:09:19 by Tetyana. </div> </body> </html>