Commit e83cc9e7 kwwwvagaa

测试空间修改

1 个父辈 ab76b5b1
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<package > <package >
<metadata> <metadata>
<id>$id$</id> <id>$id$</id>
<version>1.0.13</version> <version>1.0.14</version>
<title>HZHControls</title> <title>HZHControls</title>
<authors>HuangZhengHui</authors> <authors>HuangZhengHui</authors>
<owners>HuangZhengHui</owners> <owners>HuangZhengHui</owners>
......
...@@ -25,6 +25,7 @@ namespace Test ...@@ -25,6 +25,7 @@ namespace Test
try try
{ {
ControlHelper.FreezeControl(this, true); ControlHelper.FreezeControl(this, true);
this.tvMenu.Nodes.Add("关于授权");
TreeNode tnForm = new TreeNode(" 窗体"); TreeNode tnForm = new TreeNode(" 窗体");
tnForm.Nodes.Add("提示窗体"); tnForm.Nodes.Add("提示窗体");
tnForm.Nodes.Add("多输入窗体"); tnForm.Nodes.Add("多输入窗体");
...@@ -97,6 +98,7 @@ namespace Test ...@@ -97,6 +98,7 @@ namespace Test
tnFactory.Nodes.Add("多通道转盘"); tnFactory.Nodes.Add("多通道转盘");
tnFactory.Nodes.Add("转盘"); tnFactory.Nodes.Add("转盘");
this.tvMenu.Nodes.Add(tnFactory); this.tvMenu.Nodes.Add(tnFactory);
AddControl(new UCShouQuan());
} }
finally finally
{ {
...@@ -111,6 +113,9 @@ namespace Test ...@@ -111,6 +113,9 @@ namespace Test
this.Title = "HZHControls控件库DEMO--" + strName; this.Title = "HZHControls控件库DEMO--" + strName;
switch (strName) switch (strName)
{ {
case "关于授权":
AddControl(new UCShouQuan());
break;
#region 窗体 English:forms #region 窗体 English:forms
case "提示窗体": case "提示窗体":
if (FrmDialog.ShowDialog(this, "是否再显示一个没有取消按钮的提示框?", "模式窗体测试", true) == System.Windows.Forms.DialogResult.OK) if (FrmDialog.ShowDialog(this, "是否再显示一个没有取消按钮的提示框?", "模式窗体测试", true) == System.Windows.Forms.DialogResult.OK)
......
...@@ -103,6 +103,12 @@ ...@@ -103,6 +103,12 @@
<Compile Include="Program.cs" /> <Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" /> <Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="TestGridModel.cs" /> <Compile Include="TestGridModel.cs" />
<Compile Include="UCShouQuan.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="UCShouQuan.Designer.cs">
<DependentUpon>UCShouQuan.cs</DependentUpon>
</Compile>
<Compile Include="UC\UCTestArrow.cs"> <Compile Include="UC\UCTestArrow.cs">
<SubType>UserControl</SubType> <SubType>UserControl</SubType>
</Compile> </Compile>
...@@ -684,6 +690,9 @@ ...@@ -684,6 +690,9 @@
<DependentUpon>Resources.resx</DependentUpon> <DependentUpon>Resources.resx</DependentUpon>
<DesignTime>True</DesignTime> <DesignTime>True</DesignTime>
</Compile> </Compile>
<EmbeddedResource Include="UCShouQuan.resx">
<DependentUpon>UCShouQuan.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="UC\UCTestArrow.resx"> <EmbeddedResource Include="UC\UCTestArrow.resx">
<DependentUpon>UCTestArrow.cs</DependentUpon> <DependentUpon>UCTestArrow.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
......
namespace Test
{
partial class UCShouQuan
{
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
/// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region 组件设计器生成的代码
/// <summary>
/// 设计器支持所需的方法 - 不要
/// 使用代码编辑器修改此方法的内容。
/// </summary>
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(UCShouQuan));
this.ucPanelTitle1 = new HZH_Controls.Controls.UCPanelTitle();
this.label2 = new System.Windows.Forms.Label();
this.linkLabel1 = new System.Windows.Forms.LinkLabel();
this.linkLabel2 = new System.Windows.Forms.LinkLabel();
this.linkLabel3 = new System.Windows.Forms.LinkLabel();
this.linkLabel4 = new System.Windows.Forms.LinkLabel();
this.linkLabel5 = new System.Windows.Forms.LinkLabel();
this.ucPanelTitle2 = new HZH_Controls.Controls.UCPanelTitle();
this.pictureBox1 = new System.Windows.Forms.PictureBox();
this.pictureBox2 = new System.Windows.Forms.PictureBox();
this.ucPanelTitle1.SuspendLayout();
this.ucPanelTitle2.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).BeginInit();
this.SuspendLayout();
//
// ucPanelTitle1
//
this.ucPanelTitle1.BackColor = System.Drawing.Color.Transparent;
this.ucPanelTitle1.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(77)))), ((int)(((byte)(59)))));
this.ucPanelTitle1.ConerRadius = 10;
this.ucPanelTitle1.Controls.Add(this.linkLabel2);
this.ucPanelTitle1.Controls.Add(this.linkLabel5);
this.ucPanelTitle1.Controls.Add(this.linkLabel4);
this.ucPanelTitle1.Controls.Add(this.linkLabel3);
this.ucPanelTitle1.Controls.Add(this.linkLabel1);
this.ucPanelTitle1.Controls.Add(this.label2);
this.ucPanelTitle1.FillColor = System.Drawing.Color.White;
this.ucPanelTitle1.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
this.ucPanelTitle1.IsCanExpand = true;
this.ucPanelTitle1.IsExpand = false;
this.ucPanelTitle1.IsRadius = true;
this.ucPanelTitle1.IsShowRect = true;
this.ucPanelTitle1.Location = new System.Drawing.Point(16, 19);
this.ucPanelTitle1.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.ucPanelTitle1.Name = "ucPanelTitle1";
this.ucPanelTitle1.Padding = new System.Windows.Forms.Padding(1);
this.ucPanelTitle1.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(77)))), ((int)(((byte)(59)))));
this.ucPanelTitle1.RectWidth = 1;
this.ucPanelTitle1.Size = new System.Drawing.Size(682, 406);
this.ucPanelTitle1.TabIndex = 1;
this.ucPanelTitle1.Title = "声明";
//
// label2
//
this.label2.AutoSize = true;
this.label2.ForeColor = System.Drawing.Color.Black;
this.label2.Location = new System.Drawing.Point(16, 48);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(654, 340);
this.label2.TabIndex = 1;
this.label2.Text = resources.GetString("label2.Text");
//
// linkLabel1
//
this.linkLabel1.AutoSize = true;
this.linkLabel1.Location = new System.Drawing.Point(106, 268);
this.linkLabel1.Name = "linkLabel1";
this.linkLabel1.Size = new System.Drawing.Size(189, 20);
this.linkLabel1.TabIndex = 2;
this.linkLabel1.TabStop = true;
this.linkLabel1.Text = "点击加入QQ群568015492";
this.linkLabel1.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel1_LinkClicked);
//
// linkLabel2
//
this.linkLabel2.AutoSize = true;
this.linkLabel2.Location = new System.Drawing.Point(106, 288);
this.linkLabel2.Name = "linkLabel2";
this.linkLabel2.Size = new System.Drawing.Size(204, 20);
this.linkLabel2.TabIndex = 2;
this.linkLabel2.TabStop = true;
this.linkLabel2.Text = "点击添加作者QQ623128629";
this.linkLabel2.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel2_LinkClicked);
//
// linkLabel3
//
this.linkLabel3.AutoSize = true;
this.linkLabel3.Location = new System.Drawing.Point(106, 330);
this.linkLabel3.Name = "linkLabel3";
this.linkLabel3.Size = new System.Drawing.Size(223, 20);
this.linkLabel3.TabIndex = 2;
this.linkLabel3.TabStop = true;
this.linkLabel3.Text = "http://www.hzhcontrols.com/";
this.linkLabel3.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel3_LinkClicked);
//
// linkLabel4
//
this.linkLabel4.AutoSize = true;
this.linkLabel4.Location = new System.Drawing.Point(106, 352);
this.linkLabel4.Name = "linkLabel4";
this.linkLabel4.Size = new System.Drawing.Size(390, 20);
this.linkLabel4.TabIndex = 2;
this.linkLabel4.TabStop = true;
this.linkLabel4.Text = "https://github.com/kwwwvagaa/NetWinformControl";
this.linkLabel4.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel4_LinkClicked);
//
// linkLabel5
//
this.linkLabel5.AutoSize = true;
this.linkLabel5.Location = new System.Drawing.Point(106, 372);
this.linkLabel5.Name = "linkLabel5";
this.linkLabel5.Size = new System.Drawing.Size(447, 20);
this.linkLabel5.TabIndex = 2;
this.linkLabel5.TabStop = true;
this.linkLabel5.Text = "https://gitee.com/kwwwvagaa/net_winform_custom_control";
this.linkLabel5.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel5_LinkClicked);
//
// ucPanelTitle2
//
this.ucPanelTitle2.BackColor = System.Drawing.Color.Transparent;
this.ucPanelTitle2.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(77)))), ((int)(((byte)(59)))));
this.ucPanelTitle2.ConerRadius = 10;
this.ucPanelTitle2.Controls.Add(this.pictureBox2);
this.ucPanelTitle2.Controls.Add(this.pictureBox1);
this.ucPanelTitle2.FillColor = System.Drawing.Color.White;
this.ucPanelTitle2.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
this.ucPanelTitle2.IsCanExpand = true;
this.ucPanelTitle2.IsExpand = false;
this.ucPanelTitle2.IsRadius = true;
this.ucPanelTitle2.IsShowRect = true;
this.ucPanelTitle2.Location = new System.Drawing.Point(16, 435);
this.ucPanelTitle2.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.ucPanelTitle2.Name = "ucPanelTitle2";
this.ucPanelTitle2.Padding = new System.Windows.Forms.Padding(1);
this.ucPanelTitle2.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(77)))), ((int)(((byte)(59)))));
this.ucPanelTitle2.RectWidth = 1;
this.ucPanelTitle2.Size = new System.Drawing.Size(682, 359);
this.ucPanelTitle2.TabIndex = 2;
this.ucPanelTitle2.Title = "捐赠/授权付款方式";
//
// pictureBox1
//
this.pictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image")));
this.pictureBox1.Location = new System.Drawing.Point(20, 41);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(297, 300);
this.pictureBox1.TabIndex = 1;
this.pictureBox1.TabStop = false;
//
// pictureBox2
//
this.pictureBox2.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox2.Image")));
this.pictureBox2.Location = new System.Drawing.Point(342, 41);
this.pictureBox2.Name = "pictureBox2";
this.pictureBox2.Size = new System.Drawing.Size(297, 300);
this.pictureBox2.TabIndex = 1;
this.pictureBox2.TabStop = false;
//
// UCShouQuan
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.Controls.Add(this.ucPanelTitle2);
this.Controls.Add(this.ucPanelTitle1);
this.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
this.Name = "UCShouQuan";
this.Padding = new System.Windows.Forms.Padding(12, 14, 12, 14);
this.Size = new System.Drawing.Size(936, 1000);
this.ucPanelTitle1.ResumeLayout(false);
this.ucPanelTitle1.PerformLayout();
this.ucPanelTitle2.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).EndInit();
this.ResumeLayout(false);
}
#endregion
private HZH_Controls.Controls.UCPanelTitle ucPanelTitle1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.LinkLabel linkLabel1;
private System.Windows.Forms.LinkLabel linkLabel2;
private System.Windows.Forms.LinkLabel linkLabel5;
private System.Windows.Forms.LinkLabel linkLabel4;
private System.Windows.Forms.LinkLabel linkLabel3;
private HZH_Controls.Controls.UCPanelTitle ucPanelTitle2;
private System.Windows.Forms.PictureBox pictureBox2;
private System.Windows.Forms.PictureBox pictureBox1;
}
}
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Diagnostics;
namespace Test
{
public partial class UCShouQuan : UserControl
{
public UCShouQuan()
{
InitializeComponent();
}
private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
Process.Start("https://shang.qq.com/wpa/qunwpa?idkey=6e08741ef16fe53bf0314c1c9e336c4f626047943a8b76bac062361bab6b4f8d");
}
private void linkLabel2_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
Process.Start("tencent://AddContact/?fromId=45&fromSubId=1&subcmd=all&uin=623128629");
}
private void linkLabel3_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
Process.Start(linkLabel3.Text);
}
private void linkLabel4_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
Process.Start(linkLabel4.Text);
}
private void linkLabel5_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
Process.Start(linkLabel5.Text);
}
}
}
此文件的差异太大,无法显示。
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!