Esempio n. 1
0
 public static void PDTEst()
 {
     SecureDBEntities1 db=new SecureDBEntities1();
     tblPDConfig config= db.tblPDConfig.Where(n => n.PDName == "PD-T78-W-22.0").FirstOrDefault();
     PD.PD pd = new PD.PD("PD-T78-W-22.0", config.IP, 502,config);
     while (true)
     {
         Console.WriteLine(pd.ToString());
         System.Threading.Thread.Sleep(1000);
     }
 }