private void RetrieveLeaves() { if (Leaves.Count != 0) { Leaves.Clear(); } var leavesData = _leaveService.GetAllLeaves(); foreach (var leave in leavesData) { Leaves.Add(leave); } }
/// <summary>Clears this instance.</summary> protected void Clear() { Height = 0; StartNRetranslocationSupply = 0; StartNReallocationSupply = 0; LiveFWt = 0; DMDemand.Clear(); DMSupply.Clear(); NDemand.Clear(); NSupply.Clear(); Detached.Clear(); Leaves.Clear(); if (Structure != null) { Structure.LeafTipsAppeared = 0; } }
public static void Destroy() { Leaves.ForEach(x => x.Disconnect()); Leaves.Clear(); }