using System.Windows.Forms; using JD.Kernel.StaticHelpers; using JD.Sequencers.Tools; using JD.Sequencers.Windowlesses; namespace JD.Sequencers.Controls { /// /// Manages an ensemble of s and the tools associated with them. /// public class WindowlessContainer : WindowlessControl { #region Variables private readonly IPhysicalControl m_rootControl; private readonly Selection m_selection = new Selection(); private readonly ToolManager m_toolManager; private MouseEventArgs m_lastMouseDownEventArgs; #endregion #region Constructor public WindowlessContainer(IPhysicalControl owner) { Throw.IfNull(owner, "owner"); m_rootControl = owner; m_toolManager = new ToolManager(this); } #endregion #region Properties /// /// Overriden. /// public override sealed IPhysicalControl RootControl { get { return m_rootControl; } } /// /// Selection. /// public Selection Selection { get { return m_selection; } } /// /// Manages the tools for this container. /// public ToolManager ToolManager { get { return m_toolManager; } } public MouseEventArgs LastMouseDownEventArgs { get { return m_lastMouseDownEventArgs; } internal set { m_lastMouseDownEventArgs = value; } } #endregion } }