private static UserPresetsControl GetInstance(string key) { WeakReference<UserPresetsControl> r; UserPresetsControl c; return Instances.TryGetValue(key, out r) && r.TryGetTarget(out c) ? c : null; }