Exemplo n.º 1
0
 /// <summary>
 /// Erzeugt eine Kopie dieser Planung.
 /// </summary>
 /// <param name="original">Die originalen Planungsdaten.</param>
 /// <param name="schedulePlan">Die zugehörige Gesamtplanung.</param>
 private ResourcePlan(ResourcePlan original, SchedulePlan schedulePlan)
     : this(original.Resource, schedulePlan, original.DecryptionCounters, original.Allocations)
 {
     // Finish clone process
     m_Recordings.AddRange(original.m_Recordings);
     CutRecordings = original.CutRecordings;
     TotalCut      = original.TotalCut;
 }
Exemplo n.º 2
0
        /// <summary>
        /// Erstellt eine exakte unabhängige Kopie die Planung.
        /// </summary>
        /// <param name="original">Die ursprüngliche Planung.</param>
        private SchedulePlan(SchedulePlan original)
            : this(original.ResourceCollection, original.DecryptionCounters, null)
        {
            // Create array
            Resources = new ResourcePlan[original.Resources.Length];

            // Deep clone
            for (int i = Resources.Length; i-- > 0;)
            {
                Resources[i] = original.Resources[i].Clone(this);
            }
        }