internal void method_29(OnFill onFill_0)
 {
     if (this.strategy__0 != null && this.strategy__0.Status == StrategyStatus.Running)
     {
         this.idArray_1[onFill_0.portfolio_0.int_0].vmethod_32(onFill_0);
     }
 }
Example #2
0
        public void SetContent(ref T content)
        {
            if (scroll == null)
            {
                return;
            }

            var items = scroll.Items;

            if (items == null)
            {
                return;
            }

            int equalsIndex = 0;

            for (int i = 0; i < items.Count; i++)
            {
                var item = items[i];

                if (item == null)
                {
                    continue;
                }

                var element = item.GetComponent <IElement <T, F> >();
                if (element != null && element.Equals(content))
                {
                    equalsIndex = i;
                    scroll.SetContentInPivot(equalsIndex);
                    OnFill?.Invoke();
                    return;
                }
            }
        }
Example #3
0
        internal void OnFill(Portfolio portfolio, Fill fill, bool queued)
        {
            var e = new OnFill(portfolio, fill);

            if (queued)
            {
                this.queue.Enqueue(e);
            }
            else
            {
                OnEvent(e);
            }
        }
Example #4
0
 private void DispatcherNewFill(object sender, OnFill fill)
 {
     PortfolioEventQueue.Enqueue(fill);
 }
Example #5
0
 internal void method_29(OnFill onFill_0)
 {
     if (this.strategy__0 != null && this.strategy__0.Status == StrategyStatus.Running)
     {
         this.idArray_1[onFill_0.portfolio_0.int_0].vmethod_32(onFill_0);
     }
 }
Example #6
0
 private void DispatcherNewFill(object sender, OnFill fill)
 {
     PortfolioEventQueue.Enqueue(fill);
 }
Example #7
0
 internal void OnFill(Portfolio portfolio, Fill fill, bool queued)
 {
     var e = new OnFill(portfolio, fill);
     if (queued)
         this.queue.Enqueue(e);
     else
         OnEvent(e);
 }