Sophie

Sophie

distrib > Fedora > 14 > i386 > by-pkgid > 864d1c3c3cd8df4e3a2692faf8776e05 > files > 979

db4o-doc-7.4-2.fc13.i686.rpm

<html>
  <head>
    <META http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>Detailed Example</title>
    <link rel="stylesheet" type="text/css" href="../../../style.css">
  </head>
  <body>
    <div class="CommonContent">
      <div class="CommonContentArea">
        <h1>Detailed Example</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>Let's look at a primitive example, demonstrating manual implementation
of Activatable/IActivatable interface for TP. We will use a class similar to
the <a href="../activation/transparent_activation_framework/detailed_example.html" class="wikiLink">one</a> used in Transparent Activation chapters.</p>



<span name="cs_wiki_filter" csw_filters="cs">

<div class="FormattedSourceCode"><div class="fscHeader"><span class="fscFileName">SensorPanel.cs</span></div><div class="fscCode"><pre ID="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44"><div><!--

Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/

--><span style="color: #008080;">001</span><img id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_0_67_Open_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_0_67_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_0_67_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_0_67_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_0_67_Closed_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_0_67_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_0_67_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_0_67_Open_Text').style.display='inline';"/><span id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_0_67_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">/**/</span><span id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_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;">002</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;">003</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;">004</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;">005</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/>
</span><span style="color: #008080;">006</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.TPExample
</span><span style="color: #008080;">007</span><span style="color: #000000;"><img id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_190_3024_Open_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_190_3024_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_190_3024_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_190_3024_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_190_3024_Closed_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_190_3024_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_190_3024_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_190_3024_Open_Text').style.display='inline';"/></span><span id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_190_3024_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_190_3024_Open_Text"><span style="color: #000000;">{
</span><span style="color: #008080;">008</span><span style="color: #000000;"><img id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_221_266_Open_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_221_266_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_221_266_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_221_266_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_221_266_Closed_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_221_266_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_221_266_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_221_266_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;"> SensorPanel </span><span id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_221_266_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">/**/</span><span id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_221_266_Open_Text"><span style="color: #008000;">/*</span><span style="color: #008000;">must implement Activatable for TA and TP </span><span style="color: #008000;">*/</span></span><span style="color: #000000;">: IActivatable
</span><span style="color: #008080;">009</span><span style="color: #000000;"><img id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_285_3021_Open_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_285_3021_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_285_3021_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_285_3021_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_285_3021_Closed_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_285_3021_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_285_3021_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_285_3021_Open_Text').style.display='inline';"/>    </span><span id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_285_3021_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_285_3021_Open_Text"><span style="color: #000000;">{
</span><span style="color: #008080;">010</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;">011</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>
</span><span style="color: #008080;">012</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;"> SensorPanel _next;
</span><span style="color: #008080;">013</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>
</span><span style="color: #008080;">014</span><span style="color: #000000;"><img id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_364_403_Open_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_364_403_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_364_403_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_364_403_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_364_403_Closed_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_364_403_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_364_403_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_364_403_Open_Text').style.display='inline';"/>        </span><span id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_364_403_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">/**/</span><span id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_364_403_Open_Text"><span style="color: #008000;">/*</span><span style="color: #008000;">activator registered for this class</span><span style="color: #008000;">*/</span></span><span style="color: #000000;">
</span><span style="color: #008080;">015</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>        [System.NonSerialized]
</span><span style="color: #008080;">016</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>        IActivator _activator;
</span><span style="color: #008080;">017</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>
</span><span style="color: #008080;">018</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;"> SensorPanel()
</span><span style="color: #008080;">019</span><span style="color: #000000;"><img id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_504_568_Open_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_504_568_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_504_568_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_504_568_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_504_568_Closed_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_504_568_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_504_568_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_504_568_Open_Text').style.display='inline';"/>        </span><span id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_504_568_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_504_568_Open_Text"><span style="color: #000000;">{
</span><span style="color: #008080;">020</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;">021</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;">022</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;"> end SensorPanel</span><span style="color: #008000;">
</span><span style="color: #008080;">023</span><span style="color: #008000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/></span><span style="color: #000000;">
</span><span style="color: #008080;">024</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;"> SensorPanel(</span><span style="color: #0000FF;">int</span><span style="color: #000000;"> value)
</span><span style="color: #008080;">025</span><span style="color: #000000;"><img id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_643_683_Open_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_643_683_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_643_683_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_643_683_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_643_683_Closed_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_643_683_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_643_683_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_643_683_Open_Text').style.display='inline';"/>        </span><span id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_643_683_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_643_683_Open_Text"><span style="color: #000000;">{
</span><span style="color: #008080;">026</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;">027</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;">028</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;"> end SensorPanel</span><span style="color: #008000;">
</span><span style="color: #008080;">029</span><span style="color: #008000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/></span><span style="color: #000000;">
</span><span style="color: #008080;">030</span><span style="color: #000000;"><img id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_720_794_Open_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_720_794_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_720_794_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_720_794_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_720_794_Closed_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_720_794_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_720_794_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_720_794_Open_Text').style.display='inline';"/>        </span><span id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_720_794_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">/**/</span><span id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_720_794_Open_Text"><span style="color: #008000;">/*</span><span style="color: #008000;">Bind the class to the specified object container, create the activator</span><span style="color: #008000;">*/</span></span><span style="color: #000000;">
</span><span style="color: #008080;">031</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;">void</span><span style="color: #000000;"> Bind(IActivator activator)
</span><span style="color: #008080;">032</span><span style="color: #000000;"><img id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_850_1137_Open_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_850_1137_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_850_1137_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_850_1137_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_850_1137_Closed_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_850_1137_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_850_1137_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_850_1137_Open_Text').style.display='inline';"/>        </span><span id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_850_1137_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_850_1137_Open_Text"><span style="color: #000000;">{
</span><span style="color: #008080;">033</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;"> (_activator </span><span style="color: #000000;">==</span><span style="color: #000000;"> activator)
</span><span style="color: #008080;">034</span><span style="color: #000000;"><img id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_905_944_Open_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_905_944_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_905_944_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_905_944_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_905_944_Closed_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_905_944_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_905_944_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_905_944_Open_Text').style.display='inline';"/>            </span><span id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_905_944_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_905_944_Open_Text"><span style="color: #000000;">{
</span><span style="color: #008080;">035</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: #008080;">036</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;">037</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;"> (activator </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: #000000;">&amp;&amp;</span><span style="color: #000000;"> </span><span style="color: #0000FF;">null</span><span style="color: #000000;"> </span><span style="color: #000000;">!=</span><span style="color: #000000;"> _activator)
</span><span style="color: #008080;">038</span><span style="color: #000000;"><img id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_1014_1091_Open_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_1014_1091_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_1014_1091_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_1014_1091_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_1014_1091_Closed_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_1014_1091_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_1014_1091_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_1014_1091_Open_Text').style.display='inline';"/>            </span><span id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_1014_1091_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_1014_1091_Open_Text"><span style="color: #000000;">{
</span><span style="color: #008080;">039</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                </span><span style="color: #0000FF;">throw</span><span style="color: #000000;"> </span><span style="color: #0000FF;">new</span><span style="color: #000000;"> System.InvalidOperationException();
</span><span style="color: #008080;">040</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;">041</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            _activator </span><span style="color: #000000;">=</span><span style="color: #000000;"> activator;
</span><span style="color: #008080;">042</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;">043</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;"> end Bind</span><span style="color: #008000;">
</span><span style="color: #008080;">044</span><span style="color: #008000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/></span><span style="color: #000000;">
</span><span style="color: #008080;">045</span><span style="color: #000000;"><img id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_1167_1357_Open_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_1167_1357_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_1167_1357_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_1167_1357_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_1167_1357_Closed_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_1167_1357_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_1167_1357_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_1167_1357_Open_Text').style.display='inline';"/>        </span><span id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_1167_1357_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">/**/</span><span id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_1167_1357_Open_Text"><span style="color: #008000;">/*</span><span style="color: #008000;">Call the registered activator to activate the next level,
</span><span style="color: #008080;">046</span><span style="color: #008000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>         * the activator remembers the objects that were already 
</span><span style="color: #008080;">047</span><span style="color: #008000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>         * activated and won't activate them twice. 
</span><span style="color: #008080;">048</span><span style="color: #008000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"/>         </span><span style="color: #008000;">*/</span></span><span style="color: #000000;">
</span><span style="color: #008080;">049</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;">void</span><span style="color: #000000;"> Activate(ActivationPurpose purpose)
</span><span style="color: #008080;">050</span><span style="color: #000000;"><img id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_1422_1535_Open_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_1422_1535_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_1422_1535_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_1422_1535_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_1422_1535_Closed_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_1422_1535_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_1422_1535_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_1422_1535_Open_Text').style.display='inline';"/>        </span><span id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_1422_1535_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_1422_1535_Open_Text"><span style="color: #000000;">{
</span><span style="color: #008080;">051</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;"> (_activator </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;">052</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: #008080;">053</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            _activator.Activate(purpose);
</span><span style="color: #008080;">054</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;">055</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;"> end Activate</span><span style="color: #008000;">
</span><span style="color: #008080;">056</span><span style="color: #008000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/></span><span style="color: #000000;">
</span><span style="color: #008080;">057</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;"> SensorPanel Next
</span><span style="color: #008080;">058</span><span style="color: #000000;"><img id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_1601_1780_Open_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_1601_1780_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_1601_1780_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_1601_1780_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_1601_1780_Closed_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_1601_1780_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_1601_1780_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_1601_1780_Open_Text').style.display='inline';"/>        </span><span id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_1601_1780_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_1601_1780_Open_Text"><span style="color: #000000;">{
</span><span style="color: #008080;">059</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;">060</span><span style="color: #000000;"><img id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_1631_1770_Open_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_1631_1770_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_1631_1770_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_1631_1770_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_1631_1770_Closed_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_1631_1770_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_1631_1770_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_1631_1770_Open_Text').style.display='inline';"/>            </span><span id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_1631_1770_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_1631_1770_Open_Text"><span style="color: #000000;">{
</span><span style="color: #008080;">061</span><span style="color: #000000;"><img id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_1649_1676_Open_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_1649_1676_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_1649_1676_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_1649_1676_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_1649_1676_Closed_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_1649_1676_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_1649_1676_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_1649_1676_Open_Text').style.display='inline';"/>                </span><span id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_1649_1676_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">/**/</span><span id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_1649_1676_Open_Text"><span style="color: #008000;">/*</span><span style="color: #008000;">activate direct members</span><span style="color: #008000;">*/</span></span><span style="color: #000000;">
</span><span style="color: #008080;">062</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                Activate(ActivationPurpose.Read);
</span><span style="color: #008080;">063</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;">064</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;">065</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;">066</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;"> end Next</span><span style="color: #008000;">
</span><span style="color: #008080;">067</span><span style="color: #008000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/></span><span style="color: #000000;">
</span><span style="color: #008080;">068</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;">069</span><span style="color: #000000;"><img id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_1839_2193_Open_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_1839_2193_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_1839_2193_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_1839_2193_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_1839_2193_Closed_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_1839_2193_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_1839_2193_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_1839_2193_Open_Text').style.display='inline';"/>        </span><span id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_1839_2193_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_1839_2193_Open_Text"><span style="color: #000000;">{
</span><span style="color: #008080;">070</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;">071</span><span style="color: #000000;"><img id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_1869_2010_Open_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_1869_2010_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_1869_2010_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_1869_2010_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_1869_2010_Closed_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_1869_2010_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_1869_2010_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_1869_2010_Open_Text').style.display='inline';"/>            </span><span id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_1869_2010_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_1869_2010_Open_Text"><span style="color: #000000;">{
</span><span style="color: #008080;">072</span><span style="color: #000000;"><img id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_1887_1914_Open_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_1887_1914_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_1887_1914_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_1887_1914_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_1887_1914_Closed_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_1887_1914_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_1887_1914_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_1887_1914_Open_Text').style.display='inline';"/>                </span><span id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_1887_1914_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">/**/</span><span id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_1887_1914_Open_Text"><span style="color: #008000;">/*</span><span style="color: #008000;">activate direct members</span><span style="color: #008000;">*/</span></span><span style="color: #000000;">
</span><span style="color: #008080;">073</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                Activate(ActivationPurpose.Read);
</span><span style="color: #008080;">074</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;">075</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;">076</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            </span><span style="color: #0000FF;">set</span><span style="color: #000000;">
</span><span style="color: #008080;">077</span><span style="color: #000000;"><img id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_2039_2183_Open_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_2039_2183_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_2039_2183_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_2039_2183_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_2039_2183_Closed_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_2039_2183_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_2039_2183_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_2039_2183_Open_Text').style.display='inline';"/>            </span><span id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_2039_2183_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_2039_2183_Open_Text"><span style="color: #000000;">{
</span><span style="color: #008080;">078</span><span style="color: #000000;"><img id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_2057_2085_Open_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_2057_2085_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_2057_2085_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_2057_2085_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_2057_2085_Closed_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_2057_2085_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_2057_2085_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_2057_2085_Open_Text').style.display='inline';"/>                </span><span id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_2057_2085_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">/**/</span><span id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_2057_2085_Open_Text"><span style="color: #008000;">/*</span><span style="color: #008000;">activate for persistense</span><span style="color: #008000;">*/</span></span><span style="color: #000000;">
</span><span style="color: #008080;">079</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                Activate(ActivationPurpose.Write);
</span><span style="color: #008080;">080</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;">081</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;">082</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;">083</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;"> end Sensor</span><span style="color: #008000;">
</span><span style="color: #008080;">084</span><span style="color: #008000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/></span><span style="color: #000000;">
</span><span style="color: #008080;">085</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;"> SensorPanel CreateList(</span><span style="color: #0000FF;">int</span><span style="color: #000000;"> length)
</span><span style="color: #008080;">086</span><span style="color: #000000;"><img id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_2275_2328_Open_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_2275_2328_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_2275_2328_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_2275_2328_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_2275_2328_Closed_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_2275_2328_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_2275_2328_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_2275_2328_Open_Text').style.display='inline';"/>        </span><span id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_2275_2328_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_2275_2328_Open_Text"><span style="color: #000000;">{
</span><span style="color: #008080;">087</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;">088</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;">089</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;"> end CreateList</span><span style="color: #008000;">
</span><span style="color: #008080;">090</span><span style="color: #008000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/></span><span style="color: #000000;">
</span><span style="color: #008080;">091</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;"> SensorPanel 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;">092</span><span style="color: #000000;"><img id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_2425_2720_Open_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_2425_2720_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_2425_2720_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_2425_2720_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_2425_2720_Closed_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_2425_2720_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_2425_2720_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_2425_2720_Open_Text').style.display='inline';"/>        </span><span id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_2425_2720_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_2425_2720_Open_Text"><span style="color: #000000;">{
</span><span style="color: #008080;">093</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;">094</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            SensorPanel root </span><span style="color: #000000;">=</span><span style="color: #000000;"> NewElement(first);
</span><span style="color: #008080;">095</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            SensorPanel list </span><span style="color: #000000;">=</span><span style="color: #000000;"> root;
</span><span style="color: #008080;">096</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;">&gt;</span><span style="color: #000000;"> </span><span style="color: #800080;">0</span><span style="color: #000000;">)
</span><span style="color: #008080;">097</span><span style="color: #000000;"><img id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_2588_2685_Open_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_2588_2685_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_2588_2685_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_2588_2685_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_2588_2685_Closed_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_2588_2685_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_2588_2685_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_2588_2685_Open_Text').style.display='inline';"/>            </span><span id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_2588_2685_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_2588_2685_Open_Text"><span style="color: #000000;">{
</span><span style="color: #008080;">098</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;">099</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;">100</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;">101</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;">102</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;">103</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;"> end CreateList</span><span style="color: #008000;">
</span><span style="color: #008080;">104</span><span style="color: #008000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/></span><span style="color: #000000;">
</span><span style="color: #008080;">105</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;"> SensorPanel NewElement(</span><span style="color: #0000FF;">int</span><span style="color: #000000;"> value)
</span><span style="color: #008080;">106</span><span style="color: #000000;"><img id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_2808_2862_Open_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_2808_2862_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_2808_2862_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_2808_2862_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_2808_2862_Closed_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_2808_2862_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_2808_2862_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_2808_2862_Open_Text').style.display='inline';"/>        </span><span id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_2808_2862_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_2808_2862_Open_Text"><span style="color: #000000;">{
</span><span style="color: #008080;">107</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;"> SensorPanel(value);
</span><span style="color: #008080;">108</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;">109</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;"> end NewElement</span><span style="color: #008000;">
</span><span style="color: #008080;">110</span><span style="color: #008000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/></span><span style="color: #000000;">
</span><span style="color: #008080;">111</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;">112</span><span style="color: #000000;"><img id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_2940_2991_Open_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_2940_2991_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_2940_2991_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_2940_2991_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_2940_2991_Closed_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_2940_2991_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_2940_2991_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_2940_2991_Open_Text').style.display='inline';"/>        </span><span id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_2940_2991_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsSensorPanel.Cs_SensorPanel.Cs_333_44_2940_2991_Open_Text"><span style="color: #000000;">{
</span><span style="color: #008080;">113</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;">&quot;</span><span style="color: #800000;">Sensor #</span><span style="color: #800000;">&quot;</span><span style="color: #000000;"> </span><span style="color: #000000;">+</span><span style="color: #000000;"> Sensor;
</span><span style="color: #008080;">114</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;">115</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;"> end ToString</span><span style="color: #008000;">
</span><span style="color: #008080;">116</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;">117</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>
</span><span style="color: #008080;">118</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">SensorPanel.vb</span></div><div class="fscCode"><pre ID="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44"><div><!--

Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/

--><span style="color: #008080;">001</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;">002</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;">003</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;">004</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;">005</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/>
</span><span style="color: #008080;">006</span><span style="color: #000000;"><img id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_151_3315_Open_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_151_3315_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_151_3315_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_151_3315_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_151_3315_Closed_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_151_3315_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_151_3315_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_151_3315_Open_Text').style.display='inline';"/></span><span id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_151_3315_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">Namespace Db4ojects</span><span id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_151_3315_Open_Text"><span style="color: #0000FF;">Namespace</span><span style="color: #000000;"> Db4ojects.Db4odoc.TPExample
</span><span style="color: #008080;">007</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>
</span><span style="color: #008080;">008</span><span style="color: #000000;"><img id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_201_3301_Open_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_201_3301_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_201_3301_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_201_3301_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_201_3301_Closed_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_201_3301_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_201_3301_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_201_3301_Open_Text').style.display='inline';"/>    </span><span style="color: #0000FF;">Public</span><span style="color: #000000;"> </span><span id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_201_3301_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">Class SensorPanel</span><span id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_201_3301_Open_Text"><span style="color: #0000FF;">Class</span><span style="color: #000000;"> SensorPanel </span><span style="color: #008000;">'</span><span style="color: #008000;"> must implement Activatable for TA and TP</span><span style="color: #008000;">
</span><span style="color: #008080;">009</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;">Implements</span><span style="color: #000000;"> IActivatable
</span><span style="color: #008080;">010</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>
</span><span style="color: #008080;">011</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;">012</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;"> SensorPanel
</span><span style="color: #008080;">013</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>
</span><span style="color: #008080;">014</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;"> activator registered for this class</span><span style="color: #008000;">
</span><span style="color: #008080;">015</span><span style="color: #008000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/></span><span style="color: #000000;">        </span><span style="color: #000000;">&lt;</span><span style="color: #000000;">Transient()</span><span style="color: #000000;">&gt;</span><span style="color: #000000;"> _
</span><span style="color: #008080;">016</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;"> _activator </span><span style="color: #0000FF;">As</span><span style="color: #000000;"> IActivator
</span><span style="color: #008080;">017</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>
</span><span style="color: #008080;">018</span><span style="color: #000000;"><img id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_494_519_Open_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_494_519_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_494_519_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_494_519_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_494_519_Closed_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_494_519_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_494_519_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_494_519_Open_Text').style.display='inline';"/>        </span><span style="color: #0000FF;">Public</span><span style="color: #000000;"> </span><span id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_494_519_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">Sub New()</span><span id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_494_519_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;">019</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;">020</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;"> end New</span><span style="color: #008000;">
</span><span style="color: #008080;">021</span><span style="color: #008000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/></span><span style="color: #000000;">
</span><span style="color: #008080;">022</span><span style="color: #000000;"><img id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_554_629_Open_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_554_629_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_554_629_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_554_629_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_554_629_Closed_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_554_629_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_554_629_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_554_629_Open_Text').style.display='inline';"/>        </span><span style="color: #0000FF;">Public</span><span style="color: #000000;"> </span><span id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_554_629_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">Sub New()</span><span id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_554_629_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;">023</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;">024</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;">025</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;"> end New</span><span style="color: #008000;">
</span><span style="color: #008080;">026</span><span style="color: #008000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/></span><span style="color: #000000;">
</span><span style="color: #008080;">027</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;"> Bind the class to the specified object container, create the activator </span><span style="color: #008000;">
</span><span style="color: #008080;">028</span><span style="color: #008000;"><img id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_746_1103_Open_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_746_1103_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_746_1103_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_746_1103_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_746_1103_Closed_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_746_1103_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_746_1103_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_746_1103_Open_Text').style.display='inline';"/></span><span style="color: #000000;">        </span><span style="color: #0000FF;">Public</span><span style="color: #000000;"> </span><span id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_746_1103_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">Sub Bind()</span><span id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_746_1103_Open_Text"><span style="color: #0000FF;">Sub</span><span style="color: #000000;"> Bind(</span><span style="color: #0000FF;">ByVal</span><span style="color: #000000;"> activator </span><span style="color: #0000FF;">As</span><span style="color: #000000;"> IActivator) </span><span style="color: #0000FF;">Implements</span><span style="color: #000000;"> IActivatable.Bind
</span><span style="color: #008080;">029</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;"> _activator </span><span style="color: #0000FF;">Is</span><span style="color: #000000;"> activator </span><span style="color: #0000FF;">Then</span><span style="color: #000000;">
</span><span style="color: #008080;">030</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: #008080;">031</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;">032</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;"> (activator </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;">Or</span><span style="color: #000000;"> _activator </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;">033</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                </span><span style="color: #0000FF;">Throw</span><span style="color: #000000;"> </span><span style="color: #0000FF;">New</span><span style="color: #000000;"> System.InvalidOperationException()
</span><span style="color: #008080;">034</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;">035</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            _activator </span><span style="color: #000000;">=</span><span style="color: #000000;"> activator
</span><span style="color: #008080;">036</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;">037</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;"> end Bind</span><span style="color: #008000;">
</span><span style="color: #008080;">038</span><span style="color: #008000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/></span><span style="color: #000000;">
</span><span style="color: #008080;">039</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;">Call the registered activator to activate the next level,</span><span style="color: #008000;">
</span><span style="color: #008080;">040</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;"> the activator remembers the objects that were already </span><span style="color: #008000;">
</span><span style="color: #008080;">041</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;"> activated and won't activate them twice. </span><span style="color: #008000;">
</span><span style="color: #008080;">042</span><span style="color: #008000;"><img id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_1323_1560_Open_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_1323_1560_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_1323_1560_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_1323_1560_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_1323_1560_Closed_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_1323_1560_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_1323_1560_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_1323_1560_Open_Text').style.display='inline';"/></span><span style="color: #000000;">        </span><span style="color: #0000FF;">Public</span><span style="color: #000000;"> </span><span id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_1323_1560_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">Sub Activate()</span><span id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_1323_1560_Open_Text"><span style="color: #0000FF;">Sub</span><span style="color: #000000;"> Activate(</span><span style="color: #0000FF;">ByVal</span><span style="color: #000000;"> purpose </span><span style="color: #0000FF;">As</span><span style="color: #000000;"> ActivationPurpose) </span><span style="color: #0000FF;">Implements</span><span style="color: #000000;"> IActivatable.Activate
</span><span style="color: #008080;">043</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;"> _activator </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;">044</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: #008080;">045</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;">046</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            _activator.Activate(ActivationPurpose.Read)
</span><span style="color: #008080;">047</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;">048</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;"> end Activate</span><span style="color: #008000;">
</span><span style="color: #008080;">049</span><span style="color: #008000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/></span><span style="color: #000000;">
</span><span style="color: #008080;">050</span><span style="color: #000000;"><img id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_1609_1822_Open_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_1609_1822_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_1609_1822_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_1609_1822_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_1609_1822_Closed_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_1609_1822_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_1609_1822_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_1609_1822_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="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_1609_1822_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">Property NextSensor()</span><span id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_1609_1822_Open_Text"><span style="color: #0000FF;">Property</span><span style="color: #000000;"> NextSensor() </span><span style="color: #0000FF;">As</span><span style="color: #000000;"> SensorPanel
</span><span style="color: #008080;">051</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;">052</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;"> activate direct members</span><span style="color: #008000;">
</span><span style="color: #008080;">053</span><span style="color: #008000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/></span><span style="color: #000000;">                Activate(ActivationPurpose.Read)
</span><span style="color: #008080;">054</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;">055</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;">056</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;">057</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;"> end NextSensor</span><span style="color: #008000;">
</span><span style="color: #008080;">058</span><span style="color: #008000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/></span><span style="color: #000000;">
</span><span style="color: #008080;">059</span><span style="color: #000000;"><img id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_1864_2254_Open_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_1864_2254_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_1864_2254_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_1864_2254_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_1864_2254_Closed_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_1864_2254_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_1864_2254_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_1864_2254_Open_Text').style.display='inline';"/>        </span><span style="color: #0000FF;">Public</span><span style="color: #000000;"> </span><span id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_1864_2254_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">Property Sensor()</span><span id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_1864_2254_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;">060</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;">061</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;"> activate direct members</span><span style="color: #008000;">
</span><span style="color: #008080;">062</span><span style="color: #008000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/></span><span style="color: #000000;">                Activate(ActivationPurpose.Read)
</span><span style="color: #008080;">063</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;">064</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;">065</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            </span><span style="color: #0000FF;">Set</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;">Object</span><span style="color: #000000;">)
</span><span style="color: #008080;">066</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;"> activate for persistence</span><span style="color: #008000;">
</span><span style="color: #008080;">067</span><span style="color: #008000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/></span><span style="color: #000000;">                Activate(ActivationPurpose.Write)
</span><span style="color: #008080;">068</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;">069</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;">Set</span><span style="color: #000000;">
</span><span style="color: #008080;">070</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;">071</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;"> end Sensor</span><span style="color: #008000;">
</span><span style="color: #008080;">072</span><span style="color: #008000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/></span><span style="color: #000000;">
</span><span style="color: #008080;">073</span><span style="color: #000000;"><img id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_2292_2413_Open_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_2292_2413_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_2292_2413_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_2292_2413_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_2292_2413_Closed_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_2292_2413_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_2292_2413_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_2292_2413_Open_Text').style.display='inline';"/>        </span><span style="color: #0000FF;">Public</span><span style="color: #000000;"> </span><span id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_2292_2413_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">Function CreateList()</span><span id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_2292_2413_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;"> SensorPanel
</span><span style="color: #008080;">074</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;">075</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;">076</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;"> end CreateList</span><span style="color: #008000;">
</span><span style="color: #008080;">077</span><span style="color: #008000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/></span><span style="color: #000000;">
</span><span style="color: #008080;">078</span><span style="color: #000000;"><img id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_2455_2936_Open_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_2455_2936_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_2455_2936_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_2455_2936_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_2455_2936_Closed_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_2455_2936_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_2455_2936_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_2455_2936_Open_Text').style.display='inline';"/>        </span><span style="color: #0000FF;">Public</span><span style="color: #000000;"> </span><span id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_2455_2936_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">Function CreateList()</span><span id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_2455_2936_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;"> SensorPanel
</span><span style="color: #008080;">079</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;">080</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;"> SensorPanel </span><span style="color: #000000;">=</span><span style="color: #000000;"> NewElement(first)
</span><span style="color: #008080;">081</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;"> SensorPanel </span><span style="color: #000000;">=</span><span style="color: #000000;"> root
</span><span style="color: #008080;">082</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;">&gt;</span><span style="color: #000000;"> </span><span style="color: #800080;">0</span><span style="color: #000000;">
</span><span style="color: #008080;">083</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;">084</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;">085</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;">086</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;">087</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;">088</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;"> end CreateList</span><span style="color: #008000;">
</span><span style="color: #008080;">089</span><span style="color: #008000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/></span><span style="color: #000000;">
</span><span style="color: #008080;">090</span><span style="color: #000000;"><img id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_2981_3102_Open_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_2981_3102_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_2981_3102_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_2981_3102_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_2981_3102_Closed_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_2981_3102_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_2981_3102_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_2981_3102_Open_Text').style.display='inline';"/>        </span><span style="color: #0000FF;">Protected</span><span style="color: #000000;"> </span><span id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_2981_3102_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">Function NewElement()</span><span id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_2981_3102_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;"> SensorPanel
</span><span style="color: #008080;">091</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;"> SensorPanel(value)
</span><span style="color: #008080;">092</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;">093</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;"> end NewElement</span><span style="color: #008000;">
</span><span style="color: #008080;">094</span><span style="color: #008000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/></span><span style="color: #000000;">
</span><span style="color: #008080;">095</span><span style="color: #000000;"><img id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_3164_3264_Open_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_3164_3264_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_3164_3264_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_3164_3264_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_3164_3264_Closed_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_3164_3264_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_3164_3264_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_3164_3264_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="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_3164_3264_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">Function ToString()</span><span id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsSensorPanel.Vb_SensorPanel.Vb_441_44_3164_3264_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;">096</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;">&quot;</span><span style="color: #800000;">Sensor #</span><span style="color: #800000;">&quot;</span><span style="color: #000000;"> </span><span style="color: #000000;">+</span><span style="color: #000000;"> Sensor.ToString()
</span><span style="color: #008080;">097</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;">098</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;"> end ToString</span><span style="color: #008000;">
</span><span style="color: #008080;">099</span><span style="color: #008000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"/></span><span style="color: #000000;">    </span><span style="color: #0000FF;">End Class</span></span><span style="color: #000000;">
</span><span style="color: #008080;">100</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>Note, that the only place where we can modify SensorPanel members
is <code>setSensor</code> method/<code>Sensor</code> property, and that is
where <code>activate</code> method is added.<br></p>

<p>Now we will only need to add Transparent Activation support:</p>



<span name="cs_wiki_filter" csw_filters="cs">

<div class="FormattedSourceCode"><div class="fscHeader"><span class="fscFileName">TPExample.cs: <span class="fscMemberName">ConfigureTA</span></span></div><div class="fscCode"><pre ID="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_ConfigureTA_830_54"><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="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_ConfigureTA_830_54_52_269_Open_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_ConfigureTA_830_54_52_269_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_ConfigureTA_830_54_52_269_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_ConfigureTA_830_54_52_269_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_ConfigureTA_830_54_52_269_Closed_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_ConfigureTA_830_54_52_269_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_ConfigureTA_830_54_52_269_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_ConfigureTA_830_54_52_269_Open_Text').style.display='inline';"/>        </span><span id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_ConfigureTA_830_54_52_269_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_ConfigureTA_830_54_52_269_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;"> add TA support</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.Add(</span><span style="color: #0000FF;">new</span><span style="color: #000000;"> TransparentActivationSupport());
</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: #0000FF;">return</span><span style="color: #000000;"> configuration;
</span><span style="color: #008080;">7</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">TPExample.vb: <span class="fscMemberName">ConfigureTA</span></span></div><div class="fscCode"><pre ID="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsTPExample.Vb_TPExample.Vb_ConfigureTA_948_54"><div><!--

Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/

--><span style="color: #008080;">1</span><img id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsTPExample.Vb_TPExample.Vb_ConfigureTA_948_54_15_281_Open_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsTPExample.Vb_TPExample.Vb_ConfigureTA_948_54_15_281_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsTPExample.Vb_TPExample.Vb_ConfigureTA_948_54_15_281_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsTPExample.Vb_TPExample.Vb_ConfigureTA_948_54_15_281_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsTPExample.Vb_TPExample.Vb_ConfigureTA_948_54_15_281_Closed_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsTPExample.Vb_TPExample.Vb_ConfigureTA_948_54_15_281_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsTPExample.Vb_TPExample.Vb_ConfigureTA_948_54_15_281_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsTPExample.Vb_TPExample.Vb_ConfigureTA_948_54_15_281_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="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsTPExample.Vb_TPExample.Vb_ConfigureTA_948_54_15_281_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">Function ConfigureTA()</span><span id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsTPExample.Vb_TPExample.Vb_ConfigureTA_948_54_15_281_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;"> add TA support</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.Add(</span><span style="color: #0000FF;">New</span><span style="color: #000000;"> TransparentActivationSupport)
</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: #0000FF;">Return</span><span style="color: #000000;"> configuration
</span><span style="color: #008080;">6</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>

</span>

<p>Initial storing of the objects is done as usual with a
single <code>store</code> call:</p>



<span name="cs_wiki_filter" csw_filters="cs">

<div class="FormattedSourceCode"><div class="fscHeader"><span class="fscFileName">TPExample.cs: <span class="fscMemberName">StoreSensorPanel</span></span></div><div class="fscCode"><pre ID="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_StoreSensorPanel_1168_59"><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="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_StoreSensorPanel_1168_59_47_571_Open_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_StoreSensorPanel_1168_59_47_571_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_StoreSensorPanel_1168_59_47_571_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_StoreSensorPanel_1168_59_47_571_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_StoreSensorPanel_1168_59_47_571_Closed_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_StoreSensorPanel_1168_59_47_571_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_StoreSensorPanel_1168_59_47_571_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_StoreSensorPanel_1168_59_47_571_Open_Text').style.display='inline';"/>        </span><span id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_StoreSensorPanel_1168_59_47_571_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_StoreSensorPanel_1168_59_47_571_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="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_StoreSensorPanel_1168_59_218_561_Open_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_StoreSensorPanel_1168_59_218_561_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_StoreSensorPanel_1168_59_218_561_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_StoreSensorPanel_1168_59_218_561_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_StoreSensorPanel_1168_59_218_561_Closed_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_StoreSensorPanel_1168_59_218_561_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_StoreSensorPanel_1168_59_218_561_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_StoreSensorPanel_1168_59_218_561_Open_Text').style.display='inline';"/>            </span><span id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_StoreSensorPanel_1168_59_218_561_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_StoreSensorPanel_1168_59_218_561_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="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_StoreSensorPanel_1168_59_256_450_Open_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_StoreSensorPanel_1168_59_256_450_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_StoreSensorPanel_1168_59_256_450_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_StoreSensorPanel_1168_59_256_450_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_StoreSensorPanel_1168_59_256_450_Closed_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_StoreSensorPanel_1168_59_256_450_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_StoreSensorPanel_1168_59_256_450_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_StoreSensorPanel_1168_59_256_450_Open_Text').style.display='inline';"/>                </span><span id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_StoreSensorPanel_1168_59_256_450_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_StoreSensorPanel_1168_59_256_450_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;">                    SensorPanel list </span><span style="color: #000000;">=</span><span style="color: #000000;"> </span><span style="color: #0000FF;">new</span><span style="color: #000000;"> SensorPanel().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.Store(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="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_StoreSensorPanel_1168_59_491_547_Open_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_StoreSensorPanel_1168_59_491_547_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_StoreSensorPanel_1168_59_491_547_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_StoreSensorPanel_1168_59_491_547_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_StoreSensorPanel_1168_59_491_547_Closed_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_StoreSensorPanel_1168_59_491_547_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_StoreSensorPanel_1168_59_491_547_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_StoreSensorPanel_1168_59_491_547_Open_Text').style.display='inline';"/>                </span><span id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_StoreSensorPanel_1168_59_491_547_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_StoreSensorPanel_1168_59_491_547_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>

</span>

<span name="cs_wiki_filter" csw_filters="vb">

<div class="FormattedSourceCode"><div class="fscHeader"><span class="fscFileName">TPExample.vb: <span class="fscMemberName">StoreSensorPanel</span></span></div><div class="fscCode"><pre ID="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsTPExample.Vb_TPExample.Vb_StoreSensorPanel_1291_59"><div><!--

Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/

--><span style="color: #008080;">01</span><img id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsTPExample.Vb_TPExample.Vb_StoreSensorPanel_1291_59_15_525_Open_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsTPExample.Vb_TPExample.Vb_StoreSensorPanel_1291_59_15_525_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsTPExample.Vb_TPExample.Vb_StoreSensorPanel_1291_59_15_525_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsTPExample.Vb_TPExample.Vb_StoreSensorPanel_1291_59_15_525_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsTPExample.Vb_TPExample.Vb_StoreSensorPanel_1291_59_15_525_Closed_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsTPExample.Vb_TPExample.Vb_StoreSensorPanel_1291_59_15_525_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsTPExample.Vb_TPExample.Vb_StoreSensorPanel_1291_59_15_525_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsTPExample.Vb_TPExample.Vb_StoreSensorPanel_1291_59_15_525_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="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsTPExample.Vb_TPExample.Vb_StoreSensorPanel_1291_59_15_525_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">Sub StoreSensorPanel()</span><span id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsTPExample.Vb_TPExample.Vb_StoreSensorPanel_1291_59_15_525_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;"> SensorPanel </span><span style="color: #000000;">=</span><span style="color: #000000;"> (</span><span style="color: #0000FF;">New</span><span style="color: #000000;"> SensorPanel).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>

</span>

<p>Now we can test how Transparent Persistence helped us to
keep the code simple. Let's select all elements from the linked SensorPanel
list, modify them and store. As you remember default update depth is one, so
without TP, we would have to store each member of the linked list (SensorPanel)
separately. With TP enabled there is absolutely nothing to do: commit call will
find all activatable objects and store those that were modified.</p>



<span name="cs_wiki_filter" csw_filters="cs">

<div class="FormattedSourceCode"><div class="fscHeader"><span class="fscFileName">TPExample.cs: <span class="fscMemberName">TestTransparentPersistence</span></span></div><div class="fscCode"><pre ID="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_TestTransparentPersistence_1868_69"><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;"> TestTransparentPersistence()
</span><span style="color: #008080;">02</span><span style="color: #000000;"><img id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_TestTransparentPersistence_1868_69_57_2666_Open_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_TestTransparentPersistence_1868_69_57_2666_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_TestTransparentPersistence_1868_69_57_2666_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_TestTransparentPersistence_1868_69_57_2666_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_TestTransparentPersistence_1868_69_57_2666_Closed_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_TestTransparentPersistence_1868_69_57_2666_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_TestTransparentPersistence_1868_69_57_2666_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_TestTransparentPersistence_1868_69_57_2666_Open_Text').style.display='inline';"/>        </span><span id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_TestTransparentPersistence_1868_69_57_2666_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_TestTransparentPersistence_1868_69_57_2666_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="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_TestTransparentPersistence_1868_69_263_1678_Open_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_TestTransparentPersistence_1868_69_263_1678_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_TestTransparentPersistence_1868_69_263_1678_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_TestTransparentPersistence_1868_69_263_1678_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_TestTransparentPersistence_1868_69_263_1678_Closed_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_TestTransparentPersistence_1868_69_263_1678_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_TestTransparentPersistence_1868_69_263_1678_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_TestTransparentPersistence_1868_69_263_1678_Open_Text').style.display='inline';"/>            </span><span id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_TestTransparentPersistence_1868_69_263_1678_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_TestTransparentPersistence_1868_69_263_1678_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="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_TestTransparentPersistence_1868_69_301_1371_Open_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_TestTransparentPersistence_1868_69_301_1371_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_TestTransparentPersistence_1868_69_301_1371_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_TestTransparentPersistence_1868_69_301_1371_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_TestTransparentPersistence_1868_69_301_1371_Closed_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_TestTransparentPersistence_1868_69_301_1371_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_TestTransparentPersistence_1868_69_301_1371_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_TestTransparentPersistence_1868_69_301_1371_Open_Text').style.display='inline';"/>                </span><span id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_TestTransparentPersistence_1868_69_301_1371_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_TestTransparentPersistence_1868_69_301_1371_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"/>                    IObjectSet result </span><span style="color: #000000;">=</span><span style="color: #000000;"> container.QueryByExample(</span><span style="color: #0000FF;">new</span><span style="color: #000000;"> SensorPanel(</span><span style="color: #800080;">1</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"/>                    ListResult(result);
</span><span style="color: #008080;">13</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                    SensorPanel sensor </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;">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;">&gt;</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="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_TestTransparentPersistence_1868_69_539_1353_Open_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_TestTransparentPersistence_1868_69_539_1353_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_TestTransparentPersistence_1868_69_539_1353_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_TestTransparentPersistence_1868_69_539_1353_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_TestTransparentPersistence_1868_69_539_1353_Closed_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_TestTransparentPersistence_1868_69_539_1353_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_TestTransparentPersistence_1868_69_539_1353_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_TestTransparentPersistence_1868_69_539_1353_Open_Text').style.display='inline';"/>                    </span><span id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_TestTransparentPersistence_1868_69_539_1353_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_TestTransparentPersistence_1868_69_539_1353_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"/>                        System.Console.WriteLine(</span><span style="color: #800000;">&quot;</span><span style="color: #800000;">Before modification: </span><span style="color: #800000;">&quot;</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"/>                        sensor </span><span style="color: #000000;">=</span><span style="color: #000000;"> (SensorPanel)result[</span><span style="color: #800080;">0</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"/>                        </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;">19</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;">20</span><span style="color: #008000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/></span><span style="color: #000000;">                        SensorPanel next </span><span style="color: #000000;">=</span><span style="color: #000000;"> sensor.Next;
</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: #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;">22</span><span style="color: #000000;"><img id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_TestTransparentPersistence_1868_69_939_1201_Open_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_TestTransparentPersistence_1868_69_939_1201_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_TestTransparentPersistence_1868_69_939_1201_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_TestTransparentPersistence_1868_69_939_1201_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_TestTransparentPersistence_1868_69_939_1201_Closed_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_TestTransparentPersistence_1868_69_939_1201_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_TestTransparentPersistence_1868_69_939_1201_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_TestTransparentPersistence_1868_69_939_1201_Open_Text').style.display='inline';"/>                        </span><span id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_TestTransparentPersistence_1868_69_939_1201_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_TestTransparentPersistence_1868_69_939_1201_Open_Text"><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"/>                            System.Console.WriteLine(next);
</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: #008000;">//</span><span style="color: #008000;"> modify the next sensor</span><span style="color: #008000;">
</span><span style="color: #008080;">25</span><span style="color: #008000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/></span><span style="color: #000000;">                            next.Sensor </span><span style="color: #000000;">=</span><span style="color: #000000;"> (</span><span style="color: #0000FF;">object</span><span style="color: #000000;">)(</span><span style="color: #800080;">10</span><span style="color: #000000;"> </span><span style="color: #000000;">+</span><span style="color: #000000;"> (</span><span style="color: #0000FF;">int</span><span style="color: #000000;">)next.Sensor);
</span><span style="color: #008080;">26</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;">27</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;">28</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;"> Explicit commit stores and commits the changes at any time</span><span style="color: #008000;">
</span><span style="color: #008080;">29</span><span style="color: #008000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/></span><span style="color: #000000;">                        container.Commit();
</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/InBlock.gif" align="top"/>                </span><span style="color: #0000FF;">finally</span><span style="color: #000000;">
</span><span style="color: #008080;">33</span><span style="color: #000000;"><img id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_TestTransparentPersistence_1868_69_1412_1664_Open_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_TestTransparentPersistence_1868_69_1412_1664_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_TestTransparentPersistence_1868_69_1412_1664_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_TestTransparentPersistence_1868_69_1412_1664_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_TestTransparentPersistence_1868_69_1412_1664_Closed_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_TestTransparentPersistence_1868_69_1412_1664_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_TestTransparentPersistence_1868_69_1412_1664_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_TestTransparentPersistence_1868_69_1412_1664_Open_Text').style.display='inline';"/>                </span><span id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_TestTransparentPersistence_1868_69_1412_1664_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_TestTransparentPersistence_1868_69_1412_1664_Open_Text"><span style="color: #000000;">{
</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: #008000;">//</span><span style="color: #008000;"> If there are unsaved changes to activatable objects, they 
</span><span style="color: #008080;">35</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 be implicitly saved and committed when the database 
</span><span style="color: #008080;">36</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;"> is closed</span><span style="color: #008000;">
</span><span style="color: #008080;">37</span><span style="color: #008000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/></span><span style="color: #000000;">                    CloseDatabase();
</span><span style="color: #008080;">38</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;">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/InBlock.gif" align="top"/>            </span><span style="color: #008000;">//</span><span style="color: #008000;"> reopen the database and check the modifications</span><span style="color: #008000;">
</span><span style="color: #008080;">41</span><span style="color: #008000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/></span><span style="color: #000000;">            container </span><span style="color: #000000;">=</span><span style="color: #000000;"> Database(configuration);
</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;">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;">43</span><span style="color: #000000;"><img id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_TestTransparentPersistence_1868_69_1838_2656_Open_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_TestTransparentPersistence_1868_69_1838_2656_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_TestTransparentPersistence_1868_69_1838_2656_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_TestTransparentPersistence_1868_69_1838_2656_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_TestTransparentPersistence_1868_69_1838_2656_Closed_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_TestTransparentPersistence_1868_69_1838_2656_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_TestTransparentPersistence_1868_69_1838_2656_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_TestTransparentPersistence_1868_69_1838_2656_Open_Text').style.display='inline';"/>            </span><span id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_TestTransparentPersistence_1868_69_1838_2656_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_TestTransparentPersistence_1868_69_1838_2656_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;">try</span><span style="color: #000000;">
</span><span style="color: #008080;">45</span><span style="color: #000000;"><img id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_TestTransparentPersistence_1868_69_1876_2545_Open_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_TestTransparentPersistence_1868_69_1876_2545_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_TestTransparentPersistence_1868_69_1876_2545_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_TestTransparentPersistence_1868_69_1876_2545_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_TestTransparentPersistence_1868_69_1876_2545_Closed_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_TestTransparentPersistence_1868_69_1876_2545_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_TestTransparentPersistence_1868_69_1876_2545_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_TestTransparentPersistence_1868_69_1876_2545_Open_Text').style.display='inline';"/>                </span><span id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_TestTransparentPersistence_1868_69_1876_2545_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_TestTransparentPersistence_1868_69_1876_2545_Open_Text"><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"/>                    IObjectSet result </span><span style="color: #000000;">=</span><span style="color: #000000;"> container.QueryByExample(</span><span style="color: #0000FF;">new</span><span style="color: #000000;"> SensorPanel(</span><span style="color: #800080;">1</span><span style="color: #000000;">));
</span><span style="color: #008080;">47</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                    ListResult(result);
</span><span style="color: #008080;">48</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                    SensorPanel sensor </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;">49</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;">&gt;</span><span style="color: #000000;"> </span><span style="color: #800080;">0</span><span style="color: #000000;">)
</span><span style="color: #008080;">50</span><span style="color: #000000;"><img id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_TestTransparentPersistence_1868_69_2114_2527_Open_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_TestTransparentPersistence_1868_69_2114_2527_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_TestTransparentPersistence_1868_69_2114_2527_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_TestTransparentPersistence_1868_69_2114_2527_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_TestTransparentPersistence_1868_69_2114_2527_Closed_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_TestTransparentPersistence_1868_69_2114_2527_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_TestTransparentPersistence_1868_69_2114_2527_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_TestTransparentPersistence_1868_69_2114_2527_Open_Text').style.display='inline';"/>                    </span><span id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_TestTransparentPersistence_1868_69_2114_2527_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_TestTransparentPersistence_1868_69_2114_2527_Open_Text"><span style="color: #000000;">{
</span><span style="color: #008080;">51</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                        System.Console.WriteLine(</span><span style="color: #800000;">&quot;</span><span style="color: #800000;">After modification: </span><span style="color: #800000;">&quot;</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"/>                        sensor </span><span style="color: #000000;">=</span><span style="color: #000000;"> (SensorPanel)result[</span><span style="color: #800080;">0</span><span style="color: #000000;">];
</span><span style="color: #008080;">53</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                        SensorPanel next </span><span style="color: #000000;">=</span><span style="color: #000000;"> sensor.Next;
</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;">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;">55</span><span style="color: #000000;"><img id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_TestTransparentPersistence_1868_69_2372_2505_Open_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_TestTransparentPersistence_1868_69_2372_2505_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_TestTransparentPersistence_1868_69_2372_2505_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_TestTransparentPersistence_1868_69_2372_2505_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_TestTransparentPersistence_1868_69_2372_2505_Closed_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_TestTransparentPersistence_1868_69_2372_2505_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_TestTransparentPersistence_1868_69_2372_2505_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_TestTransparentPersistence_1868_69_2372_2505_Open_Text').style.display='inline';"/>                        </span><span id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_TestTransparentPersistence_1868_69_2372_2505_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_TestTransparentPersistence_1868_69_2372_2505_Open_Text"><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"/>                            System.Console.WriteLine(next);
</span><span style="color: #008080;">57</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;">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/ExpandedSubBlockEnd.gif" align="top"/>                    }</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><span style="color: #000000;">
</span><span style="color: #008080;">61</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;">62</span><span style="color: #000000;"><img id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_TestTransparentPersistence_1868_69_2586_2642_Open_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_TestTransparentPersistence_1868_69_2586_2642_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_TestTransparentPersistence_1868_69_2586_2642_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_TestTransparentPersistence_1868_69_2586_2642_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_TestTransparentPersistence_1868_69_2586_2642_Closed_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_TestTransparentPersistence_1868_69_2586_2642_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_TestTransparentPersistence_1868_69_2586_2642_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_TestTransparentPersistence_1868_69_2586_2642_Open_Text').style.display='inline';"/>                </span><span id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_TestTransparentPersistence_1868_69_2586_2642_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleCS.ZipsTPExample.Cs_TPExample.Cs_TestTransparentPersistence_1868_69_2586_2642_Open_Text"><span style="color: #000000;">{
</span><span style="color: #008080;">63</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                    CloseDatabase();
</span><span style="color: #008080;">64</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;">65</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;">66</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">TPExample.vb: <span class="fscMemberName">TestTransparentPersistence</span></span></div><div class="fscCode"><pre ID="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsTPExample.Vb_TPExample.Vb_TestTransparentPersistence_2001_69"><div><!--

Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/

--><span style="color: #008080;">01</span><img id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsTPExample.Vb_TPExample.Vb_TestTransparentPersistence_2001_69_15_2351_Open_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsTPExample.Vb_TPExample.Vb_TestTransparentPersistence_2001_69_15_2351_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsTPExample.Vb_TPExample.Vb_TestTransparentPersistence_2001_69_15_2351_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsTPExample.Vb_TPExample.Vb_TestTransparentPersistence_2001_69_15_2351_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsTPExample.Vb_TPExample.Vb_TestTransparentPersistence_2001_69_15_2351_Closed_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsTPExample.Vb_TPExample.Vb_TestTransparentPersistence_2001_69_15_2351_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsTPExample.Vb_TPExample.Vb_TestTransparentPersistence_2001_69_15_2351_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsTPExample.Vb_TPExample.Vb_TestTransparentPersistence_2001_69_15_2351_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="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsTPExample.Vb_TPExample.Vb_TestTransparentPersistence_2001_69_15_2351_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">Sub TestTransparentPersistence()</span><span id="ResourcesReferenceObject_LifecycleTransparent_PersistenceDetailed_ExampleTPExampleVB.ZipsTPExample.Vb_TPExample.Vb_TestTransparentPersistence_2001_69_15_2351_Open_Text"><span style="color: #0000FF;">Sub</span><span style="color: #000000;"> TestTransparentPersistence()
</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"/>                    </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.QueryByExample(</span><span style="color: #0000FF;">New</span><span style="color: #000000;"> SensorPanel(</span><span style="color: #800080;">1</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;"> sensor </span><span style="color: #0000FF;">As</span><span style="color: #000000;"> SensorPanel </span><span style="color: #000000;">=</span><span style="color: #000000;"> </span><span style="color: #0000FF;">Nothing</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;">&gt;</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"/>                        System.Console.WriteLine(</span><span style="color: #800000;">&quot;</span><span style="color: #800000;">Before modification: </span><span style="color: #800000;">&quot;</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"/>                        sensor </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;">), SensorPanel)
</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: #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;">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: #008000;">'</span><span style="color: #008000;"> will need to activate a new object</span><span style="color: #008000;">
</span><span style="color: #008080;">15</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;"> SensorPanel </span><span style="color: #000000;">=</span><span style="color: #000000;"> sensor.NextSensor
</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: #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;">17</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                            System.Console.WriteLine(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: #008000;">'</span><span style="color: #008000;"> modify the next sensor</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;">                            nextSensor.Sensor </span><span style="color: #000000;">=</span><span style="color: #000000;"> </span><span style="color: #0000FF;">CType</span><span style="color: #000000;">((</span><span style="color: #800080;">10</span><span style="color: #000000;"> </span><span style="color: #000000;">+</span><span style="color: #000000;"> </span><span style="color: #0000FF;">CType</span><span style="color: #000000;">(nextSensor.Sensor, Int32)), </span><span style="color: #0000FF;">Object</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"/>                            nextSensor </span><span style="color: #000000;">=</span><span style="color: #000000;"> nextSensor.NextSensor
</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: #0000FF;">End</span><span style="color: #000000;"> </span><span style="color: #0000FF;">While</span><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"/>                    </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;">23</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;">24</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                    CloseDatabase()
</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;">Try</span><span style="color: #000000;">
</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;">End</span><span style="color: #000000;"> </span><span style="color: #0000FF;">If</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: #008000;">'</span><span style="color: #008000;"> reopen the database and check the modifications</span><span style="color: #008000;">
</span><span style="color: #008080;">28</span><span style="color: #008000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/></span><span style="color: #000000;">            container </span><span style="color: #000000;">=</span><span style="color: #000000;"> Database(configuration)
</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;">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;">30</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;">31</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.QueryByExample(</span><span style="color: #0000FF;">New</span><span style="color: #000000;"> SensorPanel(</span><span style="color: #800080;">1</span><span style="color: #000000;">))
</span><span style="color: #008080;">32</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;"> SensorPanel </span><span style="color: #000000;">=</span><span style="color: #000000;"> </span><span style="color: #0000FF;">Nothing</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"/>                    ListResult(result)
</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;">If</span><span style="color: #000000;"> result.Size </span><span style="color: #000000;">&gt;</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;">35</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                        System.Console.WriteLine(</span><span style="color: #800000;">&quot;</span><span style="color: #800000;">After modification: </span><span style="color: #800000;">&quot;</span><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"/>                        sensor </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;">), SensorPanel)
</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: #0000FF;">Dim</span><span style="color: #000000;"> nextSensor </span><span style="color: #0000FF;">As</span><span style="color: #000000;"> SensorPanel </span><span style="color: #000000;">=</span><span style="color: #000000;"> sensor.NextSensor
</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;">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;">39</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                            System.Console.WriteLine(nextSensor)
</span><span style="color: #008080;">40</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;">41</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;">42</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;">43</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;">44</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                    CloseDatabase()
</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;">Try</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;">End</span><span style="color: #000000;"> </span><span style="color: #0000FF;">If</span><span style="color: #000000;">
</span><span style="color: #008080;">47</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>That's all. The benefits that we've got:</p>

<ul class="unIndentedList"><li>
clean and friendly to refactorings code;</li><li>
performance benefit: only modified objects are
stored;</li><li>
hussle-free development.</li></ul>







</div>
    </div>
    <div id="footer">
					This revision (2) was last Modified 2008-01-15T06:07:43 by Tetyana.
				</div>
  </body>
</html>