public object Clone()
        {
            var documentStateCounters = new DocumentStateCounters {
                TranslationMatchTypes = new List <StateCountItem>()
            };


            foreach (var item in TranslationMatchTypes)
            {
                documentStateCounters.TranslationMatchTypes.Add((StateCountItem)item.Clone());
            }

            documentStateCounters.ConfirmationStatuses = new List <StateCountItem>();
            foreach (var item in ConfirmationStatuses)
            {
                documentStateCounters.ConfirmationStatuses.Add((StateCountItem)item.Clone());
            }


            return(documentStateCounters);
        }
Ejemplo n.º 2
0
        }                                                                //DocumentStateCounters


        public DocumentActivity()
        {
            Id = -1;
            DocumentActivityType = string.Empty;

            ProjectActivityId = -1;

            TranslatableDocument = new Document();
            DocumentId           = string.Empty;
            ProjectId            = -1;

            Started = null;
            Stopped = null;

            TicksActivity = 0;
            TicksRecords  = 0;

            WordCount = 0;

            Records = new List <Record>();
            DocumentStateCounters = new DocumentStateCounters();
        }