Пример #1
0
 public bool ConnectionFromAddress1()
 {
     try
     {
         return(PowerControlAddress1.Connection(Z119.ATK.Common.Const.Address1)); // Nguồn 1 có hai Range đều sử dụng Chanel1
     }
     catch (Exception)
     {
         return(false);
     }
 }
Пример #2
0
 public bool ConnectionFromAddress1()
 {
     try
     {
         if (PowerControlAddress1.Connection(Z119.ATK.Common.Const.PowerAddress1)) // Nguồn 1 có hai Range đều sử dụng Chanel1
         {
             Z119.ATK.Common.Const.isPower1On = true;
             return(true);
         }
         else
         {
             Z119.ATK.Common.Const.isPower1On = false;
             return(false);
         }
     }
     catch (Exception)
     {
         return(false);
     }
 }