Merge branch 'dev_plus' of http://10.0.0.94:10080/nx.wms/CleanMachine into dev_plus

This commit is contained in:
dev
2022-05-24 09:58:15 +08:00
9 changed files with 2367 additions and 2344 deletions

View File

@@ -1,10 +1,12 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<OutputType>WinExe</OutputType>
<TargetFramework>net472</TargetFramework>
<UseWindowsForms>true</UseWindowsForms>
<StartupObject></StartupObject>
</PropertyGroup>
@@ -54,7 +56,7 @@
<Compile Update="FrmUserControl\frmIOMonitorAuto.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Update="FrmUserControl\frmMainDetailNew.cs">
<Compile Update="FrmUserControl\frmMainDetail.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Update="FrmUserControl\frmDayReport.cs" />

Binary file not shown.

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -117,4 +117,10 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="kryptonContextMenu1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<metadata name="contextMenuStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>202, 17</value>
</metadata>
</root>

View File

@@ -117,10 +117,4 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="kryptonContextMenu1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<metadata name="contextMenuStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>202, 17</value>
</metadata>
</root>

View File

@@ -185,22 +185,29 @@ namespace CleanMachineHMI.Utils
public static void SetSingleControlText(this Control form, Control control)
{
#if RELEASE
try
{
var key = form.Name + "|" + control.Name;
if (!Global.ThemeLanguage.ContainsKey(key))
{
control.Text = control.Name;
}
AddzhCN(key, control.Text, "");
#endif
var key = form.Name + "|" + control.Name;
if (!Global.ThemeLanguage.ContainsKey(key))
{
control.Text = control.Name;
}
else
{
control.Text = Global.ThemeLanguage[key];
}
AddzhCN(key, control.Text, "");
#if RELEASE
}
catch (Exception ex)
{
LogHelper.WriteLog(ex.Message, LogTypeEum.Err);
}
#endif
}
/// <summary>