Program.cs 486 B

12345678910111213141516171819202122232425
  1. using System;
  2. namespace EBRDemo
  3. {
  4. internal abstract class Program
  5. {
  6. static void Main(string[] args)
  7. {
  8. StartScada();
  9. }
  10. //启动SCADA
  11. private static void StartScada()
  12. {
  13. try
  14. {
  15. var gDdz = new SCADA();
  16. gDdz.AddItems();
  17. }
  18. catch
  19. {
  20. Console.WriteLine("OPC server is not connected");
  21. }
  22. }
  23. }
  24. }