Source/DockSiteDesigner.cs
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.ComponentModel;
using System.ComponentModel.Design;
using System.Windows.Forms.Design;
using System.Windows.Forms;
using System.Drawing;
namespace DevComponents.DotNetBar
{
/// <summary>
/// Summary description for DockSiteDesigner.
/// </summary>
public class DockSiteDesigner:ParentControlDesigner
{
private bool m_MouseDrag=false;
public override SelectionRules SelectionRules
{
get{return SelectionRules.None;}
}
protected override void OnContextMenu(int x,int y)
{
}
public override void Initialize(IComponent component)
{
base.Initialize(component);
if(!component.Site.DesignMode)
return;
// If our component is removed we need to clean-up
IComponentChangeService cc=(IComponentChangeService)GetService(typeof(IComponentChangeService));
if(cc!=null)
{
cc.ComponentRemoving+=new ComponentEventHandler(this.OnComponentRemoving);
}
}
protected override void Dispose(bool disposing)
{
// Unhook events
IComponentChangeService cc=(IComponentChangeService)GetService(typeof(IComponentChangeService));
if(cc!=null)
{
cc.ComponentRemoving-=new ComponentEventHandler(this.OnComponentRemoving);
}
base.Dispose(disposing);
}
private void OnComponentRemoving(object sender,ComponentEventArgs e)
{
if(e.Component!=this.Component)
{
return;
}
// Unhook events
IComponentChangeService cc=(IComponentChangeService)GetService(typeof(IComponentChangeService));
if(cc!=null)
cc.ComponentRemoving-=new ComponentEventHandler(this.OnComponentRemoving);
DockSite c=this.Control as DockSite;
后面还有 106 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。