using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using WeifenLuo.WinFormsUI.Docking; namespace SymbolLibManager { public partial class DrawPanel : DockContent { /// /// Initializes a new instance of the class. /// public DrawPanel() { InitializeComponent(); } /// /// 标识 /// public int ID { get; set; } /// /// 主控件 /// public Control MainControl { get { if (this.Controls.Count > 0) { return this.Controls[0]; } return null; } set { this.Controls.Clear(); this.Controls.Add(value); value.Dock = DockStyle.Fill; } } } }