예제 #1
0
 public void Recycle()
 {
     this.prepareForRecycling();
     this.TaskPanel.Children.Clear();
     this.TaskPanel.Visibility = Visibility.Visible;
     this.collapsed            = false;
     this.CollapsedChanged     = null;
     StaticObjectPool.Push(this);
 }
예제 #2
0
        private void Unbind()
        {
            if (m_binding != null)
            {
                m_binding.Unbind();
                StaticObjectPool <UnityEventBinding> .Return(m_binding);

                m_binding = null;
            }
        }
예제 #3
0
        private void Bind()
        {
            if (this.isBound)
            {
                return;
            }
            m_binding = StaticObjectPool <UnityEventBinding> .Get();

            m_binding.Bind(m_driver.onValueObjChanged, this.driverValueChangedAction);
        }
예제 #4
0
        protected override TogglDesktop.AutoCompleteControls.ProjectCategory createElement(
            Action selectWithClick, List <IRecyclable> recyclables,
            out Panel newParent, out ICollapsable collapsable)
        {
            var element = StaticObjectPool.PopOrNew <TogglDesktop.AutoCompleteControls.ProjectCategory>()
                          .Initialised(base.Item, selectWithClick)
                          .MarkForRecycling(recyclables);

            newParent   = element.TaskPanel;
            collapsable = element;

            return(element);
        }
예제 #5
0
 public void Recycle()
 {
     this.prepareForRecycling();
     StaticObjectPool.Push(this);
 }
예제 #6
0
파일: TaskItem.cs 프로젝트: blockplus/other
 protected override TaskEntry createElement(Action selectWithClick, List <IRecyclable> recyclables)
 {
     return(StaticObjectPool.PopOrNew <TaskEntry>()
            .Initialised(this.Item, selectWithClick)
            .MarkForRecycling(recyclables));
 }
예제 #7
0
 protected override UIElement createElement(List <IRecyclable> recyclables)
 {
     return(StaticObjectPool.PopOrNew <GrayTextCategory>()
            .Initialised(this.text)
            .MarkForRecycling(recyclables));
 }
예제 #8
0
 public void Recycle()
 {
     StaticObjectPool.Push(this);
 }
예제 #9
0
 protected override UIElement createElement(List <IRecyclable> recyclables)
 {
     return(StaticObjectPool.PopOrNew <AutoCompleteControls.WorkspaceCategory>()
            .Initialised(this.text)
            .MarkForRecycling(recyclables));
 }
예제 #10
0
 public void Recycle()
 {
     this.projectPanel.Children.Clear();
     StaticObjectPool.Push(this);
 }
예제 #11
0
 protected override UIElement createElement(out Panel childrenPanel, List <IRecyclable> recyclables)
 {
     return(StaticObjectPool.PopOrNew <AutoCompleteControls.ClientCategory>()
            .Initialised(this.Text, out childrenPanel)
            .MarkForRecycling(recyclables));
 }