示例#1
0
        private void RaisePortfolioChanged(Portfolio portfolio)
        {
            PortfolioChanged.SafeInvoke(portfolio);

            var multiEvt = PortfoliosChanged;

            if (multiEvt == null)
            {
                return;
            }

            multiEvt.SafeInvoke(new[] { portfolio });
        }
示例#2
0
 internal void OnUpdatePortfolio(string name, double cash, double leverage, double commission, double saldo)
 {
     PortfolioChanged.SafeInvoke(name, cash.ToDecimal(), leverage.ToDecimal(), commission.ToDecimal(), saldo.ToDecimal());
 }
示例#3
0
 internal void OnUpdatePortfolio(string name, double cash, double leverage, double commission, double saldo)
 {
     PortfolioChanged.SafeInvoke(name, SafeCast(cash), SafeCast(leverage), SafeCast(commission), SafeCast(saldo));
 }
示例#4
0
 private void PortfolioChangedHandler(Portfolio portfolio)
 {
     AddGuiAction(() => PortfolioChanged.SafeInvoke(portfolio));
 }