예제 #1
0
 /// <seealso cref="TraversalListener.connectedComponentStarted(ConnectedComponentTraversalEvent)">
 /// </seealso>
 public virtual void  connectedComponentStarted(ConnectedComponentTraversalEvent e)
 {
 }
			/// <seealso cref="TraversalListenerAdapter.connectedComponentStarted(ConnectedComponentTraversalEvent)">
			/// </seealso>
			public override void connectedComponentStarted(ConnectedComponentTraversalEvent e)
			{
                m_currentConnectedSet = new SupportClass.HashSetSupport();
                enclosingInstance.m_connectedSets = m_currentConnectedSet;
			}
예제 #3
0
 /// <seealso cref="TraversalListener.connectedComponentFinished(ConnectedComponentTraversalEvent)">
 /// </seealso>
 public virtual void  connectedComponentFinished(ConnectedComponentTraversalEvent e)
 {
 }
			/// <seealso cref="TraversalListenerAdapter.connectedComponentFinished(ConnectedComponentTraversalEvent)">
			/// </seealso>
			public override void  connectedComponentFinished(ConnectedComponentTraversalEvent e)
			{
				Enclosing_Instance.m_connectedSets.Add(m_currentConnectedSet);
			}
		private void  InitBlock()
		{
			m_ccFinishedEvent = new ConnectedComponentTraversalEvent(this, ConnectedComponentTraversalEvent.CONNECTED_COMPONENT_FINISHED);
			m_ccStartedEvent = new ConnectedComponentTraversalEvent(this, ConnectedComponentTraversalEvent.CONNECTED_COMPONENT_STARTED);
		}
		/// <seealso cref="TraversalListener.connectedComponentStarted(ConnectedComponentTraversalEvent)">
		/// </seealso>
		public virtual void  connectedComponentStarted(ConnectedComponentTraversalEvent e)
		{
		}
		/// <seealso cref="TraversalListener.connectedComponentFinished(ConnectedComponentTraversalEvent)">
		/// </seealso>
		public virtual void  connectedComponentFinished(ConnectedComponentTraversalEvent e)
		{
		}
		/// <summary> Informs all listeners that a traversal of a new connected component has
		/// started.
		/// 
		/// </summary>
		/// <param name="e">the connected component started event.
		/// </param>
		//UPGRADE_NOTE: This method is no longer necessary and it can be commented or removed. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1271'"
		protected internal virtual void  fireConnectedComponentStarted(ConnectedComponentTraversalEvent e)
		{
			int len = m_traversalListeners.Count;
			
			for (int i = 0; i < len; i++)
			{
				TraversalListener l = (TraversalListener) m_traversalListeners[i];
				l.connectedComponentStarted(e);
			}
		}