Esempio n. 1
0
        private ISiteProofingRun CreateNew(string name, short machineID, DateTime startTime, DateTime endTime, BoundingWorldExtent3D extents)
        {
            var existingOne = Locate(name, machineID, startTime, endTime);

            if (existingOne != null)
            {
                return(existingOne);
            }

            ISiteProofingRun proofingRun = new SiteProofingRun(name, machineID, startTime, endTime, extents);

            Add(proofingRun);

            return(proofingRun);
        }
Esempio n. 2
0
        /// <summary>
        /// Deserialises the list of proofing runs using the given reader
        /// </summary>
        /// <param name="reader"></param>

        public void Read(BinaryReader reader)
        {
            VersionSerializationHelper.CheckVersionByte(reader, VERSION_NUMBER);

            int count = reader.ReadInt32();

            Capacity = count;

            for (int i = 0; i < count; i++)
            {
                SiteProofingRun siteProofingRun = new SiteProofingRun();
                siteProofingRun.Read(reader);
                Add(siteProofingRun);
            }
        }