private static void SwitchAndInit(IShopDescriptor shop) { Control.LogDebug(DInfo.TabSwitch, $"- fill shop"); if (shop == null) { return; } if (shop is IDefaultShop def_shop) { Control.LogDebug(DInfo.TabSwitch, $"-- IDefaultShop"); ShopScreen.ChangeToBuy(def_shop.ShopToUse, true); } else if (shop is IListShop l_shop) { ShopHelper.ChangeToBuy(l_shop, true); } }