private bool ChangeDns() { SetIpAddress setIp = new SetIpAddress(); if ((isInputIpOk(this.mainDns, rexType.ipAddr)) && (isInputIpOk(this.subDns, rexType.ipAddr))) { setIp.setDns(this.mainDns, this.subDns); return true; } else return false; }
private bool ChangeAddress() { SetIpAddress setIp = new SetIpAddress(); if ((isInputIpOk(this.ipAddress, rexType.ipAddr)) && (isInputIpOk(this.subnetMask, rexType.ipAddr)) && (isInputIpOk(this.gatewayAddress, rexType.ipAddr))) { setIp.setAddress(this.ipAddress, this.subnetMask, this.gatewayAddress); return true; } else return false; }
//hostname변경부, 첫 호스트네임과 다를경우에만 변경 private bool ChangeHostName() { SetIpAddress changeHostname = new SetIpAddress(); if (String.CompareOrdinal(this.firstHostName, this.hostName) != 0) { changeHostname.setHostName(this.hostName); ShutDownexe(); return true; } else { return false; } }