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,11 +1,13 @@
<Project Sdk="Microsoft.NET.Sdk"> <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup> <PropertyGroup>
<OutputType>Exe</OutputType> <OutputType>WinExe</OutputType>
<TargetFramework>net472</TargetFramework> <TargetFramework>net472</TargetFramework>
<UseWindowsForms>true</UseWindowsForms> <UseWindowsForms>true</UseWindowsForms>
<StartupObject></StartupObject>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
@@ -54,7 +56,7 @@
<Compile Update="FrmUserControl\frmIOMonitorAuto.cs"> <Compile Update="FrmUserControl\frmIOMonitorAuto.cs">
<SubType>UserControl</SubType> <SubType>UserControl</SubType>
</Compile> </Compile>
<Compile Update="FrmUserControl\frmMainDetailNew.cs"> <Compile Update="FrmUserControl\frmMainDetail.cs">
<SubType>UserControl</SubType> <SubType>UserControl</SubType>
</Compile> </Compile>
<Compile Update="FrmUserControl\frmDayReport.cs" /> <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"> <resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader> </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> </root>

View File

@@ -117,10 +117,4 @@
<resheader name="writer"> <resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader> </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> </root>

View File

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