Exemplo n.º 1
0
        private void RetrieveLeaves()
        {
            if (Leaves.Count != 0)
            {
                Leaves.Clear();
            }

            var leavesData = _leaveService.GetAllLeaves();

            foreach (var leave in leavesData)
            {
                Leaves.Add(leave);
            }
        }
Exemplo n.º 2
0
 /// <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;
     }
 }
Exemplo n.º 3
0
 public static void Destroy()
 {
     Leaves.ForEach(x => x.Disconnect());
     Leaves.Clear();
 }