using System;
using System.Collections.Generic;
using NodeNetwork.ViewModels;
using NodeNetwork.Views;
using ReactiveUI;
using Splat;
namespace NodeNetwork
{
///
/// A locator is used to find the correct view corresponding to a viewmodel.
/// In ReactiveUI, usually Splat is used, but others exist. This class acts as an intermediate registrar.
/// It gathers registrations and registers them to the preferred locator.
///
public sealed class NNViewRegistrar
{
private static readonly List, Type>> PendingRegistrations = new List, Type>>();
private static Action, Type> _registerAction;
public static void AddRegistration(Func