1
This commit is contained in:
@@ -411,6 +411,10 @@
|
||||
<Compile Include="frmMainNew.Designer.cs">
|
||||
<DependentUpon>frmMainNew.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Utils\KeyboardTextBox.cs" />
|
||||
<Compile Include="Utils\KeyboardTextBox.Designer.cs">
|
||||
<DependentUpon>KeyboardTextBox.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Utils\PlcOperationHelper.cs" />
|
||||
<Compile Include="Program.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
|
||||
36
CleanMachineHMI/Utils/KeyboardTextBox.Designer.cs
generated
Normal file
36
CleanMachineHMI/Utils/KeyboardTextBox.Designer.cs
generated
Normal file
@@ -0,0 +1,36 @@
|
||||
namespace CleanMachineHMI.Utils
|
||||
{
|
||||
partial class KeyboardTextBox
|
||||
{
|
||||
/// <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()
|
||||
{
|
||||
components = new System.ComponentModel.Container();
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
41
CleanMachineHMI/Utils/KeyboardTextBox.cs
Normal file
41
CleanMachineHMI/Utils/KeyboardTextBox.cs
Normal file
@@ -0,0 +1,41 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace CleanMachineHMI.Utils
|
||||
{
|
||||
public partial class KeyboardTextBox : Krypton.Toolkit.KryptonTextBox
|
||||
{
|
||||
public KeyboardTextBox()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
protected override void OnPaint(PaintEventArgs pe)
|
||||
{
|
||||
base.OnPaint(pe);
|
||||
}
|
||||
|
||||
protected override void OnGotFocus(EventArgs e)
|
||||
{
|
||||
|
||||
base.OnGotFocus(e);
|
||||
KeyboardAutoPopUp.ShowInputPanel();
|
||||
}
|
||||
|
||||
protected override void OnLostFocus(EventArgs e)
|
||||
{
|
||||
|
||||
base.OnLostFocus(e);
|
||||
KeyboardAutoPopUp.HideInputPanel();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -18,13 +18,14 @@ using System.Windows.Forms;
|
||||
|
||||
namespace CleanMachineHMI
|
||||
{
|
||||
[FormType(EnumFormType.IoMonitor)]
|
||||
public partial class frmIOMonitor_Old : KryptonForm
|
||||
{
|
||||
public frmIOMonitor_Old()
|
||||
{
|
||||
InitializeComponent();
|
||||
_InfoLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode, "Label");
|
||||
//InitControl();
|
||||
InitControl();
|
||||
}
|
||||
/// <summary>
|
||||
/// 页面信息语言文本列表
|
||||
@@ -44,7 +45,7 @@ namespace CleanMachineHMI
|
||||
{
|
||||
try
|
||||
{
|
||||
InitControl();
|
||||
//InitControl();
|
||||
Thread th1 = new Thread(ReFreshControl_Y);
|
||||
th1.IsBackground = true;
|
||||
th1.Start();
|
||||
|
||||
Reference in New Issue
Block a user