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 PcgDraw
{
///
/// 停靠控件基类
///
public partial class DrawerPanel : DockContent
{
///
/// Initializes a new instance of the class.
///
public DrawerPanel()
{
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;
}
}
}
}