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); } }
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); } }