void AddDevice_Execute(object parameters) { if (this.ValidateIPAddress(this.IPAddress)) { _hasValidationErrors = true; return; } _hasValidationErrors = false; this.Devices.Add(new Device() { Name = this.Name, IPAddress = this.IPAddress }); ConfigFileManager.AddDevice(this.IPAddress, this.Name); this.Name = string.Empty; this.IPAddress = string.Empty; }