C#.Net组件开发(高级篇) - 全部源码下载
C#.Net组件开发(高级篇) - 全部源码下载
VS设计环境 - 组件编辑器
关于这个VS组件编辑器技术研究,花了几天时间,收获不少。VS组件开发涉及.Net框架底层的技术,水很深,非常复杂,由于时间关系不做深入研究了,附上本次学习的全部源码。
VS设计器组件设计源码:
生成的代码Form1.Designer.cs,这些代码才是最想要的,终于实现了!!!
Source code free download:
如需要转载内容请注明出处:www.csframework.com 版权所有,作者:孙中吕
扫一扫加微信
关于这个VS组件编辑器技术研究,花了几天时间,收获不少。VS组件开发涉及.Net框架底层的技术,水很深,非常复杂,由于时间关系不做深入研究了,附上本次学习的全部源码。
VS设计器组件设计源码:
生成的代码Form1.Designer.cs,这些代码才是最想要的,终于实现了!!!
C# Code:
partial class Form1
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
this.button1 = new System.Windows.Forms.Button();
this.csFrameworkComponent1 = new CSFramework.MyDesignEditor.CSFrameworkComponent(this.components);
this.csFrameworkNode2 = new CSFramework.MyDesignEditor.CSFrameworkNode();
this.csFrameworkNode3 = new CSFramework.MyDesignEditor.CSFrameworkNode();
this.csFrameworkNode5 = new CSFramework.MyDesignEditor.CSFrameworkNode();
this.csFrameworkNode6 = new CSFramework.MyDesignEditor.CSFrameworkNode();
this.csFrameworkNode7 = new CSFramework.MyDesignEditor.CSFrameworkNode();
this.csFrameworkNode8 = new CSFramework.MyDesignEditor.CSFrameworkNode();
this.csFrameworkNode9 = new CSFramework.MyDesignEditor.CSFrameworkNode();
this.csFrameworkNode10 = new CSFramework.MyDesignEditor.CSFrameworkNode();
this.csFrameworkNode11 = new CSFramework.MyDesignEditor.CSFrameworkNode();
this.csFrameworkNode12 = new CSFramework.MyDesignEditor.CSFrameworkNode();
this.csFrameworkNode1 = new CSFramework.MyDesignEditor.CSFrameworkNode();
this.csFrameworkNode4 = new CSFramework.MyDesignEditor.CSFrameworkNode();
this.csFrameworkNode13 = new CSFramework.MyDesignEditor.CSFrameworkNode();
this.csFrameworkNode14 = new CSFramework.MyDesignEditor.CSFrameworkNode();
this.csFrameworkNode15 = new CSFramework.MyDesignEditor.CSFrameworkNode();
this.csFrameworkNode16 = new CSFramework.MyDesignEditor.CSFrameworkNode();
this.SuspendLayout();
//
// button1
//
this.button1.Location = new System.Drawing.Point(50, 50);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(150, 30);
this.button1.TabIndex = 0;
this.button1.Text = "www.CSFramework.com";
//
// csFrameworkComponent1
//
this.csFrameworkComponent1.MyInnerObject.MyNodeCollection.Add(this.csFrameworkNode2);
this.csFrameworkComponent1.MyInnerObject.MyNodeCollection.Add(this.csFrameworkNode3);
this.csFrameworkComponent1.MyInnerObject.MyNodeCollection.Add(this.csFrameworkNode5);
this.csFrameworkComponent1.MyInnerObject.MyNodeCollection.Add(this.csFrameworkNode6);
this.csFrameworkComponent1.MyInnerObject.MyNodeCollection.Add(this.csFrameworkNode7);
this.csFrameworkComponent1.MyInnerObject.MyNodeCollection.Add(this.csFrameworkNode8);
this.csFrameworkComponent1.MyInnerObject.MyNodeCollection.Add(this.csFrameworkNode9);
this.csFrameworkComponent1.MyInnerObject.MyNodeCollection.Add(this.csFrameworkNode10);
this.csFrameworkComponent1.MyInnerObject.MyNodeCollection.Add(this.csFrameworkNode11);
this.csFrameworkComponent1.MyInnerObject.MyNodeCollection.Add(this.csFrameworkNode12);
this.csFrameworkComponent1.MyInnerObject.ObjectCreator = "Jonny Sun - C/S框架网555";
this.csFrameworkComponent1.MyInnerObject.ObjectName = "对象名:634500426876739555555";
this.csFrameworkComponent1.MyNodeCollection.Add(this.csFrameworkNode1);
this.csFrameworkComponent1.MyNodeCollection.Add(this.csFrameworkNode4);
this.csFrameworkComponent1.MyNodeCollection.Add(this.csFrameworkNode13);
this.csFrameworkComponent1.MyNodeCollection.Add(this.csFrameworkNode14);
this.csFrameworkComponent1.MyNodeCollection.Add(this.csFrameworkNode15);
this.csFrameworkComponent1.MyNodeCollection.Add(this.csFrameworkNode16);
//
// csFrameworkNode2
//
this.csFrameworkNode2.ID = 1;
this.csFrameworkNode2.NodeName = "名称:1";
//
// csFrameworkNode3
//
this.csFrameworkNode3.ID = 2;
this.csFrameworkNode3.NodeName = "名称:2";
//
// csFrameworkNode5
//
this.csFrameworkNode5.ID = 3;
this.csFrameworkNode5.NodeName = "名称:3";
//
// csFrameworkNode6
//
this.csFrameworkNode6.ID = 4;
this.csFrameworkNode6.NodeName = "名称:4";
//
// csFrameworkNode7
//
this.csFrameworkNode7.ID = 5;
this.csFrameworkNode7.NodeName = "名称:5";
//
// csFrameworkNode8
//
this.csFrameworkNode8.ID = 6;
this.csFrameworkNode8.NodeName = "名称:6";
//
// csFrameworkNode9
//
this.csFrameworkNode9.ID = 7;
this.csFrameworkNode9.NodeName = "名称:7";
//
// csFrameworkNode10
//
this.csFrameworkNode10.ID = 8;
this.csFrameworkNode10.NodeName = "名称:8";
//
// csFrameworkNode11
//
this.csFrameworkNode11.ID = 9;
this.csFrameworkNode11.NodeName = "名称:9";
//
// csFrameworkNode12
//
this.csFrameworkNode12.ID = 10;
this.csFrameworkNode12.NodeName = "名称:10";
//
// csFrameworkNode1
//
this.csFrameworkNode1.ID = 470;
this.csFrameworkNode1.NodeName = "www.CSFramework.com";
//
// csFrameworkNode4
//
this.csFrameworkNode4.ID = 307;
this.csFrameworkNode4.NodeName = "www.CSFramework.com";
//
// csFrameworkNode13
//
this.csFrameworkNode13.ID = 0;
this.csFrameworkNode13.NodeName = null;
//
// csFrameworkNode14
//
this.csFrameworkNode14.ID = 0;
this.csFrameworkNode14.NodeName = null;
//
// csFrameworkNode15
//
this.csFrameworkNode15.ID = 0;
this.csFrameworkNode15.NodeName = null;
//
// csFrameworkNode16
//
this.csFrameworkNode16.ID = 0;
this.csFrameworkNode16.NodeName = null;
//
// Form1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(734, 381);
this.Controls.Add(this.button1);
this.Name = "Form1";
this.Text = "Form1";
this.ResumeLayout(false);
}
#endregion
private CSFrameworkComponent csFrameworkComponent1;
private CSFrameworkNode csFrameworkNode2;
private CSFrameworkNode csFrameworkNode3;
private CSFrameworkNode csFrameworkNode1;
private CSFrameworkNode csFrameworkNode4;
private System.Windows.Forms.Button button1;
private CSFrameworkNode csFrameworkNode5;
private CSFrameworkNode csFrameworkNode6;
private CSFrameworkNode csFrameworkNode7;
private CSFrameworkNode csFrameworkNode8;
private CSFrameworkNode csFrameworkNode9;
private CSFrameworkNode csFrameworkNode10;
private CSFrameworkNode csFrameworkNode11;
private CSFrameworkNode csFrameworkNode12;
private CSFrameworkNode csFrameworkNode13;
private CSFrameworkNode csFrameworkNode14;
private CSFrameworkNode csFrameworkNode15;
private CSFrameworkNode csFrameworkNode16;
}
//来源:C/S框架网(www.csframework.com) QQ:1980854898
partial class Form1
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
this.button1 = new System.Windows.Forms.Button();
this.csFrameworkComponent1 = new CSFramework.MyDesignEditor.CSFrameworkComponent(this.components);
this.csFrameworkNode2 = new CSFramework.MyDesignEditor.CSFrameworkNode();
this.csFrameworkNode3 = new CSFramework.MyDesignEditor.CSFrameworkNode();
this.csFrameworkNode5 = new CSFramework.MyDesignEditor.CSFrameworkNode();
this.csFrameworkNode6 = new CSFramework.MyDesignEditor.CSFrameworkNode();
this.csFrameworkNode7 = new CSFramework.MyDesignEditor.CSFrameworkNode();
this.csFrameworkNode8 = new CSFramework.MyDesignEditor.CSFrameworkNode();
this.csFrameworkNode9 = new CSFramework.MyDesignEditor.CSFrameworkNode();
this.csFrameworkNode10 = new CSFramework.MyDesignEditor.CSFrameworkNode();
this.csFrameworkNode11 = new CSFramework.MyDesignEditor.CSFrameworkNode();
this.csFrameworkNode12 = new CSFramework.MyDesignEditor.CSFrameworkNode();
this.csFrameworkNode1 = new CSFramework.MyDesignEditor.CSFrameworkNode();
this.csFrameworkNode4 = new CSFramework.MyDesignEditor.CSFrameworkNode();
this.csFrameworkNode13 = new CSFramework.MyDesignEditor.CSFrameworkNode();
this.csFrameworkNode14 = new CSFramework.MyDesignEditor.CSFrameworkNode();
this.csFrameworkNode15 = new CSFramework.MyDesignEditor.CSFrameworkNode();
this.csFrameworkNode16 = new CSFramework.MyDesignEditor.CSFrameworkNode();
this.SuspendLayout();
//
// button1
//
this.button1.Location = new System.Drawing.Point(50, 50);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(150, 30);
this.button1.TabIndex = 0;
this.button1.Text = "www.CSFramework.com";
//
// csFrameworkComponent1
//
this.csFrameworkComponent1.MyInnerObject.MyNodeCollection.Add(this.csFrameworkNode2);
this.csFrameworkComponent1.MyInnerObject.MyNodeCollection.Add(this.csFrameworkNode3);
this.csFrameworkComponent1.MyInnerObject.MyNodeCollection.Add(this.csFrameworkNode5);
this.csFrameworkComponent1.MyInnerObject.MyNodeCollection.Add(this.csFrameworkNode6);
this.csFrameworkComponent1.MyInnerObject.MyNodeCollection.Add(this.csFrameworkNode7);
this.csFrameworkComponent1.MyInnerObject.MyNodeCollection.Add(this.csFrameworkNode8);
this.csFrameworkComponent1.MyInnerObject.MyNodeCollection.Add(this.csFrameworkNode9);
this.csFrameworkComponent1.MyInnerObject.MyNodeCollection.Add(this.csFrameworkNode10);
this.csFrameworkComponent1.MyInnerObject.MyNodeCollection.Add(this.csFrameworkNode11);
this.csFrameworkComponent1.MyInnerObject.MyNodeCollection.Add(this.csFrameworkNode12);
this.csFrameworkComponent1.MyInnerObject.ObjectCreator = "Jonny Sun - C/S框架网555";
this.csFrameworkComponent1.MyInnerObject.ObjectName = "对象名:634500426876739555555";
this.csFrameworkComponent1.MyNodeCollection.Add(this.csFrameworkNode1);
this.csFrameworkComponent1.MyNodeCollection.Add(this.csFrameworkNode4);
this.csFrameworkComponent1.MyNodeCollection.Add(this.csFrameworkNode13);
this.csFrameworkComponent1.MyNodeCollection.Add(this.csFrameworkNode14);
this.csFrameworkComponent1.MyNodeCollection.Add(this.csFrameworkNode15);
this.csFrameworkComponent1.MyNodeCollection.Add(this.csFrameworkNode16);
//
// csFrameworkNode2
//
this.csFrameworkNode2.ID = 1;
this.csFrameworkNode2.NodeName = "名称:1";
//
// csFrameworkNode3
//
this.csFrameworkNode3.ID = 2;
this.csFrameworkNode3.NodeName = "名称:2";
//
// csFrameworkNode5
//
this.csFrameworkNode5.ID = 3;
this.csFrameworkNode5.NodeName = "名称:3";
//
// csFrameworkNode6
//
this.csFrameworkNode6.ID = 4;
this.csFrameworkNode6.NodeName = "名称:4";
//
// csFrameworkNode7
//
this.csFrameworkNode7.ID = 5;
this.csFrameworkNode7.NodeName = "名称:5";
//
// csFrameworkNode8
//
this.csFrameworkNode8.ID = 6;
this.csFrameworkNode8.NodeName = "名称:6";
//
// csFrameworkNode9
//
this.csFrameworkNode9.ID = 7;
this.csFrameworkNode9.NodeName = "名称:7";
//
// csFrameworkNode10
//
this.csFrameworkNode10.ID = 8;
this.csFrameworkNode10.NodeName = "名称:8";
//
// csFrameworkNode11
//
this.csFrameworkNode11.ID = 9;
this.csFrameworkNode11.NodeName = "名称:9";
//
// csFrameworkNode12
//
this.csFrameworkNode12.ID = 10;
this.csFrameworkNode12.NodeName = "名称:10";
//
// csFrameworkNode1
//
this.csFrameworkNode1.ID = 470;
this.csFrameworkNode1.NodeName = "www.CSFramework.com";
//
// csFrameworkNode4
//
this.csFrameworkNode4.ID = 307;
this.csFrameworkNode4.NodeName = "www.CSFramework.com";
//
// csFrameworkNode13
//
this.csFrameworkNode13.ID = 0;
this.csFrameworkNode13.NodeName = null;
//
// csFrameworkNode14
//
this.csFrameworkNode14.ID = 0;
this.csFrameworkNode14.NodeName = null;
//
// csFrameworkNode15
//
this.csFrameworkNode15.ID = 0;
this.csFrameworkNode15.NodeName = null;
//
// csFrameworkNode16
//
this.csFrameworkNode16.ID = 0;
this.csFrameworkNode16.NodeName = null;
//
// Form1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(734, 381);
this.Controls.Add(this.button1);
this.Name = "Form1";
this.Text = "Form1";
this.ResumeLayout(false);
}
#endregion
private CSFrameworkComponent csFrameworkComponent1;
private CSFrameworkNode csFrameworkNode2;
private CSFrameworkNode csFrameworkNode3;
private CSFrameworkNode csFrameworkNode1;
private CSFrameworkNode csFrameworkNode4;
private System.Windows.Forms.Button button1;
private CSFrameworkNode csFrameworkNode5;
private CSFrameworkNode csFrameworkNode6;
private CSFrameworkNode csFrameworkNode7;
private CSFrameworkNode csFrameworkNode8;
private CSFrameworkNode csFrameworkNode9;
private CSFrameworkNode csFrameworkNode10;
private CSFrameworkNode csFrameworkNode11;
private CSFrameworkNode csFrameworkNode12;
private CSFrameworkNode csFrameworkNode13;
private CSFrameworkNode csFrameworkNode14;
private CSFrameworkNode csFrameworkNode15;
private CSFrameworkNode csFrameworkNode16;
}
//来源:C/S框架网(www.csframework.com) QQ:1980854898
Source code free download:
如需要转载内容请注明出处:www.csframework.com 版权所有,作者:孙中吕
扫一扫加微信
版权声明:本文为开发框架文库发布内容,转载请附上原文出处连接
NewDoc C/S框架网