private void RaisePortfolioChanged(Portfolio portfolio)
        {
            PortfolioChanged.SafeInvoke(portfolio);

            var multiEvt = PortfoliosChanged;

            if (multiEvt == null)
            {
                return;
            }

            multiEvt.SafeInvoke(new[] { portfolio });
        }
Exemple #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());
 }
Exemple #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));
 }
Exemple #4
0
 private void PortfolioChangedHandler(Portfolio portfolio)
 {
     AddGuiAction(() => PortfolioChanged.SafeInvoke(portfolio));
 }