Exemplo n.º 1
0
        public void RemoveItem(int index)
        {
            if (index >= Count || index < 0)
            {
                throw new Exception("button index error");
            }
            Button bt = itemGroup[index];

            itemGroup.Remove(bt);
            root.Remove(bt);
            bt.Dispose();
        }
        /// <summary>
        /// Dispose popup
        /// </summary>
        public void Deactivate()
        {
            Window.Instance.GetDefaultLayer().Remove(guide);
            guide.Dispose();
            guide = null;

            Window.Instance.GetDefaultLayer().Remove(userGuide);
            userGuide.Dispose();
            userGuide = null;

            Window.Instance.GetDefaultLayer().Remove(popupButton);
            popupButton.Dispose();
            popupButton = null;
        }
Exemplo n.º 3
0
 public void RemoveItem(Button bt)
 {
     if (null == bt)
     {
         return;
     }
     if (!itemGroup.Contains(bt))
     {
         return;
     }
     itemGroup.Remove(bt);
     root.Remove(bt);
     bt.Dispose();
 }
        /// <summary>
        /// Dispose toggle.
        /// </summary>
        public void Deactivate()
        {
            Window.Instance.GetDefaultLayer().Remove(guide);
            guide.Dispose();
            guide = null;

            Window.Instance.GetDefaultLayer().Remove(userGuide);
            userGuide.Dispose();
            userGuide = null;

            Window.Instance.GetDefaultLayer().Remove(toggle);
            toggle.Dispose();
            toggle = null;
        }