예제 #1
0
        private void ClearStyleProperties()
        {
            foreach (var property in StyleProperties)
            {
                ComponentPool.Free(property);
            }

            StyleProperties.Clear();
        }
예제 #2
0
        private void RemoveRulePanel(RulePanel rulePanel)
        {
            if (HoverRulePanel == rulePanel)
            {
                HoverRulePanel = null;
            }

            ComponentPool.Free(rulePanel);
        }
예제 #3
0
        public virtual void DeInit()
        {
            var components = this.components.ToArray();

            foreach (var component in components)
            {
                ComponentPool.Free(component);
            }
        }
        private void RemovePreview()
        {
            if (Preview == null)
            {
                return;
            }

            ContentPanel.opacity = 1f;
            ComponentPool.Free(Preview);
            Preview = null;
        }
        public void RemovePreview()
        {
            if (Preview == null)
            {
                return;
            }

            Editor.AvailableContent = true;
            ComponentPool.Free(Preview);
            Preview = null;
        }
예제 #6
0
        private void ReloadAdditionalProperties()
        {
            if (Aditional != null)
            {
                foreach (var aditional in Aditional)
                {
                    ComponentPool.Free(aditional);
                }
            }

            Aditional = AddAditionalProperties().ToArray();
        }
예제 #7
0
        public override void DeInit()
        {
            base.DeInit();

            Data           = null;
            IsEnableGetter = null;
            Items.Clear();

            foreach (var component in Content.components.ToArray())
            {
                ComponentPool.Free(component);
            }
        }
예제 #8
0
        protected override void DeleteItem(ItemType item)
        {
            var group = GetGroup(item.Object, false);

            base.DeleteItem(item);

            if (group?.IsEmpty == true)
            {
                group.Item.eventMouseEnter -= GroupHover;
                group.Item.eventMouseLeave -= GroupLeave;
                Groups.Remove(group.Selector);
                ComponentPool.Free(group);
            }
        }
예제 #9
0
 private void DeleteAddButton()
 {
     ComponentPool.Free(AddButton);
     AddButton = null;
 }