예제 #1
0
        protected override void Dispose(bool disposing)
        {
            if (!disposed)
            {
                if (disposing)
                {
                    if (components != null)
                    {
                        foreach (GUIComponent c in components)
                        {
                            c.Dispose();
                        }
                        components.Clear();
                    }

                    if (batch != null)
                    {
                        batch.Dispose();
                        batch = null;
                    }

                    if (primBatch != null)
                    {
                        primBatch.Dispose();
                        primBatch = null;
                    }
                }
            }
        }
예제 #2
0
 protected override void Dispose(bool disposing)
 {
     base.Dispose(disposing);
     if (!disposed)
     {
         if (disposing)
         {
             if (batch != null)
             {
                 batch.Dispose();
                 batch = null;
             }
             if (primBatch != null)
             {
                 primBatch.Dispose();
                 primBatch = null;
             }
         }
     }
 }
예제 #3
0
 protected override void Dispose(bool disposing)
 {
     base.Dispose(disposing);
     if (!disposed)
     {
         if (disposing)
         {
             if (batch != null)
             {
                 batch.Dispose();
                 batch = null;
             }
             if (primBatch != null)
             {
                 primBatch.Dispose();
                 primBatch = null;
             }
             if (UpButton != null)
             {
                 UpButton.Dispose();
                 UpButton = null;
             }
             if (DownButton != null)
             {
                 DownButton.Dispose();
                 DownButton = null;
             }
             if (PosBar != null)
             {
                 PosBar.Dispose();
                 PosBar = null;
             }
             components.Clear();
             foreach (GUIComponent c in Items)
             {
                 c.Dispose();
             }
             Items.Clear();
         }
     }
 }