/// <summary> /// Method for checking if all values given by the user are correct /// </summary> /// <returns> /// Are all settings correct /// </returns> private Boolean CheckValues() { if (String.IsNullOrEmpty(PACName)) { return(false); } if (PortNumber <= 0) { return(false); } if (!Simulator.CheckNewPortNumberAndUnitId(PortNumber, UnitId)) { return(false); } if (NominalCurrent <= 0) { return(false); } if (NominalPowerFactor <= 0) { return(false); } return(true); }