PageSystemParameterSet.cs 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. using System.Windows.Forms;
  10. using HZY.Framework.DependencyInjection;
  11. using Sunny.UI;
  12. namespace Scada.Page
  13. {
  14. public partial class PageSystemParameterSet : UIPage, ISingletonSelfDependency
  15. {
  16. public PageSystemParameterSet()
  17. {
  18. InitializeComponent();
  19. this.Load += PageSystemParameterSet_Load;
  20. }
  21. private void PageSystemParameterSet_Load(object sender, EventArgs e)
  22. {
  23. InitSystemParameter();
  24. }
  25. private void InitSystemParameter()
  26. {
  27. this.txt_plcConfig.Text = Globals.PlcVarConfigPath;
  28. this.txt_ConnectTimeOut.Text = Globals.ConnectTimeOut.ToString();
  29. this.txt_ReadTimeInterval.Text = Globals.ReadTimeInterval.ToString();
  30. this.txt_ReConnectTimeInterval.Text = Globals.ReConnectTimeInterval.ToString();
  31. this.txt_IPAddress.Text = Globals.IpAddress;
  32. this.txt_Port.Text = Globals.Port.ToString();
  33. this.cb_CPUType.Text = Globals.CpuType.ToString();
  34. this.txt_Slot.Text = Globals.Slot.ToString();
  35. this.txt_Rack.Text = Globals.Rack.ToString();
  36. }
  37. }
  38. }