public Election(Faction faction)
        {
            m_Faction    = faction;
            m_Candidates = new CandidateCollection();

            StartTimer();
        }
        public Election(GenericReader reader)
        {
            int version = reader.ReadEncodedInt();

            switch (version)
            {
            case 0:
            {
                m_Faction = Faction.ReadReference(reader);

                m_LastStateTime = reader.ReadDateTime();
                m_State         = (ElectionState)reader.ReadEncodedInt();

                m_Candidates = new CandidateCollection();

                int count = reader.ReadEncodedInt();

                for (int i = 0; i < count; ++i)
                {
                    Candidate cd = new Candidate(reader);

                    if (cd.Mobile != null)
                    {
                        m_Candidates.Add(cd);
                    }
                }

                break;
            }
            }

            StartTimer();
        }
		public Election( Faction faction )
		{
			m_Faction = faction;
			m_Candidates = new CandidateCollection();

			StartTimer();
		}
		public Election( GenericReader reader )
		{
			int version = reader.ReadEncodedInt();

			switch ( version )
			{
				case 0:
				{
					m_Faction = Faction.ReadReference( reader );

					m_LastStateTime = reader.ReadDateTime();
					m_State = (ElectionState)reader.ReadEncodedInt();

					m_Candidates = new CandidateCollection();

					int count = reader.ReadEncodedInt();

					for ( int i = 0; i < count; ++i )
					{
						Candidate cd = new Candidate( reader );

						if ( cd.Mobile != null )
							m_Candidates.Add( cd );
					}

					break;
				}
			}

			StartTimer();
		}
 /// <summary>
 /// Default constructor for enumerator.
 /// </summary>
 /// <param name="collection">Instance of the collection to enumerate.</param>
 internal CandidateCollectionEnumerator(CandidateCollection collection)
 {
     _index      = -1;
     _collection = collection;
 }
 /// <summary>
 /// Default constructor for enumerator.
 /// </summary>
 /// <param name="collection">Instance of the collection to enumerate.</param>
 internal CandidateCollectionEnumerator(CandidateCollection collection)
 {
     _index = -1;
     _collection = collection;
 }