private void RefreshInventory()
        {
            LinearLayout layout = FindViewById <LinearLayout>(Resource.Id.InventoryList);

            layout.RemoveAllViews();

            YAPI.UpdateDeviceList();
            YModule module = YModule.FirstModule();

            while (module != null)
            {
                string   line = module.SerialNumber + " (" + module.ProductName + ")";
                TextView tx   = new TextView(this);
                tx.Text = line;
                layout.AddView(tx);
                module = module.NextModule();
            }
        }