| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Security.Cryptography; |
| | | using HDL_ON.DAL.Server; |
| | | using HDL_ON.DriverLayer; |
| | | using HDL_ON.Entity; |
| | |
| | | Height = Application.GetRealWidth(57), |
| | | }; |
| | | functionView.AddChidren(btnJMLogo); |
| | | |
| | | |
| | | |
| | | if (item == ShowFunction.Acst) |
| | | { |
| | | btnName.TextID = StringId.Acst; |
| | | try |
| | | { |
| | | var acstFunction = FunctionList.List.GetAcstParentList()[0]; |
| | | btnName.Text = acstFunction.name; |
| | | if (acstFunction.extend.Contains("jinmao") && acstFunction.extend.Contains("true")) |
| | | { |
| | | btnJMLogo.Visible = true; |
| | | } |
| | | else |
| | | { |
| | | btnJMLogo.Visible = false; |
| | | } |
| | | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | MainPage.Log("Error", $"加载金茂科技系统主控名称异常:{ex.Message}"); |
| | | } |
| | | btnFunctionViewBg.MouseUpEventHandler = (sender, e) => |
| | | { |
| | | var page = new AcstParentPage(); |
| | |
| | | else if (item == ShowFunction.InverterJinmao) |
| | | { |
| | | btnName.TextID = StringId.NewEnergy; |
| | | try |
| | | { |
| | | var jinmaoInverterFunction = FunctionList.List.GetInverterJinmaoList()[0]; |
| | | btnName.Text = jinmaoInverterFunction.name; |
| | | if (jinmaoInverterFunction.extend.Contains("jinmao") && jinmaoInverterFunction.extend.Contains("true")) |
| | | { |
| | | btnJMLogo.Visible = true; |
| | | } |
| | | else |
| | | { |
| | | btnJMLogo.Visible = false; |
| | | } |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | MainPage.Log("Error", $"加载金茂储能名称异常:{ex.Message}"); |
| | | } |
| | | btnFunctionViewBg.MouseUpEventHandler = (sender, e) => |
| | | { |
| | | var page = new InverterJinmaoPage(); |