private void RaisePortfolioChanged(Portfolio portfolio) { PortfolioChanged.SafeInvoke(portfolio); var multiEvt = PortfoliosChanged; if (multiEvt == null) { return; } multiEvt.SafeInvoke(new[] { portfolio }); }
internal void OnUpdatePortfolio(string name, double cash, double leverage, double commission, double saldo) { PortfolioChanged.SafeInvoke(name, cash.ToDecimal(), leverage.ToDecimal(), commission.ToDecimal(), saldo.ToDecimal()); }
internal void OnUpdatePortfolio(string name, double cash, double leverage, double commission, double saldo) { PortfolioChanged.SafeInvoke(name, SafeCast(cash), SafeCast(leverage), SafeCast(commission), SafeCast(saldo)); }
private void PortfolioChangedHandler(Portfolio portfolio) { AddGuiAction(() => PortfolioChanged.SafeInvoke(portfolio)); }