You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.1 KiB
C#
49 lines
1.1 KiB
C#
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
|
|
{
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="DrawPanel"/> class.
|
|
/// </summary>
|
|
public DrawPanel()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
/// <summary>
|
|
/// 标识
|
|
/// </summary>
|
|
public int ID { get; set; }
|
|
/// <summary>
|
|
/// 主控件
|
|
/// </summary>
|
|
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;
|
|
}
|
|
}
|
|
}
|
|
}
|