private static void PrimeCaches(Toolkit?tk, IReadOnlyZetboxContext ctx) { if (_pmdCache == null) { _pmdCache = new ViewModelDescriptorCache(ctx); } if (tk.HasValue && !_viewCaches.ContainsKey(tk.Value)) { _viewCaches[tk.Value] = ViewDescriptorToolkitCache.Content.CreateCache(tk.Value, ctx); } }
private static void PrimeCaches(Toolkit? tk, IReadOnlyZetboxContext ctx) { if (_pmdCache == null) { _pmdCache = new ViewModelDescriptorCache(ctx); } if (tk.HasValue && !_viewCaches.ContainsKey(tk.Value)) { _viewCaches[tk.Value] = ViewDescriptorToolkitCache.Content.CreateCache(tk.Value, ctx); } }