Commit 6b1f7ffe HZH

增加 资源加载窗体

1 个父辈 72914241
...@@ -59,7 +59,7 @@ namespace HZH_Controls.Controls ...@@ -59,7 +59,7 @@ namespace HZH_Controls.Controls
this.lblTitle.ImageAlign = System.Drawing.ContentAlignment.MiddleRight; this.lblTitle.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
this.lblTitle.Location = new System.Drawing.Point(1, 1); this.lblTitle.Location = new System.Drawing.Point(1, 1);
this.lblTitle.Name = "lblTitle"; this.lblTitle.Name = "lblTitle";
this.lblTitle.Size = new System.Drawing.Size(645, 34); this.lblTitle.Size = new System.Drawing.Size(392, 34);
this.lblTitle.TabIndex = 0; this.lblTitle.TabIndex = 0;
this.lblTitle.Text = "面板"; this.lblTitle.Text = "面板";
this.lblTitle.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.lblTitle.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
...@@ -77,7 +77,7 @@ namespace HZH_Controls.Controls ...@@ -77,7 +77,7 @@ namespace HZH_Controls.Controls
this.Name = "UCPanelTitle"; this.Name = "UCPanelTitle";
this.Padding = new System.Windows.Forms.Padding(1); this.Padding = new System.Windows.Forms.Padding(1);
this.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(77)))), ((int)(((byte)(59))))); this.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(77)))), ((int)(((byte)(59)))));
this.Size = new System.Drawing.Size(647, 171); this.Size = new System.Drawing.Size(394, 199);
this.SizeChanged += new System.EventHandler(this.UCPanelTitle_SizeChanged); this.SizeChanged += new System.EventHandler(this.UCPanelTitle_SizeChanged);
this.ResumeLayout(false); this.ResumeLayout(false);
......
namespace HZH_Controls.Forms
{
partial class FrmLoading
{
/// <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.SuspendLayout();
//
// FrmLoading
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.ClientSize = new System.Drawing.Size(396, 322);
this.IsFullSize = false;
this.Name = "FrmLoading";
this.Text = "FrmLoading";
this.Load += new System.EventHandler(this.FrmLoading_Load);
this.ResumeLayout(false);
}
#endregion
}
}
\ No newline at end of file \ No newline at end of file
// ***********************************************************************
// Assembly : HZH_Controls
// Created : 2019-09-26
//
// ***********************************************************************
// <copyright file="FrmLoading.cs">
// Copyright by Huang Zhenghui(黄正辉) All, QQ group:568015492 QQ:623128629 Email:623128629@qq.com
// </copyright>
//
// Blog: https://www.cnblogs.com/bfyx
// GitHub:https://github.com/kwwwvagaa/NetWinformControl
// gitee:https://gitee.com/kwwwvagaa/net_winform_custom_control.git
//
// If you use this code, please keep this note.
// ***********************************************************************
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading;
using System.Windows.Forms;
namespace HZH_Controls.Forms
{
/// <summary>
/// Class FrmLoading.
/// Implements the <see cref="HZH_Controls.Forms.FrmBase" />
/// </summary>
/// <seealso cref="HZH_Controls.Forms.FrmBase" />
public partial class FrmLoading : FrmBase
{
/// <summary>
/// The update database worker
/// </summary>
public BackgroundWorker updateDBWorker = new BackgroundWorker();
/// <summary>
/// 获取或设置加载任务
/// </summary>
/// <value>The background work action.</value>
public Action BackgroundWorkAction
{
get;
set;
}
/// <summary>
/// 设置当前执行进度及任务名称,key:任务进度,取值0-100 value:当前任务名称
/// </summary>
/// <value>The current MSG.</value>
public KeyValuePair<int, string> CurrentMsg
{
set
{
this.updateDBWorker.ReportProgress(value.Key, value.Value);
}
}
/// <summary>
/// Initializes a new instance of the <see cref="FrmLoading"/> class.
/// </summary>
public FrmLoading()
{
InitializeComponent();
this.updateDBWorker.WorkerReportsProgress = true;
this.updateDBWorker.WorkerSupportsCancellation = true;
this.updateDBWorker.DoWork += new DoWorkEventHandler(this.backgroundWorker1_DoWork);
this.updateDBWorker.ProgressChanged += new ProgressChangedEventHandler(this.backgroundWorker1_ProgressChanged);
}
/// <summary>
/// 设置进度信息,重写此函数可以处理界面信息绑定
/// </summary>
/// <param name="strText">进度任务名称</param>
/// <param name="intValue">进度值</param>
protected virtual void SetProcessMsg(string strText, int intValue)
{
}
/// <summary>
/// Sets the message.
/// </summary>
/// <param name="strText">The string text.</param>
/// <param name="intValue">The int value.</param>
private void SetMessage(string strText, int intValue)
{
if (this.InvokeRequired)
{
this.BeginInvoke(new MethodInvoker(delegate() { SetMessage(strText, intValue); }));
}
else
{
SetProcessMsg(strText, intValue);
}
}
/// <summary>
/// Handles the Load event of the FrmLoading control.
/// </summary>
/// <param name="sender">The source of the event.</param>
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
private void FrmLoading_Load(object sender, EventArgs e)
{
if (ControlHelper.IsDesignMode())
return;
this.updateDBWorker.RunWorkerAsync();
}
/// <summary>
/// Handles the DoWork event of the backgroundWorker1 control.
/// </summary>
/// <param name="sender">The source of the event.</param>
/// <param name="e">The <see cref="DoWorkEventArgs"/> instance containing the event data.</param>
private void backgroundWorker1_DoWork(object sender, DoWorkEventArgs e)
{
if (this.BackgroundWorkAction != null)
{
this.BackgroundWorkAction();
}
Thread.Sleep(100);
if (base.InvokeRequired)
{
base.BeginInvoke(new MethodInvoker(delegate
{
base.Close();
}));
}
else
{
base.Close();
}
}
/// <summary>
/// Handles the ProgressChanged event of the backgroundWorker1 control.
/// </summary>
/// <param name="sender">The source of the event.</param>
/// <param name="e">The <see cref="ProgressChangedEventArgs"/> instance containing the event data.</param>
private void backgroundWorker1_ProgressChanged(object sender, ProgressChangedEventArgs e)
{
SetMessage((e.UserState == null) ? "" : e.UserState.ToString(), e.ProgressPercentage);
}
}
}
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>
\ No newline at end of file \ No newline at end of file
...@@ -71,6 +71,12 @@ ...@@ -71,6 +71,12 @@
<Compile Include="Controls\ScrollBar\UCHScrollbar.cs"> <Compile Include="Controls\ScrollBar\UCHScrollbar.cs">
<SubType>UserControl</SubType> <SubType>UserControl</SubType>
</Compile> </Compile>
<Compile Include="Forms\FrmLoading.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Forms\FrmLoading.Designer.cs">
<DependentUpon>FrmLoading.cs</DependentUpon>
</Compile>
<Compile Include="Helpers\GraphDirection.cs" /> <Compile Include="Helpers\GraphDirection.cs" />
<Compile Include="Controls\Charts\BarChart\UCBarChart.cs"> <Compile Include="Controls\Charts\BarChart\UCBarChart.cs">
<SubType>UserControl</SubType> <SubType>UserControl</SubType>
...@@ -720,6 +726,9 @@ ...@@ -720,6 +726,9 @@
<EmbeddedResource Include="Forms\FrmBack.resx"> <EmbeddedResource Include="Forms\FrmBack.resx">
<DependentUpon>FrmBack.cs</DependentUpon> <DependentUpon>FrmBack.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
<EmbeddedResource Include="Forms\FrmLoading.resx">
<DependentUpon>FrmLoading.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Forms\FrmTips.resx"> <EmbeddedResource Include="Forms\FrmTips.resx">
<DependentUpon>FrmTips.cs</DependentUpon> <DependentUpon>FrmTips.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
......
...@@ -34,6 +34,7 @@ namespace Test ...@@ -34,6 +34,7 @@ namespace Test
tnForm.Nodes.Add("仅有标题的窗体"); tnForm.Nodes.Add("仅有标题的窗体");
tnForm.Nodes.Add("确定取消窗体1"); tnForm.Nodes.Add("确定取消窗体1");
tnForm.Nodes.Add("确定取消窗体2"); tnForm.Nodes.Add("确定取消窗体2");
tnForm.Nodes.Add("资源加载窗体");
this.tvMenu.Nodes.Add(tnForm); this.tvMenu.Nodes.Add(tnForm);
TreeNode tnControl = new TreeNode(" 控件"); TreeNode tnControl = new TreeNode(" 控件");
...@@ -138,6 +139,42 @@ namespace Test ...@@ -138,6 +139,42 @@ namespace Test
case "确定取消窗体2": case "确定取消窗体2":
new FrmOKCancel2Test().ShowDialog(this); new FrmOKCancel2Test().ShowDialog(this);
break; break;
case "资源加载窗体":
FrmTestLoading frmLoading = new FrmTestLoading();
frmLoading.BackgroundWorkAction = delegate()
{
try
{
frmLoading.CurrentMsg = new KeyValuePair<int, string>(1, "正在初始化配置...");
Thread.Sleep(1000);
frmLoading.CurrentMsg = new KeyValuePair<int, string>(10, "正在加载第一个资源...");
Thread.Sleep(1000);
frmLoading.CurrentMsg = new KeyValuePair<int, string>(20, "正在加载第二个资源...");
Thread.Sleep(1000);
frmLoading.CurrentMsg = new KeyValuePair<int, string>(30, "正在加载第三个资源...");
Thread.Sleep(1000);
frmLoading.CurrentMsg = new KeyValuePair<int, string>(40, "正在加载第四个资源...");
Thread.Sleep(1000);
frmLoading.CurrentMsg = new KeyValuePair<int, string>(50, "正在加载第五个资源...");
Thread.Sleep(1000);
frmLoading.CurrentMsg = new KeyValuePair<int, string>(60, "正在加载第六个资源...");
Thread.Sleep(1000);
frmLoading.CurrentMsg = new KeyValuePair<int, string>(70, "正在加载第七个资源...");
Thread.Sleep(1000);
frmLoading.CurrentMsg = new KeyValuePair<int, string>(80, "正在加载第八个资源...");
Thread.Sleep(1000);
frmLoading.CurrentMsg = new KeyValuePair<int, string>(90, "正在加载第九个资源...");
Thread.Sleep(1000);
frmLoading.CurrentMsg = new KeyValuePair<int, string>(1000, "数据加载完成...");
Thread.Sleep(1000);
}
catch (Exception ex)
{
MessageBox.Show("加载资源时出现错误");
}
};
frmLoading.ShowDialog();
break;
#endregion #endregion
#region 控件 English:control #region 控件 English:control
...@@ -212,7 +249,7 @@ namespace Test ...@@ -212,7 +249,7 @@ namespace Test
AddControl(new UC.UCTestMindMapping() { Dock = DockStyle.Fill }); AddControl(new UC.UCTestMindMapping() { Dock = DockStyle.Fill });
break; break;
case "柱状图": case "柱状图":
AddControl(new UC.UCTestBarcharts()); AddControl(new UC.UCTestBarcharts());
break; break;
case "饼状图": case "饼状图":
AddControl(new UC.UCTestPieCharts()); AddControl(new UC.UCTestPieCharts());
...@@ -250,7 +287,7 @@ namespace Test ...@@ -250,7 +287,7 @@ namespace Test
case "警示灯": case "警示灯":
AddControl(new UC.UCTestSignalLamp()); AddControl(new UC.UCTestSignalLamp());
break; break;
case "箭头": case "箭头":
AddControl(new UC.UCTestArrow()); AddControl(new UC.UCTestArrow());
break; break;
case "温度计": case "温度计":
......
namespace Test
{
partial class FrmTestLoading
{
/// <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.ucProcessLineExt1 = new HZH_Controls.Controls.UCProcessLineExt();
this.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.SuspendLayout();
//
// ucProcessLineExt1
//
this.ucProcessLineExt1.BackColor = System.Drawing.Color.Transparent;
this.ucProcessLineExt1.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(73)))), ((int)(((byte)(73)))), ((int)(((byte)(73)))));
this.ucProcessLineExt1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(77)))), ((int)(((byte)(59)))));
this.ucProcessLineExt1.Location = new System.Drawing.Point(27, 87);
this.ucProcessLineExt1.MaxValue = 100;
this.ucProcessLineExt1.Name = "ucProcessLineExt1";
this.ucProcessLineExt1.Size = new System.Drawing.Size(434, 50);
this.ucProcessLineExt1.TabIndex = 0;
this.ucProcessLineExt1.Value = 0;
this.ucProcessLineExt1.ValueBGColor = System.Drawing.Color.FromArgb(((int)(((byte)(73)))), ((int)(((byte)(73)))), ((int)(((byte)(73)))));
this.ucProcessLineExt1.ValueColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(77)))), ((int)(((byte)(59)))));
//
// label1
//
this.label1.Font = new System.Drawing.Font("微软雅黑", 12F);
this.label1.ForeColor = System.Drawing.Color.Silver;
this.label1.Location = new System.Drawing.Point(45, 140);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(397, 41);
this.label1.TabIndex = 1;
this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// label2
//
this.label2.Font = new System.Drawing.Font("微软雅黑", 15F);
this.label2.ForeColor = System.Drawing.Color.Silver;
this.label2.Location = new System.Drawing.Point(45, 9);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(397, 41);
this.label2.TabIndex = 1;
this.label2.Text = "模拟系统启动时资源加载";
this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// FrmTestLoading
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(34)))), ((int)(((byte)(34)))), ((int)(((byte)(34)))));
this.ClientSize = new System.Drawing.Size(489, 225);
this.Controls.Add(this.label2);
this.Controls.Add(this.label1);
this.Controls.Add(this.ucProcessLineExt1);
this.IsShowRegion = true;
this.Name = "FrmTestLoading";
this.Redraw = true;
this.Text = "FrmTestLoading";
this.ResumeLayout(false);
}
#endregion
private HZH_Controls.Controls.UCProcessLineExt ucProcessLineExt1;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label2;
}
}
\ No newline at end of file \ No newline at end of file
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using HZH_Controls.Forms;
namespace Test
{
public partial class FrmTestLoading : FrmLoading
{
public FrmTestLoading()
{
InitializeComponent();
}
protected override void SetProcessMsg(string strText, int intValue)
{
label1.Text = strText;
this.ucProcessLineExt1.Value = intValue;
}
}
}
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="updateDBWorker.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
</root>
\ No newline at end of file \ No newline at end of file
...@@ -71,6 +71,12 @@ ...@@ -71,6 +71,12 @@
<Compile Include="FrmTestFrmBack.Designer.cs"> <Compile Include="FrmTestFrmBack.Designer.cs">
<DependentUpon>FrmTestFrmBack.cs</DependentUpon> <DependentUpon>FrmTestFrmBack.cs</DependentUpon>
</Compile> </Compile>
<Compile Include="FrmTestLoading.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="FrmTestLoading.Designer.cs">
<DependentUpon>FrmTestLoading.cs</DependentUpon>
</Compile>
<Compile Include="FrmWithTitleTest.cs"> <Compile Include="FrmWithTitleTest.cs">
<SubType>Form</SubType> <SubType>Form</SubType>
</Compile> </Compile>
...@@ -308,6 +314,9 @@ ...@@ -308,6 +314,9 @@
<EmbeddedResource Include="FrmTestFrmBack.resx"> <EmbeddedResource Include="FrmTestFrmBack.resx">
<DependentUpon>FrmTestFrmBack.cs</DependentUpon> <DependentUpon>FrmTestFrmBack.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
<EmbeddedResource Include="FrmTestLoading.resx">
<DependentUpon>FrmTestLoading.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="FrmWithTitleTest.resx"> <EmbeddedResource Include="FrmWithTitleTest.resx">
<DependentUpon>FrmWithTitleTest.cs</DependentUpon> <DependentUpon>FrmWithTitleTest.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
......
...@@ -34,8 +34,6 @@ ...@@ -34,8 +34,6 @@
this.ucPanelTitle4 = new HZH_Controls.Controls.UCPanelTitle(); this.ucPanelTitle4 = new HZH_Controls.Controls.UCPanelTitle();
this.ucPanelTitle1 = new HZH_Controls.Controls.UCPanelTitle(); this.ucPanelTitle1 = new HZH_Controls.Controls.UCPanelTitle();
this.ucPanelTitle2 = new HZH_Controls.Controls.UCPanelTitle(); this.ucPanelTitle2 = new HZH_Controls.Controls.UCPanelTitle();
this.label1 = new System.Windows.Forms.Label();
this.ucPanelTitle3.SuspendLayout();
this.SuspendLayout(); this.SuspendLayout();
// //
// ucPanelTitle5 // ucPanelTitle5
...@@ -64,7 +62,6 @@ ...@@ -64,7 +62,6 @@
this.ucPanelTitle3.BackColor = System.Drawing.Color.White; this.ucPanelTitle3.BackColor = System.Drawing.Color.White;
this.ucPanelTitle3.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(150)))), ((int)(((byte)(136))))); this.ucPanelTitle3.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(150)))), ((int)(((byte)(136)))));
this.ucPanelTitle3.ConerRadius = 10; this.ucPanelTitle3.ConerRadius = 10;
this.ucPanelTitle3.Controls.Add(this.label1);
this.ucPanelTitle3.FillColor = System.Drawing.Color.White; this.ucPanelTitle3.FillColor = System.Drawing.Color.White;
this.ucPanelTitle3.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel); this.ucPanelTitle3.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
this.ucPanelTitle3.IsCanExpand = true; this.ucPanelTitle3.IsCanExpand = true;
...@@ -165,16 +162,6 @@ ...@@ -165,16 +162,6 @@
this.ucPanelTitle2.TabIndex = 2; this.ucPanelTitle2.TabIndex = 2;
this.ucPanelTitle2.Title = "不可折叠面板"; this.ucPanelTitle2.Title = "不可折叠面板";
// //
// label1
//
this.label1.Dock = System.Windows.Forms.DockStyle.Fill;
this.label1.ForeColor = System.Drawing.Color.Black;
this.label1.Location = new System.Drawing.Point(1, 35);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(314, 146);
this.label1.TabIndex = 1;
this.label1.Text = "1\r\n2\r\n3\r\n4\r\n5\r\n6\r\n7\r\n8\r\n9\r\n10";
//
// UCTestPanelTitle // UCTestPanelTitle
// //
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
...@@ -187,7 +174,6 @@ ...@@ -187,7 +174,6 @@
this.Controls.Add(this.ucPanelTitle2); this.Controls.Add(this.ucPanelTitle2);
this.Name = "UCTestPanelTitle"; this.Name = "UCTestPanelTitle";
this.Size = new System.Drawing.Size(833, 615); this.Size = new System.Drawing.Size(833, 615);
this.ucPanelTitle3.ResumeLayout(false);
this.ResumeLayout(false); this.ResumeLayout(false);
} }
...@@ -200,6 +186,5 @@ ...@@ -200,6 +186,5 @@
private HZH_Controls.Controls.UCPanelTitle ucPanelTitle3; private HZH_Controls.Controls.UCPanelTitle ucPanelTitle3;
private HZH_Controls.Controls.UCPanelTitle ucPanelTitle4; private HZH_Controls.Controls.UCPanelTitle ucPanelTitle4;
private HZH_Controls.Controls.UCPanelTitle ucPanelTitle5; private HZH_Controls.Controls.UCPanelTitle ucPanelTitle5;
private System.Windows.Forms.Label label1;
} }
} }
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!