Sophie

Sophie

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

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

<html>
  <head>
    <META http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>Collection Example</title>
    <link rel="stylesheet" type="text/css" href="../../../../style.css">
  </head>
  <body>
    <div class="CommonContent">
      <div class="CommonContentArea">
        <h1>Collection 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>Db4o provides proprietary implementations for Map and List interfaces. Both implementations, when instantiated as a result of a query, are transparently activated when internal members are required to perform an operation. Db4o implementations provide an important advantage over JDK collections when running in transparent activation mode, based on the ability to control their activation. </p><p>ArrayList4 implements the List interface using an array to store elements. When an ArrayList4 instance is activated all the elements of the array are loaded into memory. On the other hand, ArrayMap4 implements the Map interface using two arrays to store keys and values. When an ArrayMap4 instance is activated all the elements of the arrays are loaded into memory.</p><p>We will use a <code>Team</code> class with a collection of <code>Pilot</code> objects:<br><br> <br><br><span name="cs_wiki_filter" csw_filters="cs"> <br><br><div class="FormattedSourceCode"><div class="fscHeader"><span class="fscFileName">Team.cs</span></div><div class="fscCode"><pre ID="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTeam.Cs_Team.Cs_930_31"><div><!--

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

--><span style="color: #008080;">01</span><img id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTeam.Cs_Team.Cs_930_31_0_67_Open_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTeam.Cs_Team.Cs_930_31_0_67_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTeam.Cs_Team.Cs_930_31_0_67_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTeam.Cs_Team.Cs_930_31_0_67_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTeam.Cs_Team.Cs_930_31_0_67_Closed_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTeam.Cs_Team.Cs_930_31_0_67_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTeam.Cs_Team.Cs_930_31_0_67_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTeam.Cs_Team.Cs_930_31_0_67_Open_Text').style.display='inline';"/><span id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTeam.Cs_Team.Cs_930_31_0_67_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">/**/</span><span id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTeam.Cs_Team.Cs_930_31_0_67_Open_Text"><span style="color: #008000;">/*</span><span style="color: #008000;"> Copyright (C) 2004 - 2007 db4objects Inc. </span><span style="color: #008000; text-decoration: underline;">http://www.db4o.com</span><span style="color: #008000;"> </span><span style="color: #008000;">*/</span></span><span style="color: #000000;">
</span><span style="color: #008080;">02</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/></span><span style="color: #0000FF;">using</span><span style="color: #000000;"> System.Collections.Generic;
</span><span style="color: #008080;">03</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/></span><span style="color: #0000FF;">using</span><span style="color: #000000;"> System.Collections;
</span><span style="color: #008080;">04</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/>
</span><span style="color: #008080;">05</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;">06</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;">07</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;">08</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.Collections;
</span><span style="color: #008080;">09</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/>
</span><span style="color: #008080;">10</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/></span><span style="color: #0000FF;">namespace</span><span style="color: #000000;"> Db4ojects.Db4odoc.TAExamples
</span><span style="color: #008080;">11</span><span style="color: #000000;"><img id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTeam.Cs_Team.Cs_930_31_287_1676_Open_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTeam.Cs_Team.Cs_930_31_287_1676_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTeam.Cs_Team.Cs_930_31_287_1676_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTeam.Cs_Team.Cs_930_31_287_1676_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTeam.Cs_Team.Cs_930_31_287_1676_Closed_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTeam.Cs_Team.Cs_930_31_287_1676_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTeam.Cs_Team.Cs_930_31_287_1676_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTeam.Cs_Team.Cs_930_31_287_1676_Open_Text').style.display='inline';"/></span><span id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTeam.Cs_Team.Cs_930_31_287_1676_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTeam.Cs_Team.Cs_930_31_287_1676_Open_Text"><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;">public</span><span style="color: #000000;"> </span><span style="color: #0000FF;">class</span><span style="color: #000000;"> Team : IActivatable
</span><span style="color: #008080;">13</span><span style="color: #000000;"><img id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTeam.Cs_Team.Cs_930_31_330_1674_Open_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTeam.Cs_Team.Cs_930_31_330_1674_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTeam.Cs_Team.Cs_930_31_330_1674_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTeam.Cs_Team.Cs_930_31_330_1674_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTeam.Cs_Team.Cs_930_31_330_1674_Closed_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTeam.Cs_Team.Cs_930_31_330_1674_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTeam.Cs_Team.Cs_930_31_330_1674_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTeam.Cs_Team.Cs_930_31_330_1674_Open_Text').style.display='inline';"/>    </span><span id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTeam.Cs_Team.Cs_930_31_330_1674_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTeam.Cs_Team.Cs_930_31_330_1674_Open_Text"><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: #008080;">15</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>        IList</span><span style="color: #000000;">&lt;</span><span style="color: #000000;">Pilot</span><span style="color: #000000;">&gt;</span><span style="color: #000000;"> _pilots </span><span style="color: #000000;">=</span><span style="color: #000000;"> </span><span style="color: #0000FF;">new</span><span style="color: #000000;"> ArrayList4</span><span style="color: #000000;">&lt;</span><span style="color: #000000;">Pilot</span><span style="color: #000000;">&gt;</span><span style="color: #000000;">();
</span><span style="color: #008080;">16</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>
</span><span style="color: #008080;">17</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>      
</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: #008080;">19</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>        </span><span style="color: #0000FF;">string</span><span style="color: #000000;"> _name;
</span><span style="color: #008080;">20</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>
</span><span style="color: #008080;">21</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>        </span><span style="color: #008000;">//</span><span style="color: #008000;">TA Activator</span><span style="color: #008000;">
</span><span style="color: #008080;">22</span><span style="color: #008000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/></span><span style="color: #000000;">        [System.NonSerialized]
</span><span style="color: #008080;">23</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>        IActivator _activator;
</span><span style="color: #008080;">24</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>
</span><span style="color: #008080;">25</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>     
</span><span style="color: #008080;">26</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>        </span><span style="color: #008000;">//</span><span style="color: #008000;">  Bind the class to an object container</span><span style="color: #008000;">
</span><span style="color: #008080;">27</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;">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;">28</span><span style="color: #000000;"><img id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTeam.Cs_Team.Cs_930_31_625_912_Open_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTeam.Cs_Team.Cs_930_31_625_912_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTeam.Cs_Team.Cs_930_31_625_912_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTeam.Cs_Team.Cs_930_31_625_912_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTeam.Cs_Team.Cs_930_31_625_912_Closed_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTeam.Cs_Team.Cs_930_31_625_912_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTeam.Cs_Team.Cs_930_31_625_912_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTeam.Cs_Team.Cs_930_31_625_912_Open_Text').style.display='inline';"/>        </span><span id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTeam.Cs_Team.Cs_930_31_625_912_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTeam.Cs_Team.Cs_930_31_625_912_Open_Text"><span style="color: #000000;">{
</span><span style="color: #008080;">29</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            </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;">30</span><span style="color: #000000;"><img id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTeam.Cs_Team.Cs_930_31_680_719_Open_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTeam.Cs_Team.Cs_930_31_680_719_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTeam.Cs_Team.Cs_930_31_680_719_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTeam.Cs_Team.Cs_930_31_680_719_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTeam.Cs_Team.Cs_930_31_680_719_Closed_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTeam.Cs_Team.Cs_930_31_680_719_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTeam.Cs_Team.Cs_930_31_680_719_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTeam.Cs_Team.Cs_930_31_680_719_Open_Text').style.display='inline';"/>            </span><span id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTeam.Cs_Team.Cs_930_31_680_719_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTeam.Cs_Team.Cs_930_31_680_719_Open_Text"><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;">return</span><span style="color: #000000;">;
</span><span style="color: #008080;">32</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"/>            }</span></span><span style="color: #000000;">
</span><span style="color: #008080;">33</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            </span><span style="color: #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;">34</span><span style="color: #000000;"><img id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTeam.Cs_Team.Cs_930_31_789_866_Open_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTeam.Cs_Team.Cs_930_31_789_866_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTeam.Cs_Team.Cs_930_31_789_866_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTeam.Cs_Team.Cs_930_31_789_866_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTeam.Cs_Team.Cs_930_31_789_866_Closed_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTeam.Cs_Team.Cs_930_31_789_866_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTeam.Cs_Team.Cs_930_31_789_866_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTeam.Cs_Team.Cs_930_31_789_866_Open_Text').style.display='inline';"/>            </span><span id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTeam.Cs_Team.Cs_930_31_789_866_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTeam.Cs_Team.Cs_930_31_789_866_Open_Text"><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"/>                </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;">36</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;">37</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;">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/InBlock.gif" align="top"/>
</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;"> activate object fields </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;">        </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;">42</span><span style="color: #000000;"><img id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTeam.Cs_Team.Cs_930_31_1013_1110_Open_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTeam.Cs_Team.Cs_930_31_1013_1110_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTeam.Cs_Team.Cs_930_31_1013_1110_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTeam.Cs_Team.Cs_930_31_1013_1110_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTeam.Cs_Team.Cs_930_31_1013_1110_Closed_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTeam.Cs_Team.Cs_930_31_1013_1110_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTeam.Cs_Team.Cs_930_31_1013_1110_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTeam.Cs_Team.Cs_930_31_1013_1110_Open_Text').style.display='inline';"/>        </span><span id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTeam.Cs_Team.Cs_930_31_1013_1110_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTeam.Cs_Team.Cs_930_31_1013_1110_Open_Text"><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;">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: #0000FF;">return</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"/>            _activator.Activate(purpose);
</span><span style="color: #008080;">45</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"/>        }</span></span><span style="color: #000000;">
</span><span style="color: #008080;">46</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>
</span><span style="color: #008080;">47</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>        </span><span style="color: #0000FF;">public</span><span style="color: #000000;"> </span><span style="color: #0000FF;">void</span><span style="color: #000000;"> AddPilot(Pilot pilot)
</span><span style="color: #008080;">48</span><span style="color: #000000;"><img id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTeam.Cs_Team.Cs_930_31_1162_1273_Open_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTeam.Cs_Team.Cs_930_31_1162_1273_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTeam.Cs_Team.Cs_930_31_1162_1273_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTeam.Cs_Team.Cs_930_31_1162_1273_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTeam.Cs_Team.Cs_930_31_1162_1273_Closed_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTeam.Cs_Team.Cs_930_31_1162_1273_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTeam.Cs_Team.Cs_930_31_1162_1273_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTeam.Cs_Team.Cs_930_31_1162_1273_Open_Text').style.display='inline';"/>        </span><span id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTeam.Cs_Team.Cs_930_31_1162_1273_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTeam.Cs_Team.Cs_930_31_1162_1273_Open_Text"><span style="color: #000000;">{
</span><span style="color: #008080;">49</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>      </span><span style="color: #008000;">//</span><span style="color: #008000;"> activate before adding new pilots</span><span style="color: #008000;">
</span><span style="color: #008080;">50</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;">51</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>      _pilots.Add(pilot);
</span><span style="color: #008080;">52</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;">53</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>
</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;">public</span><span style="color: #000000;"> </span><span style="color: #0000FF;">int</span><span style="color: #000000;"> Size()
</span><span style="color: #008080;">55</span><span style="color: #000000;"><img id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTeam.Cs_Team.Cs_930_31_1309_1441_Open_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTeam.Cs_Team.Cs_930_31_1309_1441_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTeam.Cs_Team.Cs_930_31_1309_1441_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTeam.Cs_Team.Cs_930_31_1309_1441_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTeam.Cs_Team.Cs_930_31_1309_1441_Closed_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTeam.Cs_Team.Cs_930_31_1309_1441_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTeam.Cs_Team.Cs_930_31_1309_1441_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTeam.Cs_Team.Cs_930_31_1309_1441_Open_Text').style.display='inline';"/>        </span><span id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTeam.Cs_Team.Cs_930_31_1309_1441_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTeam.Cs_Team.Cs_930_31_1309_1441_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"/>            </span><span style="color: #008000;">//</span><span style="color: #008000;"> activate before returning</span><span style="color: #008000;">
</span><span style="color: #008080;">57</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;">58</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;"> _pilots.Count;
</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/InBlock.gif" align="top"/>        </span><span style="color: #008000;">//</span><span style="color: #008000;"> end Size</span><span style="color: #008000;">
</span><span style="color: #008080;">61</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;">62</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;"> IList</span><span style="color: #000000;">&lt;</span><span style="color: #000000;">Pilot</span><span style="color: #000000;">&gt;</span><span style="color: #000000;"> Pilots
</span><span style="color: #008080;">63</span><span style="color: #000000;"><img id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTeam.Cs_Team.Cs_930_31_1506_1645_Open_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTeam.Cs_Team.Cs_930_31_1506_1645_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTeam.Cs_Team.Cs_930_31_1506_1645_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTeam.Cs_Team.Cs_930_31_1506_1645_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTeam.Cs_Team.Cs_930_31_1506_1645_Closed_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTeam.Cs_Team.Cs_930_31_1506_1645_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTeam.Cs_Team.Cs_930_31_1506_1645_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTeam.Cs_Team.Cs_930_31_1506_1645_Open_Text').style.display='inline';"/>        </span><span id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTeam.Cs_Team.Cs_930_31_1506_1645_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTeam.Cs_Team.Cs_930_31_1506_1645_Open_Text"><span style="color: #000000;">{
</span><span style="color: #008080;">64</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            </span><span style="color: #0000FF;">get</span><span style="color: #000000;"> 
</span><span style="color: #008080;">65</span><span style="color: #000000;"><img id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTeam.Cs_Team.Cs_930_31_1537_1635_Open_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTeam.Cs_Team.Cs_930_31_1537_1635_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTeam.Cs_Team.Cs_930_31_1537_1635_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTeam.Cs_Team.Cs_930_31_1537_1635_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTeam.Cs_Team.Cs_930_31_1537_1635_Closed_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTeam.Cs_Team.Cs_930_31_1537_1635_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTeam.Cs_Team.Cs_930_31_1537_1635_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTeam.Cs_Team.Cs_930_31_1537_1635_Open_Text').style.display='inline';"/>            </span><span id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTeam.Cs_Team.Cs_930_31_1537_1635_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTeam.Cs_Team.Cs_930_31_1537_1635_Open_Text"><span style="color: #000000;">{
</span><span style="color: #008080;">66</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                Activate(ActivationPurpose.Read);
</span><span style="color: #008080;">67</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                </span><span style="color: #0000FF;">return</span><span style="color: #000000;"> _pilots; 
</span><span style="color: #008080;">68</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"/>            }</span></span><span style="color: #000000;">
</span><span style="color: #008080;">69</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"/>        }</span></span><span style="color: #000000;">
</span><span style="color: #008080;">70</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 Pilots</span><span style="color: #008000;">
</span><span style="color: #008080;">71</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;">72</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;">73</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockEnd.gif" align="top"/>}</span></span></div></pre></div></div><br><br><div class="FormattedSourceCode"><div class="fscHeader"><span class="fscFileName">Pilot.cs</span></div><div class="fscCode"><pre ID="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsPilot.Cs_Pilot.Cs_969_32"><div><!--

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

--><span style="color: #008080;">01</span><img id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsPilot.Cs_Pilot.Cs_969_32_0_67_Open_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsPilot.Cs_Pilot.Cs_969_32_0_67_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsPilot.Cs_Pilot.Cs_969_32_0_67_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsPilot.Cs_Pilot.Cs_969_32_0_67_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsPilot.Cs_Pilot.Cs_969_32_0_67_Closed_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsPilot.Cs_Pilot.Cs_969_32_0_67_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsPilot.Cs_Pilot.Cs_969_32_0_67_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsPilot.Cs_Pilot.Cs_969_32_0_67_Open_Text').style.display='inline';"/><span id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsPilot.Cs_Pilot.Cs_969_32_0_67_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">/**/</span><span id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsPilot.Cs_Pilot.Cs_969_32_0_67_Open_Text"><span style="color: #008000;">/*</span><span style="color: #008000;"> Copyright (C) 2004 - 2007 db4objects Inc. </span><span style="color: #008000; text-decoration: underline;">http://www.db4o.com</span><span style="color: #008000;"> </span><span style="color: #008000;">*/</span></span><span style="color: #000000;">
</span><span style="color: #008080;">02</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/></span><span style="color: #0000FF;">using</span><span style="color: #000000;"> Db4objects.Db4o;
</span><span style="color: #008080;">03</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/></span><span style="color: #0000FF;">using</span><span style="color: #000000;"> Db4objects.Db4o.Activation;
</span><span style="color: #008080;">04</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/></span><span style="color: #0000FF;">using</span><span style="color: #000000;"> Db4objects.Db4o.TA;
</span><span style="color: #008080;">05</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/>
</span><span style="color: #008080;">06</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/></span><span style="color: #0000FF;">namespace</span><span style="color: #000000;"> Db4ojects.Db4odoc.TAExamples
</span><span style="color: #008080;">07</span><span style="color: #000000;"><img id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsPilot.Cs_Pilot.Cs_969_32_191_1422_Open_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsPilot.Cs_Pilot.Cs_969_32_191_1422_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsPilot.Cs_Pilot.Cs_969_32_191_1422_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsPilot.Cs_Pilot.Cs_969_32_191_1422_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsPilot.Cs_Pilot.Cs_969_32_191_1422_Closed_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsPilot.Cs_Pilot.Cs_969_32_191_1422_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsPilot.Cs_Pilot.Cs_969_32_191_1422_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsPilot.Cs_Pilot.Cs_969_32_191_1422_Open_Text').style.display='inline';"/></span><span id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsPilot.Cs_Pilot.Cs_969_32_191_1422_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsPilot.Cs_Pilot.Cs_969_32_191_1422_Open_Text"><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;">public</span><span style="color: #000000;"> </span><span style="color: #0000FF;">class</span><span style="color: #000000;"> Pilot : IActivatable
</span><span style="color: #008080;">09</span><span style="color: #000000;"><img id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsPilot.Cs_Pilot.Cs_969_32_235_1419_Open_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsPilot.Cs_Pilot.Cs_969_32_235_1419_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsPilot.Cs_Pilot.Cs_969_32_235_1419_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsPilot.Cs_Pilot.Cs_969_32_235_1419_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsPilot.Cs_Pilot.Cs_969_32_235_1419_Closed_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsPilot.Cs_Pilot.Cs_969_32_235_1419_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsPilot.Cs_Pilot.Cs_969_32_235_1419_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsPilot.Cs_Pilot.Cs_969_32_235_1419_Open_Text').style.display='inline';"/>    </span><span id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsPilot.Cs_Pilot.Cs_969_32_235_1419_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsPilot.Cs_Pilot.Cs_969_32_235_1419_Open_Text"><span style="color: #000000;">{
</span><span style="color: #008080;">10</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>        </span><span style="color: #0000FF;">private</span><span style="color: #000000;"> </span><span style="color: #0000FF;">string</span><span style="color: #000000;"> _name;
</span><span style="color: #008080;">11</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>
</span><span style="color: #008080;">12</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>        [System.NonSerialized]
</span><span style="color: #008080;">13</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>        IActivator _activator;
</span><span style="color: #008080;">14</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>
</span><span style="color: #008080;">15</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>        </span><span style="color: #0000FF;">public</span><span style="color: #000000;"> Pilot(</span><span style="color: #0000FF;">string</span><span style="color: #000000;"> name)
</span><span style="color: #008080;">16</span><span style="color: #000000;"><img id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsPilot.Cs_Pilot.Cs_969_32_373_410_Open_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsPilot.Cs_Pilot.Cs_969_32_373_410_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsPilot.Cs_Pilot.Cs_969_32_373_410_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsPilot.Cs_Pilot.Cs_969_32_373_410_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsPilot.Cs_Pilot.Cs_969_32_373_410_Closed_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsPilot.Cs_Pilot.Cs_969_32_373_410_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsPilot.Cs_Pilot.Cs_969_32_373_410_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsPilot.Cs_Pilot.Cs_969_32_373_410_Open_Text').style.display='inline';"/>        </span><span id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsPilot.Cs_Pilot.Cs_969_32_373_410_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsPilot.Cs_Pilot.Cs_969_32_373_410_Open_Text"><span style="color: #000000;">{
</span><span style="color: #008080;">17</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            _name </span><span style="color: #000000;">=</span><span style="color: #000000;"> name;
</span><span style="color: #008080;">18</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;">19</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>
</span><span style="color: #008080;">20</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>        </span><span style="color: #008000;">//</span><span style="color: #008000;"> Bind the class to an object container</span><span style="color: #008000;">
</span><span style="color: #008080;">21</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;">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;">22</span><span style="color: #000000;"><img id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsPilot.Cs_Pilot.Cs_969_32_516_803_Open_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsPilot.Cs_Pilot.Cs_969_32_516_803_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsPilot.Cs_Pilot.Cs_969_32_516_803_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsPilot.Cs_Pilot.Cs_969_32_516_803_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsPilot.Cs_Pilot.Cs_969_32_516_803_Closed_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsPilot.Cs_Pilot.Cs_969_32_516_803_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsPilot.Cs_Pilot.Cs_969_32_516_803_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsPilot.Cs_Pilot.Cs_969_32_516_803_Open_Text').style.display='inline';"/>        </span><span id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsPilot.Cs_Pilot.Cs_969_32_516_803_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsPilot.Cs_Pilot.Cs_969_32_516_803_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"/>            </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;">24</span><span style="color: #000000;"><img id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsPilot.Cs_Pilot.Cs_969_32_571_610_Open_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsPilot.Cs_Pilot.Cs_969_32_571_610_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsPilot.Cs_Pilot.Cs_969_32_571_610_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsPilot.Cs_Pilot.Cs_969_32_571_610_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsPilot.Cs_Pilot.Cs_969_32_571_610_Closed_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsPilot.Cs_Pilot.Cs_969_32_571_610_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsPilot.Cs_Pilot.Cs_969_32_571_610_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsPilot.Cs_Pilot.Cs_969_32_571_610_Open_Text').style.display='inline';"/>            </span><span id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsPilot.Cs_Pilot.Cs_969_32_571_610_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsPilot.Cs_Pilot.Cs_969_32_571_610_Open_Text"><span style="color: #000000;">{
</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;">return</span><span style="color: #000000;">;
</span><span style="color: #008080;">26</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"/>            }</span></span><span style="color: #000000;">
</span><span style="color: #008080;">27</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            </span><span style="color: #0000FF;">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;">28</span><span style="color: #000000;"><img id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsPilot.Cs_Pilot.Cs_969_32_680_757_Open_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsPilot.Cs_Pilot.Cs_969_32_680_757_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsPilot.Cs_Pilot.Cs_969_32_680_757_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsPilot.Cs_Pilot.Cs_969_32_680_757_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsPilot.Cs_Pilot.Cs_969_32_680_757_Closed_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsPilot.Cs_Pilot.Cs_969_32_680_757_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsPilot.Cs_Pilot.Cs_969_32_680_757_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsPilot.Cs_Pilot.Cs_969_32_680_757_Open_Text').style.display='inline';"/>            </span><span id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsPilot.Cs_Pilot.Cs_969_32_680_757_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsPilot.Cs_Pilot.Cs_969_32_680_757_Open_Text"><span style="color: #000000;">{
</span><span style="color: #008080;">29</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                </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;">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/InBlock.gif" align="top"/>            _activator </span><span style="color: #000000;">=</span><span style="color: #000000;"> activator;
</span><span style="color: #008080;">32</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"/>        }</span></span><span style="color: #000000;">
</span><span style="color: #008080;">33</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>
</span><span style="color: #008080;">34</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>        </span><span style="color: #008000;">//</span><span style="color: #008000;"> activate the object fields</span><span style="color: #008000;">
</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: #000000;">        </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;">36</span><span style="color: #000000;"><img id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsPilot.Cs_Pilot.Cs_969_32_907_1020_Open_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsPilot.Cs_Pilot.Cs_969_32_907_1020_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsPilot.Cs_Pilot.Cs_969_32_907_1020_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsPilot.Cs_Pilot.Cs_969_32_907_1020_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsPilot.Cs_Pilot.Cs_969_32_907_1020_Closed_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsPilot.Cs_Pilot.Cs_969_32_907_1020_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsPilot.Cs_Pilot.Cs_969_32_907_1020_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsPilot.Cs_Pilot.Cs_969_32_907_1020_Open_Text').style.display='inline';"/>        </span><span id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsPilot.Cs_Pilot.Cs_969_32_907_1020_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsPilot.Cs_Pilot.Cs_969_32_907_1020_Open_Text"><span style="color: #000000;">{
</span><span style="color: #008080;">37</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            </span><span style="color: #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;">38</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                </span><span style="color: #0000FF;">return</span><span style="color: #000000;">;
</span><span style="color: #008080;">39</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            _activator.Activate(purpose);
</span><span style="color: #008080;">40</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"/>        }</span></span><span style="color: #000000;">
</span><span style="color: #008080;">41</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>
</span><span style="color: #008080;">42</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>        </span><span style="color: #0000FF;">public</span><span style="color: #000000;"> </span><span style="color: #0000FF;">string</span><span style="color: #000000;"> Name
</span><span style="color: #008080;">43</span><span style="color: #000000;"><img id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsPilot.Cs_Pilot.Cs_969_32_1057_1252_Open_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsPilot.Cs_Pilot.Cs_969_32_1057_1252_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsPilot.Cs_Pilot.Cs_969_32_1057_1252_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsPilot.Cs_Pilot.Cs_969_32_1057_1252_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsPilot.Cs_Pilot.Cs_969_32_1057_1252_Closed_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsPilot.Cs_Pilot.Cs_969_32_1057_1252_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsPilot.Cs_Pilot.Cs_969_32_1057_1252_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsPilot.Cs_Pilot.Cs_969_32_1057_1252_Open_Text').style.display='inline';"/>        </span><span id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsPilot.Cs_Pilot.Cs_969_32_1057_1252_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsPilot.Cs_Pilot.Cs_969_32_1057_1252_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;">get</span><span style="color: #000000;">
</span><span style="color: #008080;">45</span><span style="color: #000000;"><img id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsPilot.Cs_Pilot.Cs_969_32_1087_1242_Open_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsPilot.Cs_Pilot.Cs_969_32_1087_1242_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsPilot.Cs_Pilot.Cs_969_32_1087_1242_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsPilot.Cs_Pilot.Cs_969_32_1087_1242_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsPilot.Cs_Pilot.Cs_969_32_1087_1242_Closed_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsPilot.Cs_Pilot.Cs_969_32_1087_1242_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsPilot.Cs_Pilot.Cs_969_32_1087_1242_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsPilot.Cs_Pilot.Cs_969_32_1087_1242_Open_Text').style.display='inline';"/>            </span><span id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsPilot.Cs_Pilot.Cs_969_32_1087_1242_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsPilot.Cs_Pilot.Cs_969_32_1087_1242_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"/>                </span><span style="color: #008000;">//</span><span style="color: #008000;"> even simple string needs to be activated</span><span style="color: #008000;">
</span><span style="color: #008080;">47</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;">48</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;"> _name;
</span><span style="color: #008080;">49</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;">50</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;">51</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>
</span><span style="color: #008080;">52</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>        </span><span style="color: #0000FF;">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;">53</span><span style="color: #000000;"><img id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsPilot.Cs_Pilot.Cs_969_32_1304_1413_Open_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsPilot.Cs_Pilot.Cs_969_32_1304_1413_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsPilot.Cs_Pilot.Cs_969_32_1304_1413_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsPilot.Cs_Pilot.Cs_969_32_1304_1413_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsPilot.Cs_Pilot.Cs_969_32_1304_1413_Closed_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsPilot.Cs_Pilot.Cs_969_32_1304_1413_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsPilot.Cs_Pilot.Cs_969_32_1304_1413_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsPilot.Cs_Pilot.Cs_969_32_1304_1413_Open_Text').style.display='inline';"/>        </span><span id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsPilot.Cs_Pilot.Cs_969_32_1304_1413_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsPilot.Cs_Pilot.Cs_969_32_1304_1413_Open_Text"><span style="color: #000000;">{
</span><span style="color: #008080;">54</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            </span><span style="color: #008000;">//</span><span style="color: #008000;"> use Name property, which already contains activation call</span><span style="color: #008000;">
</span><span style="color: #008080;">55</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;">return</span><span style="color: #000000;"> Name;
</span><span style="color: #008080;">56</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"/>        }</span></span><span style="color: #000000;">
</span><span style="color: #008080;">57</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"/>    }</span></span><span style="color: #000000;">
</span><span style="color: #008080;">58</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>
</span><span style="color: #008080;">59</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockEnd.gif" align="top"/>}</span></span></div></pre></div></div><br><br></span> <br><br><span name="cs_wiki_filter" csw_filters="vb"> <br><br><div class="FormattedSourceCode"><div class="fscHeader"><span class="fscFileName">Team.vb</span></div><div class="fscCode"><pre ID="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsTeam.Vb_Team.Vb_1079_31"><div><!--

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

--><span style="color: #008080;">01</span><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/><span style="color: #008000;">'</span><span style="color: #008000;"> Copyright (C) 2004 - 2007 db4objects Inc. http://www.db4o.com</span><span style="color: #008000;">
</span><span style="color: #008080;">02</span><span style="color: #008000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/></span><span style="color: #0000FF;">Imports</span><span style="color: #000000;"> System.Collections
</span><span style="color: #008080;">03</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/></span><span style="color: #0000FF;">Imports</span><span style="color: #000000;"> Db4objects.Db4o
</span><span style="color: #008080;">04</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/></span><span style="color: #0000FF;">Imports</span><span style="color: #000000;"> Db4objects.Db4o.Activation
</span><span style="color: #008080;">05</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/></span><span style="color: #0000FF;">Imports</span><span style="color: #000000;"> Db4objects.Db4o.TA
</span><span style="color: #008080;">06</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/></span><span style="color: #0000FF;">Imports</span><span style="color: #000000;"> Db4objects.Db4o.Collections
</span><span style="color: #008080;">07</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/>
</span><span style="color: #008080;">08</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/>
</span><span style="color: #008080;">09</span><span style="color: #000000;"><img id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsTeam.Vb_Team.Vb_1079_31_215_1812_Open_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsTeam.Vb_Team.Vb_1079_31_215_1812_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsTeam.Vb_Team.Vb_1079_31_215_1812_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsTeam.Vb_Team.Vb_1079_31_215_1812_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsTeam.Vb_Team.Vb_1079_31_215_1812_Closed_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsTeam.Vb_Team.Vb_1079_31_215_1812_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsTeam.Vb_Team.Vb_1079_31_215_1812_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsTeam.Vb_Team.Vb_1079_31_215_1812_Open_Text').style.display='inline';"/></span><span id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsTeam.Vb_Team.Vb_1079_31_215_1812_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">Namespace Db4ojects</span><span id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsTeam.Vb_Team.Vb_1079_31_215_1812_Open_Text"><span style="color: #0000FF;">Namespace</span><span style="color: #000000;"> Db4ojects.Db4odoc.TAExamples
</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: #008080;">11</span><span style="color: #000000;"><img id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsTeam.Vb_Team.Vb_1079_31_266_1798_Open_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsTeam.Vb_Team.Vb_1079_31_266_1798_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsTeam.Vb_Team.Vb_1079_31_266_1798_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsTeam.Vb_Team.Vb_1079_31_266_1798_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsTeam.Vb_Team.Vb_1079_31_266_1798_Closed_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsTeam.Vb_Team.Vb_1079_31_266_1798_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsTeam.Vb_Team.Vb_1079_31_266_1798_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsTeam.Vb_Team.Vb_1079_31_266_1798_Open_Text').style.display='inline';"/>    </span><span style="color: #0000FF;">Public</span><span style="color: #000000;"> </span><span id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsTeam.Vb_Team.Vb_1079_31_266_1798_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">Class Team</span><span id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsTeam.Vb_Team.Vb_1079_31_266_1798_Open_Text"><span style="color: #0000FF;">Class</span><span style="color: #000000;"> Team
</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;">Implements</span><span style="color: #000000;"> IActivatable
</span><span style="color: #008080;">13</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>
</span><span style="color: #008080;">14</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>        </span><span style="color: #0000FF;">Private</span><span style="color: #000000;"> _pilots </span><span style="color: #0000FF;">As</span><span style="color: #000000;"> IList(</span><span style="color: #0000FF;">Of</span><span style="color: #000000;"> Pilot) </span><span style="color: #000000;">=</span><span style="color: #000000;"> </span><span style="color: #0000FF;">New</span><span style="color: #000000;"> ArrayList4(</span><span style="color: #0000FF;">Of</span><span style="color: #000000;"> Pilot)
</span><span style="color: #008080;">15</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>        </span><span style="color: #0000FF;">Private</span><span style="color: #000000;"> _name </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;">16</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>
</span><span style="color: #008080;">17</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>        </span><span style="color: #008000;">'</span><span style="color: #008000;"> TA Activator</span><span style="color: #008000;">
</span><span style="color: #008080;">18</span><span style="color: #008000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/></span><span style="color: #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;">19</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;">20</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>
</span><span style="color: #008080;">21</span><span style="color: #000000;"><img id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsTeam.Vb_Team.Vb_1079_31_526_699_Open_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsTeam.Vb_Team.Vb_1079_31_526_699_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsTeam.Vb_Team.Vb_1079_31_526_699_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsTeam.Vb_Team.Vb_1079_31_526_699_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsTeam.Vb_Team.Vb_1079_31_526_699_Closed_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsTeam.Vb_Team.Vb_1079_31_526_699_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsTeam.Vb_Team.Vb_1079_31_526_699_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsTeam.Vb_Team.Vb_1079_31_526_699_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_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsTeam.Vb_Team.Vb_1079_31_526_699_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">Property Pilots()</span><span id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsTeam.Vb_Team.Vb_1079_31_526_699_Open_Text"><span style="color: #0000FF;">Property</span><span style="color: #000000;"> Pilots() </span><span style="color: #0000FF;">As</span><span style="color: #000000;"> IList(</span><span style="color: #0000FF;">Of</span><span style="color: #000000;"> Pilot)
</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;">Get</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"/>                Activate(ActivationPurpose.Read)
</span><span style="color: #008080;">24</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                </span><span style="color: #0000FF;">Return</span><span style="color: #000000;"> _pilots
</span><span style="color: #008080;">25</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            </span><span style="color: #0000FF;">End</span><span style="color: #000000;"> </span><span style="color: #0000FF;">Get</span><span style="color: #000000;">
</span><span style="color: #008080;">26</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"/>        </span><span style="color: #0000FF;">End Property</span></span><span style="color: #000000;">
</span><span style="color: #008080;">27</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>
</span><span style="color: #008080;">28</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>
</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: #008000;">'</span><span style="color: #008000;"> Bind the class to an object container</span><span style="color: #008000;">
</span><span style="color: #008080;">30</span><span style="color: #008000;"><img id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsTeam.Vb_Team.Vb_1079_31_765_1122_Open_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsTeam.Vb_Team.Vb_1079_31_765_1122_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsTeam.Vb_Team.Vb_1079_31_765_1122_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsTeam.Vb_Team.Vb_1079_31_765_1122_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsTeam.Vb_Team.Vb_1079_31_765_1122_Closed_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsTeam.Vb_Team.Vb_1079_31_765_1122_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsTeam.Vb_Team.Vb_1079_31_765_1122_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsTeam.Vb_Team.Vb_1079_31_765_1122_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_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsTeam.Vb_Team.Vb_1079_31_765_1122_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">Sub Bind()</span><span id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsTeam.Vb_Team.Vb_1079_31_765_1122_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;">31</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;">32</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;">33</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;">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;"> </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;">35</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;">36</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;">37</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;">38</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;">39</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>
</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;"> activate object fields </span><span style="color: #008000;">
</span><span style="color: #008080;">41</span><span style="color: #008000;"><img id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsTeam.Vb_Team.Vb_1079_31_1173_1410_Open_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsTeam.Vb_Team.Vb_1079_31_1173_1410_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsTeam.Vb_Team.Vb_1079_31_1173_1410_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsTeam.Vb_Team.Vb_1079_31_1173_1410_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsTeam.Vb_Team.Vb_1079_31_1173_1410_Closed_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsTeam.Vb_Team.Vb_1079_31_1173_1410_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsTeam.Vb_Team.Vb_1079_31_1173_1410_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsTeam.Vb_Team.Vb_1079_31_1173_1410_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_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsTeam.Vb_Team.Vb_1079_31_1173_1410_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">Sub Activate()</span><span id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsTeam.Vb_Team.Vb_1079_31_1173_1410_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;">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;"> _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;">43</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;">44</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;">45</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            _activator.Activate(ActivationPurpose.Read)
</span><span style="color: #008080;">46</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;">47</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>
</span><span style="color: #008080;">48</span><span style="color: #000000;"><img id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsTeam.Vb_Team.Vb_1079_31_1427_1601_Open_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsTeam.Vb_Team.Vb_1079_31_1427_1601_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsTeam.Vb_Team.Vb_1079_31_1427_1601_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsTeam.Vb_Team.Vb_1079_31_1427_1601_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsTeam.Vb_Team.Vb_1079_31_1427_1601_Closed_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsTeam.Vb_Team.Vb_1079_31_1427_1601_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsTeam.Vb_Team.Vb_1079_31_1427_1601_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsTeam.Vb_Team.Vb_1079_31_1427_1601_Open_Text').style.display='inline';"/>        </span><span style="color: #0000FF;">Public</span><span style="color: #000000;"> </span><span id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsTeam.Vb_Team.Vb_1079_31_1427_1601_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">Sub AddPilot()</span><span id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsTeam.Vb_Team.Vb_1079_31_1427_1601_Open_Text"><span style="color: #0000FF;">Sub</span><span style="color: #000000;"> AddPilot(</span><span style="color: #0000FF;">ByVal</span><span style="color: #000000;"> pilot </span><span style="color: #0000FF;">As</span><span style="color: #000000;"> Pilot)
</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: #008000;">'</span><span style="color: #008000;"> activate before adding new pilots</span><span style="color: #008000;">
</span><span style="color: #008080;">50</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;">51</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            _pilots.Add(pilot)
</span><span style="color: #008080;">52</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;">53</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>
</span><span style="color: #008080;">54</span><span style="color: #000000;"><img id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsTeam.Vb_Team.Vb_1079_31_1618_1783_Open_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsTeam.Vb_Team.Vb_1079_31_1618_1783_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsTeam.Vb_Team.Vb_1079_31_1618_1783_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsTeam.Vb_Team.Vb_1079_31_1618_1783_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsTeam.Vb_Team.Vb_1079_31_1618_1783_Closed_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsTeam.Vb_Team.Vb_1079_31_1618_1783_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsTeam.Vb_Team.Vb_1079_31_1618_1783_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsTeam.Vb_Team.Vb_1079_31_1618_1783_Open_Text').style.display='inline';"/>        </span><span style="color: #0000FF;">Public</span><span style="color: #000000;"> </span><span id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsTeam.Vb_Team.Vb_1079_31_1618_1783_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">Function Size()</span><span id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsTeam.Vb_Team.Vb_1079_31_1618_1783_Open_Text"><span style="color: #0000FF;">Function</span><span style="color: #000000;"> Size() </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;">55</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 before returning</span><span style="color: #008000;">
</span><span style="color: #008080;">56</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;">57</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            </span><span style="color: #0000FF;">Return</span><span style="color: #000000;"> _pilots.Count
</span><span style="color: #008080;">58</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;">59</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>
</span><span style="color: #008080;">60</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"/>    </span><span style="color: #0000FF;">End Class</span></span><span style="color: #000000;">
</span><span style="color: #008080;">61</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockEnd.gif" align="top"/></span><span style="color: #0000FF;">End Namespace</span></span></div></pre></div></div><br><br><div class="FormattedSourceCode"><div class="fscHeader"><span class="fscFileName">Pilot.vb</span></div><div class="fscCode"><pre ID="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsPilot.Vb_Pilot.Vb_1118_32"><div><!--

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

--><span style="color: #008080;">01</span><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/><span style="color: #008000;">'</span><span style="color: #008000;"> Copyright (C) 2004 - 2007 db4objects Inc. http://www.db4o.com</span><span style="color: #008000;">
</span><span style="color: #008080;">02</span><span style="color: #008000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/></span><span style="color: #0000FF;">Imports</span><span style="color: #000000;"> Db4objects.Db4o
</span><span style="color: #008080;">03</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/></span><span style="color: #0000FF;">Imports</span><span style="color: #000000;"> Db4objects.Db4o.Activation
</span><span style="color: #008080;">04</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/></span><span style="color: #0000FF;">Imports</span><span style="color: #000000;"> Db4objects.Db4o.TA
</span><span style="color: #008080;">05</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/>
</span><span style="color: #008080;">06</span><span style="color: #000000;"><img id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsPilot.Vb_Pilot.Vb_1118_32_151_1627_Open_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsPilot.Vb_Pilot.Vb_1118_32_151_1627_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsPilot.Vb_Pilot.Vb_1118_32_151_1627_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsPilot.Vb_Pilot.Vb_1118_32_151_1627_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsPilot.Vb_Pilot.Vb_1118_32_151_1627_Closed_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsPilot.Vb_Pilot.Vb_1118_32_151_1627_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsPilot.Vb_Pilot.Vb_1118_32_151_1627_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsPilot.Vb_Pilot.Vb_1118_32_151_1627_Open_Text').style.display='inline';"/></span><span id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsPilot.Vb_Pilot.Vb_1118_32_151_1627_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">Namespace Db4ojects</span><span id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsPilot.Vb_Pilot.Vb_1118_32_151_1627_Open_Text"><span style="color: #0000FF;">Namespace</span><span style="color: #000000;"> Db4ojects.Db4odoc.TAExamples
</span><span style="color: #008080;">07</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>
</span><span style="color: #008080;">08</span><span style="color: #000000;"><img id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsPilot.Vb_Pilot.Vb_1118_32_202_1613_Open_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsPilot.Vb_Pilot.Vb_1118_32_202_1613_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsPilot.Vb_Pilot.Vb_1118_32_202_1613_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsPilot.Vb_Pilot.Vb_1118_32_202_1613_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsPilot.Vb_Pilot.Vb_1118_32_202_1613_Closed_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsPilot.Vb_Pilot.Vb_1118_32_202_1613_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsPilot.Vb_Pilot.Vb_1118_32_202_1613_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsPilot.Vb_Pilot.Vb_1118_32_202_1613_Open_Text').style.display='inline';"/>    </span><span style="color: #0000FF;">Public</span><span style="color: #000000;"> </span><span id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsPilot.Vb_Pilot.Vb_1118_32_202_1613_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">Class Pilot</span><span id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsPilot.Vb_Pilot.Vb_1118_32_202_1613_Open_Text"><span style="color: #0000FF;">Class</span><span style="color: #000000;"> Pilot
</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;">Implements</span><span style="color: #000000;"> IActivatable
</span><span style="color: #008080;">10</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>        </span><span style="color: #0000FF;">Private</span><span style="color: #000000;"> _name </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;">11</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>        </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: #0000FF;">Private</span><span style="color: #000000;"> _activator </span><span style="color: #0000FF;">As</span><span style="color: #000000;"> Db4objects.Db4o.Activation.IActivator
</span><span style="color: #008080;">12</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>
</span><span style="color: #008080;">13</span><span style="color: #000000;"><img id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsPilot.Vb_Pilot.Vb_1118_32_376_446_Open_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsPilot.Vb_Pilot.Vb_1118_32_376_446_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsPilot.Vb_Pilot.Vb_1118_32_376_446_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsPilot.Vb_Pilot.Vb_1118_32_376_446_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsPilot.Vb_Pilot.Vb_1118_32_376_446_Closed_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsPilot.Vb_Pilot.Vb_1118_32_376_446_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsPilot.Vb_Pilot.Vb_1118_32_376_446_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsPilot.Vb_Pilot.Vb_1118_32_376_446_Open_Text').style.display='inline';"/>        </span><span style="color: #0000FF;">Public</span><span style="color: #000000;"> </span><span id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsPilot.Vb_Pilot.Vb_1118_32_376_446_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">Sub New()</span><span id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsPilot.Vb_Pilot.Vb_1118_32_376_446_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;"> name </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;">14</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            _name </span><span style="color: #000000;">=</span><span style="color: #000000;"> name
</span><span style="color: #008080;">15</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"/>        </span><span style="color: #0000FF;">End Sub</span></span><span style="color: #000000;">
</span><span style="color: #008080;">16</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>
</span><span style="color: #008080;">17</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>        </span><span style="color: #008000;">'</span><span style="color: #008000;"> Bind the class to an object container</span><span style="color: #008000;">
</span><span style="color: #008080;">18</span><span style="color: #008000;"><img id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsPilot.Vb_Pilot.Vb_1118_32_511_879_Open_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsPilot.Vb_Pilot.Vb_1118_32_511_879_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsPilot.Vb_Pilot.Vb_1118_32_511_879_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsPilot.Vb_Pilot.Vb_1118_32_511_879_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsPilot.Vb_Pilot.Vb_1118_32_511_879_Closed_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsPilot.Vb_Pilot.Vb_1118_32_511_879_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsPilot.Vb_Pilot.Vb_1118_32_511_879_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsPilot.Vb_Pilot.Vb_1118_32_511_879_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_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsPilot.Vb_Pilot.Vb_1118_32_511_879_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">Sub Bind()</span><span id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsPilot.Vb_Pilot.Vb_1118_32_511_879_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;"> Activation.IActivator) </span><span style="color: #0000FF;">Implements</span><span style="color: #000000;"> IActivatable.Bind
</span><span style="color: #008080;">19</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            </span><span style="color: #0000FF;">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;">20</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;">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;">If</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;">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;">23</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;">24</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;">25</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;">26</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;">27</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>
</span><span style="color: #008080;">28</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>        </span><span style="color: #008000;">'</span><span style="color: #008000;"> activate the object fields</span><span style="color: #008000;">
</span><span style="color: #008080;">29</span><span style="color: #008000;"><img id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsPilot.Vb_Pilot.Vb_1118_32_933_1170_Open_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsPilot.Vb_Pilot.Vb_1118_32_933_1170_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsPilot.Vb_Pilot.Vb_1118_32_933_1170_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsPilot.Vb_Pilot.Vb_1118_32_933_1170_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsPilot.Vb_Pilot.Vb_1118_32_933_1170_Closed_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsPilot.Vb_Pilot.Vb_1118_32_933_1170_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsPilot.Vb_Pilot.Vb_1118_32_933_1170_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsPilot.Vb_Pilot.Vb_1118_32_933_1170_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_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsPilot.Vb_Pilot.Vb_1118_32_933_1170_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">Sub Activate()</span><span id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsPilot.Vb_Pilot.Vb_1118_32_933_1170_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;">30</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;">31</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;">32</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;">33</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            _activator.Activate(ActivationPurpose.Read)
</span><span style="color: #008080;">34</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;">35</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>
</span><span style="color: #008080;">36</span><span style="color: #000000;"><img id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsPilot.Vb_Pilot.Vb_1118_32_1196_1415_Open_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsPilot.Vb_Pilot.Vb_1118_32_1196_1415_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsPilot.Vb_Pilot.Vb_1118_32_1196_1415_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsPilot.Vb_Pilot.Vb_1118_32_1196_1415_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsPilot.Vb_Pilot.Vb_1118_32_1196_1415_Closed_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsPilot.Vb_Pilot.Vb_1118_32_1196_1415_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsPilot.Vb_Pilot.Vb_1118_32_1196_1415_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsPilot.Vb_Pilot.Vb_1118_32_1196_1415_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_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsPilot.Vb_Pilot.Vb_1118_32_1196_1415_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">Property Name()</span><span id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsPilot.Vb_Pilot.Vb_1118_32_1196_1415_Open_Text"><span style="color: #0000FF;">Property</span><span style="color: #000000;"> Name() </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;">37</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;">38</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;"> even simple string needs to be activated</span><span style="color: #008000;">
</span><span style="color: #008080;">39</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;">40</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;"> _name
</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;">Get</span><span style="color: #000000;">
</span><span style="color: #008080;">42</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;">43</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>
</span><span style="color: #008080;">44</span><span style="color: #000000;"><img id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsPilot.Vb_Pilot.Vb_1118_32_1452_1598_Open_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsPilot.Vb_Pilot.Vb_1118_32_1452_1598_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsPilot.Vb_Pilot.Vb_1118_32_1452_1598_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsPilot.Vb_Pilot.Vb_1118_32_1452_1598_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsPilot.Vb_Pilot.Vb_1118_32_1452_1598_Closed_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsPilot.Vb_Pilot.Vb_1118_32_1452_1598_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsPilot.Vb_Pilot.Vb_1118_32_1452_1598_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsPilot.Vb_Pilot.Vb_1118_32_1452_1598_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_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsPilot.Vb_Pilot.Vb_1118_32_1452_1598_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">Function ToString()</span><span id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsPilot.Vb_Pilot.Vb_1118_32_1452_1598_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;">45</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;"> use Name property, which already contains activation call</span><span style="color: #008000;">
</span><span style="color: #008080;">46</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;">Return</span><span style="color: #000000;"> Name
</span><span style="color: #008080;">47</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"/>        </span><span style="color: #0000FF;">End Function</span></span><span style="color: #000000;">
</span><span style="color: #008080;">48</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>
</span><span style="color: #008080;">49</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"/>    </span><span style="color: #0000FF;">End Class</span></span><span style="color: #000000;">
</span><span style="color: #008080;">50</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><br><br></span> <br><br>Store and retrieve.<br><br> <br><br><span name="cs_wiki_filter" csw_filters="cs"> <br><br><div class="FormattedSourceCode"><div class="fscHeader"><span class="fscFileName">TAExample.cs: <span class="fscMemberName">StoreCollection</span></span></div><div class="fscCode"><pre ID="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_StoreCollection_1264_52"><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;"> StoreCollection()
</span><span style="color: #008080;">02</span><span style="color: #000000;"><img id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_StoreCollection_1264_52_46_795_Open_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_StoreCollection_1264_52_46_795_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_StoreCollection_1264_52_46_795_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_StoreCollection_1264_52_46_795_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_StoreCollection_1264_52_46_795_Closed_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_StoreCollection_1264_52_46_795_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_StoreCollection_1264_52_46_795_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_StoreCollection_1264_52_46_795_Open_Text').style.display='inline';"/>        </span><span id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_StoreCollection_1264_52_46_795_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_StoreCollection_1264_52_46_795_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(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: #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_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_StoreCollection_1264_52_200_785_Open_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_StoreCollection_1264_52_200_785_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_StoreCollection_1264_52_200_785_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_StoreCollection_1264_52_200_785_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_StoreCollection_1264_52_200_785_Closed_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_StoreCollection_1264_52_200_785_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_StoreCollection_1264_52_200_785_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_StoreCollection_1264_52_200_785_Open_Text').style.display='inline';"/>            </span><span id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_StoreCollection_1264_52_200_785_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_StoreCollection_1264_52_200_785_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_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_StoreCollection_1264_52_238_540_Open_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_StoreCollection_1264_52_238_540_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_StoreCollection_1264_52_238_540_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_StoreCollection_1264_52_238_540_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_StoreCollection_1264_52_238_540_Closed_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_StoreCollection_1264_52_238_540_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_StoreCollection_1264_52_238_540_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_StoreCollection_1264_52_238_540_Open_Text').style.display='inline';"/>                </span><span id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_StoreCollection_1264_52_238_540_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_StoreCollection_1264_52_238_540_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"/>                    Team team </span><span style="color: #000000;">=</span><span style="color: #000000;"> </span><span style="color: #0000FF;">new</span><span style="color: #000000;"> Team();
</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;">for</span><span style="color: #000000;"> (</span><span style="color: #0000FF;">int</span><span style="color: #000000;"> i </span><span style="color: #000000;">=</span><span style="color: #000000;"> </span><span style="color: #800080;">0</span><span style="color: #000000;">; i </span><span style="color: #000000;">&lt;</span><span style="color: #000000;"> </span><span style="color: #800080;">10</span><span style="color: #000000;">; i</span><span style="color: #000000;">++</span><span style="color: #000000;">)
</span><span style="color: #008080;">11</span><span style="color: #000000;"><img id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_StoreCollection_1264_52_353_441_Open_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_StoreCollection_1264_52_353_441_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_StoreCollection_1264_52_353_441_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_StoreCollection_1264_52_353_441_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_StoreCollection_1264_52_353_441_Closed_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_StoreCollection_1264_52_353_441_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_StoreCollection_1264_52_353_441_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_StoreCollection_1264_52_353_441_Open_Text').style.display='inline';"/>                    </span><span id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_StoreCollection_1264_52_353_441_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_StoreCollection_1264_52_353_441_Open_Text"><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"/>                        team.AddPilot(</span><span style="color: #0000FF;">new</span><span style="color: #000000;"> Pilot(</span><span style="color: #800000;">&quot;</span><span style="color: #800000;">Pilot #</span><span style="color: #800000;">&quot;</span><span style="color: #000000;"> </span><span style="color: #000000;">+</span><span style="color: #000000;"> i));
</span><span style="color: #008080;">13</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;">14</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                    container.Set(team);
</span><span style="color: #008080;">15</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                    container.Commit();
</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/InBlock.gif" align="top"/>                </span><span style="color: #0000FF;">catch</span><span style="color: #000000;"> (Exception ex)
</span><span style="color: #008080;">18</span><span style="color: #000000;"><img id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_StoreCollection_1264_52_594_674_Open_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_StoreCollection_1264_52_594_674_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_StoreCollection_1264_52_594_674_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_StoreCollection_1264_52_594_674_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_StoreCollection_1264_52_594_674_Closed_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_StoreCollection_1264_52_594_674_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_StoreCollection_1264_52_594_674_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_StoreCollection_1264_52_594_674_Open_Text').style.display='inline';"/>                </span><span id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_StoreCollection_1264_52_594_674_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_StoreCollection_1264_52_594_674_Open_Text"><span style="color: #000000;">{
</span><span style="color: #008080;">19</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                    System.Console.WriteLine(ex.StackTrace);
</span><span style="color: #008080;">20</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;">21</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;">22</span><span style="color: #000000;"><img id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_StoreCollection_1264_52_715_771_Open_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_StoreCollection_1264_52_715_771_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_StoreCollection_1264_52_715_771_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_StoreCollection_1264_52_715_771_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_StoreCollection_1264_52_715_771_Closed_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_StoreCollection_1264_52_715_771_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_StoreCollection_1264_52_715_771_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_StoreCollection_1264_52_715_771_Open_Text').style.display='inline';"/>                </span><span id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_StoreCollection_1264_52_715_771_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_StoreCollection_1264_52_715_771_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"/>                    CloseDatabase();
</span><span style="color: #008080;">24</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"/>                }</span></span><span style="color: #000000;">
</span><span style="color: #008080;">25</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"/>            }</span></span><span style="color: #000000;">
</span><span style="color: #008080;">26</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockEnd.gif" align="top"/>        }</span></span></div></pre></div></div><br><br><div class="FormattedSourceCode"><div class="fscHeader"><span class="fscFileName">TAExample.cs: <span class="fscMemberName">TestCollectionActivation</span></span></div><div class="fscCode"><pre ID="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestCollectionActivation_1324_61"><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;"> TestCollectionActivation()
</span><span style="color: #008080;">02</span><span style="color: #000000;"><img id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestCollectionActivation_1324_61_55_753_Open_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestCollectionActivation_1324_61_55_753_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestCollectionActivation_1324_61_55_753_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestCollectionActivation_1324_61_55_753_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestCollectionActivation_1324_61_55_753_Closed_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestCollectionActivation_1324_61_55_753_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestCollectionActivation_1324_61_55_753_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestCollectionActivation_1324_61_55_753_Open_Text').style.display='inline';"/>        </span><span id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestCollectionActivation_1324_61_55_753_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestCollectionActivation_1324_61_55_753_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"/>            StoreCollection();
</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(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: #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_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestCollectionActivation_1324_61_201_743_Open_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestCollectionActivation_1324_61_201_743_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestCollectionActivation_1324_61_201_743_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestCollectionActivation_1324_61_201_743_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestCollectionActivation_1324_61_201_743_Closed_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestCollectionActivation_1324_61_201_743_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestCollectionActivation_1324_61_201_743_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestCollectionActivation_1324_61_201_743_Open_Text').style.display='inline';"/>            </span><span id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestCollectionActivation_1324_61_201_743_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestCollectionActivation_1324_61_201_743_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_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestCollectionActivation_1324_61_239_498_Open_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestCollectionActivation_1324_61_239_498_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestCollectionActivation_1324_61_239_498_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestCollectionActivation_1324_61_239_498_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestCollectionActivation_1324_61_239_498_Closed_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestCollectionActivation_1324_61_239_498_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestCollectionActivation_1324_61_239_498_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestCollectionActivation_1324_61_239_498_Open_Text').style.display='inline';"/>                </span><span id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestCollectionActivation_1324_61_239_498_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestCollectionActivation_1324_61_239_498_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"/>                    Team team </span><span style="color: #000000;">=</span><span style="color: #000000;"> (Team)container.Get(</span><span style="color: #0000FF;">new</span><span style="color: #000000;"> Team()).Next();
</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;">for</span><span style="color: #000000;"> (</span><span style="color: #0000FF;">int</span><span style="color: #000000;"> j </span><span style="color: #000000;">=</span><span style="color: #000000;"> </span><span style="color: #800080;">0</span><span style="color: #000000;">; j </span><span style="color: #000000;">&lt;</span><span style="color: #000000;"> team.Size(); j</span><span style="color: #000000;">++</span><span style="color: #000000;">)
</span><span style="color: #008080;">11</span><span style="color: #000000;"><img id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestCollectionActivation_1324_61_391_480_Open_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestCollectionActivation_1324_61_391_480_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestCollectionActivation_1324_61_391_480_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestCollectionActivation_1324_61_391_480_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestCollectionActivation_1324_61_391_480_Closed_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestCollectionActivation_1324_61_391_480_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestCollectionActivation_1324_61_391_480_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestCollectionActivation_1324_61_391_480_Open_Text').style.display='inline';"/>                    </span><span id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestCollectionActivation_1324_61_391_480_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestCollectionActivation_1324_61_391_480_Open_Text"><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"/>                        System.Console.WriteLine(team.Pilots[j]);
</span><span style="color: #008080;">13</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;">14</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;">15</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                </span><span style="color: #0000FF;">catch</span><span style="color: #000000;"> (Exception ex)
</span><span style="color: #008080;">16</span><span style="color: #000000;"><img id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestCollectionActivation_1324_61_552_632_Open_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestCollectionActivation_1324_61_552_632_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestCollectionActivation_1324_61_552_632_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestCollectionActivation_1324_61_552_632_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestCollectionActivation_1324_61_552_632_Closed_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestCollectionActivation_1324_61_552_632_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestCollectionActivation_1324_61_552_632_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestCollectionActivation_1324_61_552_632_Open_Text').style.display='inline';"/>                </span><span id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestCollectionActivation_1324_61_552_632_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestCollectionActivation_1324_61_552_632_Open_Text"><span style="color: #000000;">{
</span><span style="color: #008080;">17</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                    System.Console.WriteLine(ex.StackTrace);
</span><span style="color: #008080;">18</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;">19</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;">20</span><span style="color: #000000;"><img id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestCollectionActivation_1324_61_673_729_Open_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestCollectionActivation_1324_61_673_729_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestCollectionActivation_1324_61_673_729_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestCollectionActivation_1324_61_673_729_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestCollectionActivation_1324_61_673_729_Closed_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestCollectionActivation_1324_61_673_729_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestCollectionActivation_1324_61_673_729_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestCollectionActivation_1324_61_673_729_Open_Text').style.display='inline';"/>                </span><span id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestCollectionActivation_1324_61_673_729_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesCS.ZipsTAExample.Cs_TAExample.Cs_TestCollectionActivation_1324_61_673_729_Open_Text"><span style="color: #000000;">{
</span><span style="color: #008080;">21</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                    CloseDatabase();
</span><span style="color: #008080;">22</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"/>                }</span></span><span style="color: #000000;">
</span><span style="color: #008080;">23</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"/>            }</span></span><span style="color: #000000;">
</span><span style="color: #008080;">24</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockEnd.gif" align="top"/>        }</span></span></div></pre></div></div><br><br></span><br><br><span name="cs_wiki_filter" csw_filters="vb"> <br><br><div class="FormattedSourceCode"><div class="fscHeader"><span class="fscFileName">TAExample.vb: <span class="fscMemberName">StoreCollection</span></span></div><div class="fscCode"><pre ID="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsTAExample.Vb_TAExample.Vb_StoreCollection_1462_52"><div><!--

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

--><span style="color: #008080;">01</span><img id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsTAExample.Vb_TAExample.Vb_StoreCollection_1462_52_15_768_Open_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsTAExample.Vb_TAExample.Vb_StoreCollection_1462_52_15_768_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsTAExample.Vb_TAExample.Vb_StoreCollection_1462_52_15_768_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsTAExample.Vb_TAExample.Vb_StoreCollection_1462_52_15_768_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsTAExample.Vb_TAExample.Vb_StoreCollection_1462_52_15_768_Closed_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsTAExample.Vb_TAExample.Vb_StoreCollection_1462_52_15_768_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsTAExample.Vb_TAExample.Vb_StoreCollection_1462_52_15_768_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsTAExample.Vb_TAExample.Vb_StoreCollection_1462_52_15_768_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_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsTAExample.Vb_TAExample.Vb_StoreCollection_1462_52_15_768_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">Sub StoreCollection()</span><span id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsTAExample.Vb_TAExample.Vb_StoreCollection_1462_52_15_768_Open_Text"><span style="color: #0000FF;">Sub</span><span style="color: #000000;"> StoreCollection()
</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(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;">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: #0000FF;">Dim</span><span style="color: #000000;"> team </span><span style="color: #0000FF;">As</span><span style="color: #000000;"> Team </span><span style="color: #000000;">=</span><span style="color: #000000;"> </span><span style="color: #0000FF;">New</span><span style="color: #000000;"> Team
</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;"> i </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;"> </span><span style="color: #800080;">0</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;">While</span><span style="color: #000000;"> i </span><span style="color: #000000;">&lt;</span><span style="color: #000000;"> </span><span style="color: #800080;">10</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"/>                        team.AddPilot(</span><span style="color: #0000FF;">New</span><span style="color: #000000;"> Pilot(</span><span style="color: #800000;">&quot;</span><span style="color: #800000;">Pilot #</span><span style="color: #800000;">&quot;</span><span style="color: #000000;"> </span><span style="color: #000000;">+</span><span style="color: #000000;"> i.ToString()))
</span><span style="color: #008080;">10</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                        i </span><span style="color: #000000;">=</span><span style="color: #000000;"> i </span><span style="color: #000000;">+</span><span style="color: #000000;"> </span><span style="color: #800080;">1</span><span style="color: #000000;">
</span><span style="color: #008080;">11</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                    </span><span style="color: #0000FF;">End</span><span style="color: #000000;"> </span><span style="color: #0000FF;">While</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"/>                    container.Set(team)
</span><span style="color: #008080;">13</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                    container.Commit()
</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;">Catch</span><span style="color: #000000;"> ex </span><span style="color: #0000FF;">As</span><span style="color: #000000;"> Exception
</span><span style="color: #008080;">15</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                    System.Console.WriteLine(ex.StackTrace)
</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;">Finally</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"/>                    CloseDatabase()
</span><span style="color: #008080;">18</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                </span><span style="color: #0000FF;">End</span><span style="color: #000000;"> </span><span style="color: #0000FF;">Try</span><span style="color: #000000;">
</span><span style="color: #008080;">19</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            </span><span style="color: #0000FF;">End</span><span style="color: #000000;"> </span><span style="color: #0000FF;">If</span><span style="color: #000000;">
</span><span style="color: #008080;">20</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockEnd.gif" align="top"/>        </span><span style="color: #0000FF;">End Sub</span></span></div></pre></div></div><br><br><div class="FormattedSourceCode"><div class="fscHeader"><span class="fscFileName">TAExample.vb: <span class="fscMemberName">TestCollectionActivation</span></span></div><div class="fscCode"><pre ID="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsTAExample.Vb_TAExample.Vb_TestCollectionActivation_1522_61"><div><!--

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

--><span style="color: #008080;">01</span><img id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsTAExample.Vb_TAExample.Vb_TestCollectionActivation_1522_61_15_685_Open_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsTAExample.Vb_TAExample.Vb_TestCollectionActivation_1522_61_15_685_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsTAExample.Vb_TAExample.Vb_TestCollectionActivation_1522_61_15_685_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsTAExample.Vb_TAExample.Vb_TestCollectionActivation_1522_61_15_685_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsTAExample.Vb_TAExample.Vb_TestCollectionActivation_1522_61_15_685_Closed_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsTAExample.Vb_TAExample.Vb_TestCollectionActivation_1522_61_15_685_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsTAExample.Vb_TAExample.Vb_TestCollectionActivation_1522_61_15_685_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsTAExample.Vb_TAExample.Vb_TestCollectionActivation_1522_61_15_685_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_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsTAExample.Vb_TAExample.Vb_TestCollectionActivation_1522_61_15_685_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">Sub TestCollectionActivation()</span><span id="ResourcesReferenceObject_LifecycleActivationTransparent_Activation_FrameworkTAExamplesVB.ZipsTAExample.Vb_TAExample.Vb_TestCollectionActivation_1522_61_15_685_Open_Text"><span style="color: #0000FF;">Sub</span><span style="color: #000000;"> TestCollectionActivation()
</span><span style="color: #008080;">02</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            StoreCollection()
</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(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;">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: #0000FF;">Dim</span><span style="color: #000000;"> team </span><span style="color: #0000FF;">As</span><span style="color: #000000;"> Team </span><span style="color: #000000;">=</span><span style="color: #000000;"> </span><span style="color: #0000FF;">CType</span><span style="color: #000000;">(container.Get(</span><span style="color: #0000FF;">New</span><span style="color: #000000;"> Team).Next, Team)
</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;"> j </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;">08</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                    </span><span style="color: #0000FF;">For</span><span style="color: #000000;"> j </span><span style="color: #000000;">=</span><span style="color: #000000;"> </span><span style="color: #800080;">0</span><span style="color: #000000;"> </span><span style="color: #0000FF;">To</span><span style="color: #000000;"> team.Size </span><span style="color: #000000;">-</span><span style="color: #000000;"> </span><span style="color: #800080;">1</span><span style="color: #000000;">
</span><span style="color: #008080;">09</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                        System.Console.WriteLine(team.Pilots(j))
</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;">Next</span><span style="color: #000000;">
</span><span style="color: #008080;">11</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>
</span><span style="color: #008080;">12</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                </span><span style="color: #0000FF;">Catch</span><span style="color: #000000;"> ex </span><span style="color: #0000FF;">As</span><span style="color: #000000;"> Exception
</span><span style="color: #008080;">13</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                    System.Console.WriteLine(ex.StackTrace)
</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;">Finally</span><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/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;">17</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;">18</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><br><br></span><br>&nbsp;</p></div>
    </div>
    <div id="footer">
					This revision (12) was last Modified 2007-10-31T14:03:50 by norberto.goussies.
				</div>
  </body>
</html>