This commit is contained in:
gongxh
2022-05-05 09:15:42 +08:00
49 changed files with 6288 additions and 697 deletions

View File

@@ -26,7 +26,6 @@ namespace CleanMachineHMI
public frmMainNew()
{
InitializeComponent();
_InfoLanguageTextList = this.GetInfoLanguageText_1(GlobalHelper.LanguageCode, "Info%");
}
#region 全局变量
@@ -62,8 +61,9 @@ namespace CleanMachineHMI
if (isDefaultPage)
{
kryptonNavigator1.Pages[0].Controls.Clear();
kryptonNavigator1.Pages[0].Text = enumFormType.ToString();
//kryptonNavigator1.Pages[0].Text = enumFormType.ToString();
kryptonNavigator1.Pages[0].Name = enumFormType.ToString();
this.SetSingleControlText(kryptonNavigator1.Pages[0]);
kryptonNavigator1.SelectedPage = kryptonNavigator1.Pages[0];
if (frmType.BaseType.Name == "UserControl")
{
@@ -93,6 +93,7 @@ namespace CleanMachineHMI
else
{
KryptonPage tmpPage1 = new KryptonPage { Text = enumFormType.ToString(), Name = enumFormType.ToString() };
this.SetSingleControlText(tmpPage1);
ButtonSpecAny bsa = new ButtonSpecAny();
bsa.Style = PaletteButtonStyle.FormClose;
bsa.Type = PaletteButtonSpecStyle.FormClose;
@@ -145,7 +146,7 @@ namespace CleanMachineHMI
{
try
{
this.SetFormControlText(GlobalHelper.LanguageCode);
this.SetFormControlText();
SwitchFrmMenu = new dlgSwitchFrmMenu(AddFrmMenuPage);
string sql1 = $@" SELECT * FROM BAS_PLC_ITEM ";
@@ -186,7 +187,7 @@ namespace CleanMachineHMI
bool isInitStatus = PlcOperationHelper.Instance.PlcInit();
if (isInitStatus)
{
label3Professional.Text = _InfoLanguageTextList.GetInfoText_1("串口打开成功,PLC连接成功!", "label3Professional", "Info_Success");
label3Professional.Text = this.GetInfoText("串口打开成功,PLC连接成功!", "label3Professional_Success");
label3Professional.BackColor = Color.Lime;
isPlcConnStatus = true;
@@ -233,7 +234,7 @@ namespace CleanMachineHMI
else
{
//label3Professional.Text = "串口打开失败,PLC连接失败!";
label3Professional.Text = _InfoLanguageTextList.GetInfoText_1("串口打开失败,PLC连接失败!", "label3Professional", "Info_Failed");
label3Professional.Text = this.GetInfoText("串口打开失败,PLC连接失败!", "label3Professional_Failed");
label3Professional.BackColor = Color.Red;
isPlcConnStatus = false;