public void UpdateState(NetworkConfiguratorUserInterfaceState state) { DeviceCountLabel.Text = Loc.GetString("network-configurator-ui-count-label", ("count", state.DeviceList.Count)); DeviceList.RemoveAllChildren(); foreach (var savedDevice in state.DeviceList) { DeviceList.AddChild(BuildDeviceListRow(savedDevice)); } }