예제 #1
0
        public object Clone()
        {
            var projectFileActivity = new ProjectFileActivity
            {
                ProjectFileId = ProjectFileId,
                Action        = Action,
                WorkFlow      = WorkFlow,
                Status        = Status,
                ActivityId    = ActivityId,
                Name          = Name,
                Date          = new DateTime(Date.Ticks, DateTimeKind.Utc),
                Path          = Path,
                Report        = Report,
                Selected      = Selected
            };

            if (ConfirmationStatistics != null)
            {
                projectFileActivity.ConfirmationStatistics = ConfirmationStatistics.Clone() as ConfirmationStatistics;
            }

            if (TranslationOriginStatistics != null)
            {
                projectFileActivity.TranslationOriginStatistics = TranslationOriginStatistics.Clone() as TranslationOriginStatistics;
            }

            return(projectFileActivity);
        }
예제 #2
0
        public object Clone()
        {
            var stats = new TranslationOriginStatistics
            {
                WordCounts = WordCounts.Clone() as WordCounts
            };

            return(stats);
        }