Пример #1
0
        public Boolean IsEqual(Correspondence compareCorrespondence)
        {
            Boolean isEqual = base.IsEqual((CoreConfigurationObject)compareCorrespondence);


            isEqual &= (version == compareCorrespondence.Version);

            isEqual &= (formId == compareCorrespondence.FormId);

            isEqual &= (storeImage == compareCorrespondence.StoreImage);

            isEqual &= (content.Count == compareCorrespondence.Content.Count);

            if (isEqual)
            {
                foreach (Int32 currentSequence in content.Keys)
                {
                    isEqual &= (content[currentSequence].IsEqual(compareCorrespondence.content[currentSequence]));

                    if (!isEqual)
                    {
                        break;
                    }
                }
            }

            return(isEqual);
        }
Пример #2
0
        public Correspondence Copy()
        {
            Server.Application.Correspondence serverCorrespondence = (Server.Application.Correspondence)ToServerObject();

            Correspondence copiedCorrespondence = new Correspondence(application, serverCorrespondence);

            return(copiedCorrespondence);
        }