public MarketDepthControlActionList(MarketDepthControl parent) { if (parent == null) { throw new ArgumentNullException("parent"); } _parent = parent; }
public Command(MarketDepthControl parent, MarketDepthControlAction action) { if (parent == null) { throw new ArgumentNullException("parent"); } if (action == null) { throw new ArgumentNullException("action"); } _parent = parent; _action = action; _parent.SelectionChanged += OnGridSelectionChanged; }
public void CreateNewMarketDepth(Security security) { if (security == null) { return; } _lastDepthWindowId++; if (!_parent.Connector.RegisteredMarketDepths.Contains(security)) { _parent.Connector.RegisterMarketDepth(security); } var depthControl = new MarketDepthControl(); depthControl.UpdateFormat(security); _parent.Depths.Add(security, depthControl); CreateToolWindow(_dockSite, security.Id, "Depth" + _lastDepthWindowId, depthControl, true); }