Esempio n. 1
0
        public void Destroy()
        {
            if (LastContext != null)
            {
                LastContext.Destroy();
            }

            if (ParentContext != null)
            {
                ParentContext.Destroy();
            }
        }
Esempio n. 2
0
 public void Destroy(bool preserveParent)
 {
     if (preserveParent)
     {
         if (LastContext != null)
         {
             LastContext.Destroy();
         }
     }
     else
     {
         Destroy();
     }
 }