Exemple #1
0
        public static AT DuplicateAT(AT
                                     at, int index)
        {
            AT newAt = new AT
                           ();

            newAt.SetName(at.GetName() + "-" + index);
            newAt.SetConstructor(at.GetConstructor());
            newAt.SetCreationDate(new System.DateTime());
            newAt.SetDeleted(false);
            newAt.SetIpAddress(at.GetIpAddress());
            newAt.SetPhysicalAddress(at.GetPhysicalAddress());
            newAt.SetPort(at.GetPort());
            newAt.SetStatus(true);
            newAt.SetType(at.GetType());
            newAt.SetUpdateDate(new System.DateTime());
            newAt.SetUser(at.GetUser());
            return(newAt);
        }
Exemple #2
0
		public static AT DuplicateAT(AT
			 at, int index)
		{
			AT newAt = new AT
				();
			newAt.SetName(at.GetName() + "-" + index);
			newAt.SetConstructor(at.GetConstructor());
			newAt.SetCreationDate(new System.DateTime());
			newAt.SetDeleted(false);
			newAt.SetIpAddress(at.GetIpAddress());
			newAt.SetPhysicalAddress(at.GetPhysicalAddress());
			newAt.SetPort(at.GetPort());
			newAt.SetStatus(true);
			newAt.SetType(at.GetType());
			newAt.SetUpdateDate(new System.DateTime());
			newAt.SetUser(at.GetUser());
			return newAt;
		}