Source/Design/GroupPanelDesigner.cs
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Text;
using DevComponents.DotNetBar.Controls;
using System.Collections;
using System.ComponentModel.Design;
using System.Windows.Forms;
using System.Drawing;
namespace DevComponents.DotNetBar.Design
{
/// <summary>
/// Represents the Windows Forms designer for the GroupPanel control.
/// </summary>
public class GroupPanelDesigner : System.Windows.Forms.Design.ScrollableControlDesigner
{
public override DesignerVerbCollection Verbs
{
get
{
DesignerVerb[] verbs;
verbs = new DesignerVerb[]
{
new DesignerVerb("Reset Style", new EventHandler(ResetStyle)),
};
return new DesignerVerbCollection(verbs);
}
}
private void ResetStyle(object sender, EventArgs e)
{
GroupPanel p = this.Control as GroupPanel;
if (p == null)
return;
IComponentChangeService change = this.GetService(typeof(IComponentChangeService)) as IComponentChangeService;
if (change != null)
change.OnComponentChanging(this.Component, null);
p.SetDefaultPanelStyle();
if (change != null)
change.OnComponentChanged(this.Component, null, null, null);
}
#if FRAMEWORK20
public override void InitializeNewComponent(IDictionary defaultValues)
{
base.InitializeNewComponent(defaultValues);
SetDesignTimeDefaults();
}
#else
public override void OnSetComponentDefaults()
{
base.OnSetComponentDefaults();
SetDesignTimeDefaults();
}
#endif
private void SetDesignTimeDefaults()
{
后面还有 50 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。