Program.cs 494 B

12345678910111213141516171819202122232425
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace EBRDemo
  7. {
  8. class Program
  9. {
  10. static void Main(string[] args)
  11. {
  12. try
  13. {
  14. SCADA gDDZ = new SCADA();
  15. gDDZ.AddItems();
  16. }
  17. catch
  18. {
  19. Console.WriteLine("OPC server is not connected");
  20. }
  21. Console.ReadKey();
  22. }
  23. }
  24. }