Commit a292c517 HZH

新增采样控件

1 个父辈 7fb438cd
...@@ -54,8 +54,12 @@ namespace HZH_Controls.Controls ...@@ -54,8 +54,12 @@ namespace HZH_Controls.Controls
private void ConnectPaintEventHandlers(Control control) private void ConnectPaintEventHandlers(Control control)
{ {
// Connect the paint event handler for this control.
// Remove the existing handler first (if one exists) and replace it. Type type = control.GetType();
System.Reflection.PropertyInfo pi = type.GetProperty("DoubleBuffered", System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.NonPublic);
pi.SetValue(control, true, null);
control.Paint -= new PaintEventHandler(Control_Paint); control.Paint -= new PaintEventHandler(Control_Paint);
control.Paint += new PaintEventHandler(Control_Paint); control.Paint += new PaintEventHandler(Control_Paint);
......
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.ComponentModel;
namespace HZH_Controls.Controls
{
public class UCSampling : UserControl
{
private Bitmap samplingImag = null;
[Browsable(true), Category("自定义属性"), Description("采样图片"), Localizable(true)]
public Bitmap SamplingImag
{
get { return samplingImag; }
set
{
samplingImag = value;
ResetBorderPath();
Invalidate();
}
}
private Color? transparent = null;
[Browsable(true), Category("自定义属性"), Description("透明色,如果为空,则使用0,0坐标处的颜色"), Localizable(true)]
public Color? Transparent
{
get { return transparent; }
set
{
transparent = value;
ResetBorderPath();
Invalidate();
}
}
private int alpha = 50;
[Browsable(true), Category("自定义属性"), Description("当作透明色的透明度,小于此透明度的颜色将被认定为透明,0-255"), Localizable(true)]
public int Alpha
{
get { return alpha; }
set
{
if (value < 0 || value > 255)
return;
alpha = value;
ResetBorderPath();
Invalidate();
}
}
private int colorThreshold = 10;
[Browsable(true), Category("自定义属性"), Description("透明色颜色阀值"), Localizable(true)]
public int ColorThreshold
{
get { return colorThreshold; }
set
{
colorThreshold = value;
ResetBorderPath();
Invalidate();
}
}
private Bitmap _bitCache;
public UCSampling()
{
this.SetStyle(ControlStyles.AllPaintingInWmPaint, true);
this.SetStyle(ControlStyles.DoubleBuffer, true);
this.SetStyle(ControlStyles.ResizeRedraw, true);
this.SetStyle(ControlStyles.Selectable, true);
this.SetStyle(ControlStyles.SupportsTransparentBackColor, true);
this.SetStyle(ControlStyles.UserPaint, true);
this.SizeChanged += UCSampling_SizeChanged;
this.Size = new Size(35, 35);
}
GraphicsPath m_borderPath = new GraphicsPath();
void UCSampling_SizeChanged(object sender, EventArgs e)
{
ResetBorderPath();
}
private void ResetBorderPath()
{
if (samplingImag == null)
{
m_borderPath = this.ClientRectangle.CreateRoundedRectanglePath(5);
}
else
{
var bit = new Bitmap(this.ClientRectangle.Width, this.ClientRectangle.Height);
using (var bitg = Graphics.FromImage(bit))
{
bitg.DrawImage(samplingImag, this.ClientRectangle, 0, 0, samplingImag.Width, samplingImag.Height, GraphicsUnit.Pixel);
}
_bitCache = bit;
m_borderPath = new GraphicsPath();
List<PointF> lstPoints = GetBorderPoints(bit, transparent ?? samplingImag.GetPixel(0, 0));
m_borderPath.AddLines(lstPoints.ToArray());
m_borderPath.CloseAllFigures();
}
}
private List<PointF> GetBorderPoints(Bitmap bit, Color transparent)
{
float diameter = (float)Math.Sqrt(bit.Width * bit.Width + bit.Height * bit.Height);
int intSplit = 0;
intSplit = (int)(7 - (diameter - 200) / 100);
if (intSplit < 1)
intSplit = 1;
List<PointF> lstPoint = new List<PointF>();
for (int i = 0; i < 360; i += intSplit)
{
for (int j = (int)diameter / 2; j > 5; j--)
{
Point p = GetPointByAngle(i, j, new PointF(bit.Width / 2, bit.Height / 2));
if (p.X < 0 || p.Y < 0 || p.X >= bit.Width || p.Y >= bit.Height)
continue;
Color _color = bit.GetPixel(p.X, p.Y);
if (!(((int)_color.A) <= alpha || IsLikeColor(_color, transparent)))
{
if (!lstPoint.Contains(p))
{
lstPoint.Add(p);
}
break;
}
}
}
return lstPoint;
}
private bool IsLikeColor(Color color1, Color color2)
{
var cv = Math.Sqrt(Math.Pow((color1.R - color2.R), 2) + Math.Pow((color1.G - color2.G), 2) + Math.Pow((color1.B - color2.B), 2));
if (cv <= colorThreshold)
return true;
else
return false;
}
#region 根据角度得到坐标 English:Get coordinates from angles
/// <summary>
/// 功能描述:根据角度得到坐标 English:Get coordinates from angles
/// 作  者:HZH
/// 创建日期:2019-09-28 11:56:25
/// 任务编号:POS
/// </summary>
/// <param name="angle">angle</param>
/// <param name="radius">radius</param>
/// <param name="origin">origin</param>
/// <returns>返回值</returns>
private Point GetPointByAngle(float angle, float radius, PointF origin)
{
float y = origin.Y + (float)Math.Sin(Math.PI * (angle / 180.00F)) * radius;
float x = origin.X + (float)Math.Cos(Math.PI * (angle / 180.00F)) * radius;
return new Point((int)x, (int)y);
}
#endregion
protected override void OnPaint(PaintEventArgs e)
{
base.OnPaint(e);
e.Graphics.SetGDIHigh();
this.Region = new System.Drawing.Region(m_borderPath);
if (_bitCache != null)
e.Graphics.DrawImage(_bitCache, 0, 0);
}
}
}
...@@ -78,6 +78,9 @@ ...@@ -78,6 +78,9 @@
</Compile> </Compile>
<Compile Include="Controls\Navigation\CrumbNavigationClickEventArgs.cs" /> <Compile Include="Controls\Navigation\CrumbNavigationClickEventArgs.cs" />
<Compile Include="Controls\Navigation\CrumbNavigationItem.cs" /> <Compile Include="Controls\Navigation\CrumbNavigationItem.cs" />
<Compile Include="Controls\Sampling\UCSampling.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="Controls\ScrollBar\ScrollbarComponent.cs"> <Compile Include="Controls\ScrollBar\ScrollbarComponent.cs">
<SubType>Component</SubType> <SubType>Component</SubType>
</Compile> </Compile>
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<package > <package >
<metadata> <metadata>
<id>$id$</id> <id>$id$</id>
<version>1.0.5</version> <version>1.0.6</version>
<title>HZHControls</title> <title>HZHControls</title>
<authors>HuangZhengHui</authors> <authors>HuangZhengHui</authors>
<owners>HuangZhengHui</owners> <owners>HuangZhengHui</owners>
......
...@@ -1384,5 +1384,63 @@ namespace HZH_Controls ...@@ -1384,5 +1384,63 @@ namespace HZH_Controls
#endregion #endregion
/// <summary>
/// 返回指定图片中的非透明区域;
/// </summary>
/// <param name="img">位图</param>
/// <returns></returns>
public static GraphicsPath CalculateControlGraphicsPath(Bitmap bitmap, Color? colorTransparent = null)
{
// Create GraphicsPath for our bitmap calculation
//创建 GraphicsPath
GraphicsPath graphicsPath = new GraphicsPath();
// Use the top left pixel as our transparent color
//使用左上角的一点的颜色作为我们透明色
Color _colorTransparent = bitmap.GetPixel(0, 0);
if (colorTransparent != null && colorTransparent != Color.Transparent && colorTransparent != Color.Empty)
_colorTransparent = colorTransparent.Value;
// This is to store the column value where an opaque pixel is first found.
// This value will determine where we start scanning for trailing opaque pixels.
//第一个找到点的X
int colOpaquePixel = 0;
// Go through all rows (Y axis)
// 偏历所有行(Y方向)
for (int row = 0; row < bitmap.Height; row++)
{
// Reset value
//重设
colOpaquePixel = 0;
// Go through all columns (X axis)
//偏历所有列(X方向)
for (int col = 0; col < bitmap.Width; col++)
{
// If this is an opaque pixel, mark it and search for anymore trailing behind
//如果是不需要透明处理的点则标记,然后继续偏历
if (bitmap.GetPixel(col, row) != _colorTransparent)
{
// Opaque pixel found, mark current position
//记录当前
colOpaquePixel = col;
// Create another variable to set the current pixel position
//建立新变量来记录当前点
int colNext = col;
// Starting from current found opaque pixel, search for anymore opaque pixels
// trailing behind, until a transparent pixel is found or minimum width is reached
///从找到的不透明点开始,继续寻找不透明点,一直到找到或则达到图片宽度
for (colNext = colOpaquePixel; colNext < bitmap.Width; colNext++)
if (bitmap.GetPixel(colNext, row) == _colorTransparent)
break;
// Form a rectangle for line of opaque pixels found and add it to our graphics path
//将不透明点加到graphics path
graphicsPath.AddRectangle(new Rectangle(colOpaquePixel, row, colNext - colOpaquePixel, 1));
// No need to scan the line of opaque pixels just found
col = colNext;
}
}
}
// Return calculated graphics path
return graphicsPath;
}
} }
} }
...@@ -61,10 +61,11 @@ namespace Test ...@@ -61,10 +61,11 @@ namespace Test
tnControl.Nodes.Add("滚动条"); tnControl.Nodes.Add("滚动条");
tnControl.Nodes.Add("控件水印"); tnControl.Nodes.Add("控件水印");
tnControl.Nodes.Add("表单验证"); tnControl.Nodes.Add("表单验证");
tnControl.Nodes.Add("图片采样控件");
this.tvMenu.Nodes.Add(tnControl); this.tvMenu.Nodes.Add(tnControl);
TreeNode tnCharts = new TreeNode(" 图表"); TreeNode tnCharts = new TreeNode(" 图表");
tnControl.Nodes.Add("组织结构图"); tnCharts.Nodes.Add("组织结构图");
tnCharts.Nodes.Add("滚动图表"); tnCharts.Nodes.Add("滚动图表");
tnCharts.Nodes.Add("柱状图"); tnCharts.Nodes.Add("柱状图");
tnCharts.Nodes.Add("饼状图"); tnCharts.Nodes.Add("饼状图");
...@@ -250,6 +251,9 @@ namespace Test ...@@ -250,6 +251,9 @@ namespace Test
case "表单验证": case "表单验证":
AddControl(new UC.UCTestVerification() { Dock = DockStyle.Fill }); AddControl(new UC.UCTestVerification() { Dock = DockStyle.Fill });
break; break;
case "图片采样控件":
AddControl(new UC.UCTestSampling() );
break;
#endregion #endregion
#region 图表 English:Chart #region 图表 English:Chart
......
...@@ -242,6 +242,12 @@ ...@@ -242,6 +242,12 @@
<Compile Include="UC\UCTestRollText.Designer.cs"> <Compile Include="UC\UCTestRollText.Designer.cs">
<DependentUpon>UCTestRollText.cs</DependentUpon> <DependentUpon>UCTestRollText.cs</DependentUpon>
</Compile> </Compile>
<Compile Include="UC\UCTestSampling.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="UC\UCTestSampling.Designer.cs">
<DependentUpon>UCTestSampling.cs</DependentUpon>
</Compile>
<Compile Include="UC\UCTestScrollbar.cs"> <Compile Include="UC\UCTestScrollbar.cs">
<SubType>UserControl</SubType> <SubType>UserControl</SubType>
</Compile> </Compile>
...@@ -425,6 +431,9 @@ ...@@ -425,6 +431,9 @@
<EmbeddedResource Include="UC\UCTestRollText.resx"> <EmbeddedResource Include="UC\UCTestRollText.resx">
<DependentUpon>UCTestRollText.cs</DependentUpon> <DependentUpon>UCTestRollText.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
<EmbeddedResource Include="UC\UCTestSampling.resx">
<DependentUpon>UCTestSampling.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="UC\UCTestScrollbar.resx"> <EmbeddedResource Include="UC\UCTestScrollbar.resx">
<DependentUpon>UCTestScrollbar.cs</DependentUpon> <DependentUpon>UCTestScrollbar.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
......
...@@ -34,6 +34,7 @@ ...@@ -34,6 +34,7 @@
this.button2 = new System.Windows.Forms.Button(); this.button2 = new System.Windows.Forms.Button();
this.button3 = new System.Windows.Forms.Button(); this.button3 = new System.Windows.Forms.Button();
this.label1 = new System.Windows.Forms.Label(); this.label1 = new System.Windows.Forms.Label();
this.button4 = new System.Windows.Forms.Button();
this.SuspendLayout(); this.SuspendLayout();
// //
// graphicalOverlay1 // graphicalOverlay1
...@@ -47,7 +48,7 @@ ...@@ -47,7 +48,7 @@
this.button1.Name = "button1"; this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(136, 23); this.button1.Size = new System.Drawing.Size(136, 23);
this.button1.TabIndex = 0; this.button1.TabIndex = 0;
this.button1.Text = "显示/隐藏颜色"; this.button1.Text = "显示/隐藏";
this.button1.UseVisualStyleBackColor = true; this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click); this.button1.Click += new System.EventHandler(this.button1_Click);
// //
...@@ -80,16 +81,26 @@ ...@@ -80,16 +81,26 @@
this.label1.TabIndex = 2; this.label1.TabIndex = 2;
this.label1.Text = "graphicalOverlay的paint事件可以做更多的事情,这里已覆盖控件颜色演示"; this.label1.Text = "graphicalOverlay的paint事件可以做更多的事情,这里已覆盖控件颜色演示";
// //
// button4
//
this.button4.Location = new System.Drawing.Point(553, 23);
this.button4.Name = "button4";
this.button4.Size = new System.Drawing.Size(151, 62);
this.button4.TabIndex = 3;
this.button4.Text = "这是一个展示倒影的按钮\r\n倒影高度1/3\r\n";
this.button4.UseVisualStyleBackColor = true;
//
// UCTestGraphicalOverlay // UCTestGraphicalOverlay
// //
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.BackColor = System.Drawing.Color.White; this.BackColor = System.Drawing.Color.White;
this.Controls.Add(this.button4);
this.Controls.Add(this.label1); this.Controls.Add(this.label1);
this.Controls.Add(this.button3); this.Controls.Add(this.button3);
this.Controls.Add(this.button2); this.Controls.Add(this.button2);
this.Controls.Add(this.button1); this.Controls.Add(this.button1);
this.Name = "UCTestGraphicalOverlay"; this.Name = "UCTestGraphicalOverlay";
this.Size = new System.Drawing.Size(681, 528); this.Size = new System.Drawing.Size(860, 528);
this.ResumeLayout(false); this.ResumeLayout(false);
this.PerformLayout(); this.PerformLayout();
...@@ -102,5 +113,6 @@ ...@@ -102,5 +113,6 @@
private System.Windows.Forms.Button button2; private System.Windows.Forms.Button button2;
private System.Windows.Forms.Button button3; private System.Windows.Forms.Button button3;
private System.Windows.Forms.Label label1; private System.Windows.Forms.Label label1;
private System.Windows.Forms.Button button4;
} }
} }
...@@ -10,6 +10,7 @@ using HZH_Controls; ...@@ -10,6 +10,7 @@ using HZH_Controls;
namespace Test.UC namespace Test.UC
{ {
[ToolboxItem(false)]
public partial class UCTestGraphicalOverlay : UserControl public partial class UCTestGraphicalOverlay : UserControl
{ {
Random r = new Random(); Random r = new Random();
...@@ -17,6 +18,12 @@ namespace Test.UC ...@@ -17,6 +18,12 @@ namespace Test.UC
public UCTestGraphicalOverlay() public UCTestGraphicalOverlay()
{ {
InitializeComponent(); InitializeComponent();
this.Paint += UCTestGraphicalOverlay_Paint;
}
void UCTestGraphicalOverlay_Paint(object sender, PaintEventArgs e)
{
} }
private void graphicalOverlay1_Paint(object sender, PaintEventArgs e) private void graphicalOverlay1_Paint(object sender, PaintEventArgs e)
...@@ -26,15 +33,35 @@ namespace Test.UC ...@@ -26,15 +33,35 @@ namespace Test.UC
{ {
foreach (Control item in this.Controls) foreach (Control item in this.Controls)
{ {
if (item is Button) e.Graphics.FillRectangle(new SolidBrush(Color.FromArgb(100, r.Next(0, 255), r.Next(0, 255), r.Next(0, 255))), item.Bounds);
{
e.Graphics.FillRectangle(new SolidBrush(Color.FromArgb(100, r.Next(0, 255), r.Next(0, 255), r.Next(0, 255))), item.Bounds);
}
else if (item is Label)
{
e.Graphics.FillRectangle(new SolidBrush(Color.FromArgb(100, r.Next(0, 255), r.Next(0, 255), r.Next(0, 255))), item.Bounds);
}
} }
//using (Bitmap bit = new Bitmap(button4.Width, button4.Height))
//{
// button4.DrawToBitmap(bit, button4.ClientRectangle);
// using (Bitmap bitNew = new Bitmap(bit.Width, bit.Height / 3))
// {
// using (var g = Graphics.FromImage(bitNew))
// {
// g.DrawImage(bit, new RectangleF(0, 0, bitNew.Width, bitNew.Height), new RectangleF(0, bit.Height - bit.Height / 3, bit.Width, bit.Height / 3), GraphicsUnit.Pixel);
// }
// bitNew.RotateFlip(RotateFlipType.Rotate180FlipNone);
// float flt = 200.0f / bitNew.Height;
// for (int i = 0; i < bitNew.Height; i++)
// {
// for (int j = 0; j < bitNew.Width; j++)
// {
// Color c = bitNew.GetPixel(j, i);
// int a = 200 - (int)(flt * i);
// if (a < 0)
// a = 0;
// bitNew.SetPixel(j, i, Color.FromArgb(a, c));
// }
// }
// e.Graphics.DrawImage(bitNew, new Point(button4.Location.X, button4.Location.Y + button4.Height + 1));
// }
//}
} }
} }
......
namespace Test.UC
{
partial class UCTestSampling
{
/// <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(UCTestSampling));
this.label1 = new System.Windows.Forms.Label();
this.ucSampling6 = new HZH_Controls.Controls.UCSampling();
this.ucSampling1 = new HZH_Controls.Controls.UCSampling();
this.ucSampling5 = new HZH_Controls.Controls.UCSampling();
this.ucSampling4 = new HZH_Controls.Controls.UCSampling();
this.ucSampling2 = new HZH_Controls.Controls.UCSampling();
this.ucSampling3 = new HZH_Controls.Controls.UCSampling();
this.SuspendLayout();
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(65, 412);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(359, 24);
this.label1.TabIndex = 2;
this.label1.Text = "*该实例演示了采样控件根据设置的图片及参数得到有效的绘制区域\r\n你可以使用更好的图片来达到更出色的效果\r\n";
//
// ucSampling6
//
this.ucSampling6.Alpha = 50;
this.ucSampling6.ColorThreshold = 13;
this.ucSampling6.Location = new System.Drawing.Point(38, 3);
this.ucSampling6.Name = "ucSampling6";
this.ucSampling6.SamplingImag = ((System.Drawing.Bitmap)(resources.GetObject("ucSampling6.SamplingImag")));
this.ucSampling6.Size = new System.Drawing.Size(350, 179);
this.ucSampling6.TabIndex = 1;
this.ucSampling6.Transparent = null;
//
// ucSampling1
//
this.ucSampling1.Alpha = 0;
this.ucSampling1.ColorThreshold = 0;
this.ucSampling1.Location = new System.Drawing.Point(669, 116);
this.ucSampling1.Name = "ucSampling1";
this.ucSampling1.SamplingImag = ((System.Drawing.Bitmap)(resources.GetObject("ucSampling1.SamplingImag")));
this.ucSampling1.Size = new System.Drawing.Size(128, 128);
this.ucSampling1.TabIndex = 1;
this.ucSampling1.Transparent = null;
//
// ucSampling5
//
this.ucSampling5.Alpha = 50;
this.ucSampling5.ColorThreshold = 12;
this.ucSampling5.Location = new System.Drawing.Point(271, 130);
this.ucSampling5.Name = "ucSampling5";
this.ucSampling5.SamplingImag = ((System.Drawing.Bitmap)(resources.GetObject("ucSampling5.SamplingImag")));
this.ucSampling5.Size = new System.Drawing.Size(350, 179);
this.ucSampling5.TabIndex = 1;
this.ucSampling5.Transparent = null;
//
// ucSampling4
//
this.ucSampling4.Alpha = 50;
this.ucSampling4.ColorThreshold = 12;
this.ucSampling4.Location = new System.Drawing.Point(74, 186);
this.ucSampling4.Name = "ucSampling4";
this.ucSampling4.SamplingImag = ((System.Drawing.Bitmap)(resources.GetObject("ucSampling4.SamplingImag")));
this.ucSampling4.Size = new System.Drawing.Size(350, 179);
this.ucSampling4.TabIndex = 1;
this.ucSampling4.Transparent = null;
//
// ucSampling2
//
this.ucSampling2.Alpha = 0;
this.ucSampling2.ColorThreshold = 0;
this.ucSampling2.Location = new System.Drawing.Point(769, 212);
this.ucSampling2.Name = "ucSampling2";
this.ucSampling2.SamplingImag = ((System.Drawing.Bitmap)(resources.GetObject("ucSampling2.SamplingImag")));
this.ucSampling2.Size = new System.Drawing.Size(128, 128);
this.ucSampling2.TabIndex = 1;
this.ucSampling2.Transparent = null;
//
// ucSampling3
//
this.ucSampling3.Alpha = 0;
this.ucSampling3.ColorThreshold = 0;
this.ucSampling3.Location = new System.Drawing.Point(862, 116);
this.ucSampling3.Name = "ucSampling3";
this.ucSampling3.SamplingImag = ((System.Drawing.Bitmap)(resources.GetObject("ucSampling3.SamplingImag")));
this.ucSampling3.Size = new System.Drawing.Size(128, 128);
this.ucSampling3.TabIndex = 1;
this.ucSampling3.Transparent = null;
//
// UCTestSampling
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.BackColor = System.Drawing.Color.White;
this.Controls.Add(this.label1);
this.Controls.Add(this.ucSampling6);
this.Controls.Add(this.ucSampling3);
this.Controls.Add(this.ucSampling2);
this.Controls.Add(this.ucSampling1);
this.Controls.Add(this.ucSampling5);
this.Controls.Add(this.ucSampling4);
this.Name = "UCTestSampling";
this.Size = new System.Drawing.Size(1010, 450);
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private HZH_Controls.Controls.UCSampling ucSampling4;
private HZH_Controls.Controls.UCSampling ucSampling5;
private HZH_Controls.Controls.UCSampling ucSampling6;
private System.Windows.Forms.Label label1;
private HZH_Controls.Controls.UCSampling ucSampling1;
private HZH_Controls.Controls.UCSampling ucSampling2;
private HZH_Controls.Controls.UCSampling ucSampling3;
}
}
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;
namespace Test.UC
{
public partial class UCTestSampling : UserControl
{
public UCTestSampling()
{
InitializeComponent();
}
}
}
此文件的差异太大,无法显示。
...@@ -12,6 +12,7 @@ using System.Drawing.Drawing2D; ...@@ -12,6 +12,7 @@ using System.Drawing.Drawing2D;
namespace Test.UC namespace Test.UC
{ {
[ToolboxItem(false)]
public partial class UCTestVerification : UserControl public partial class UCTestVerification : UserControl
{ {
public UCTestVerification() public UCTestVerification()
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!