private void Update() { UpdatePortfolio(PositionMonitorUtilities.GetCurrentPositionsForAccount(AccountName)); #if DEBUG PositionMonitorUtilities.Debug(String.Format("{0} refreshed portfolio: {1} positions", Name, m_portfolio.Count)); #endif if (m_refreshEventHandler != null) { m_refreshEventHandler(this, new EventArgs()); } }
private void m_messageUtilities_OnDebug(object sender, LoggingEventArgs e) { PositionMonitorUtilities.Debug(e.Message); }