private void InitInterface() { if (_interface == null) { _interface = new Interface(); _interface.Ports = new List<Port>(); } }