private void HandleDeckStripChanged(object sender, EventArgs e) { Debug.Assert(!this.InvokeRequired); if (this.m_DeckStrip != null) { this.m_DeckStrip.DockChanged -= new EventHandler(this.HandleDeckStripDockChanged); } this.m_DeckStrip = (this.m_DeckTabPage != null) ? this.m_DeckTabPage.Parent as DeckStrip : null; if (this.m_DeckStrip != null) { this.m_DeckStrip.DockChanged += new EventHandler(this.HandleDeckStripDockChanged); } this.HandleDeckStripDockChanged(this, EventArgs.Empty); }
public DeckTraversalsMirror(DeckStrip owner, Collection <DeckTraversalModel> collection) : base(owner.m_EventQueue, collection) { this.m_Owner = owner; base.Initialize(true); }