public void Dispose() { if (m_position != null) { m_position.PropertyChanged -= HandleUpdate; m_position.NotifyBeingRemovedFromPortfolio -= handleBeingRemoved; } m_position = null; DT = null; }
public Updater(LiveRates.LivePosition position_) { m_position = position_; m_position.PropertyChanged += HandleUpdate; m_position.NotifyBeingRemovedFromPortfolio += handleBeingRemoved; }