Source/Design/WizardDesigner.cs
(开头部分) 30KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Text;
using System.ComponentModel.Design;
using System.ComponentModel;
using System.Windows.Forms;
using System.Collections;
using System.Drawing;
namespace DevComponents.DotNetBar.Design
{
/// <summary>
/// Represents Windows Forms Designer for Wizard control.
/// </summary>
public class WizardDesigner : System.Windows.Forms.Design.ControlDesigner
{
#region Internal Implementation
WizardPageNavigationControl m_NavigationControl=null;
public override void Initialize(IComponent component)
{
base.Initialize(component);
if (!component.Site.DesignMode)
return;
IComponentChangeService cc = (IComponentChangeService)GetService(typeof(IComponentChangeService));
if (cc != null)
{
cc.ComponentRemoved += new ComponentEventHandler(this.OnComponentRemoved);
}
// Setup navigation box in lower left corner
Wizard w=component as Wizard;
if(w!=null)
{
WizardPageNavigationControl wpn=new WizardPageNavigationControl();
wpn.Location=new Point(4, w.panelFooter.Height - wpn.Height - 4);
w.panelFooter.Controls.Add(wpn);
wpn.BackColor=SystemColors.Control;
m_NavigationControl=wpn;
}
#if !TRIAL
IDesignerHost dh = this.GetService(typeof(IDesignerHost)) as IDesignerHost;
if (dh != null)
dh.LoadComplete += new EventHandler(dh_LoadComplete);
#endif
}
protected override void Dispose(bool disposing)
{
IComponentChangeService cc = (IComponentChangeService)GetService(typeof(IComponentChangeService));
if (cc != null)
{
cc.ComponentRemoved -= new ComponentEventHandler(this.OnComponentRemoved);
}
base.Dispose(disposing);
}
private void OnComponentRemoved(object sender, ComponentEventArgs e)
{
后面还有 697 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。