Beispiel #1
0
        public PopulationActivityEvent Copy()
        {
            Server.Application.PopulationActivityEvent serverEvent = (Server.Application.PopulationActivityEvent)ToServerObject();

            PopulationActivityEvent copiedEvent = new PopulationActivityEvent(application, serverEvent);

            return(copiedEvent);
        }
Beispiel #2
0
        public Boolean IsEqual(PopulationActivityEvent compareEvent)
        {
            Boolean isEqual = true;

            if (this.scheduleType != compareEvent.ScheduleType)
            {
                isEqual = false;
            }

            if (this.scheduleValue != compareEvent.ScheduleValue)
            {
                isEqual = false;
            }

            if (this.scheduleQualifier != compareEvent.ScheduleQualifier)
            {
                isEqual = false;
            }


            isEqual &= (anchorDate == compareEvent.AnchorDate);


            if (this.reoccurring != compareEvent.Reoccurring)
            {
                isEqual = false;
            }

            if (this.performActionDateType != compareEvent.PerformActionDateType)
            {
                isEqual = false;
            }

            if (isEqual)
            {
                isEqual = isEqual && action.IsEqual(compareEvent.action);
            }


            return(isEqual);
        }