public void Run() { var ryu = new RyuFactory().Create(); ryu.Touch<ItzWartyCommonsRyuPackage>(); ryu.Setup(); AssertTrue(ryu.Get<ICollectionFactory>() is CollectionFactory); AssertTrue(ryu.Get<ObjectPoolFactory>() is DefaultObjectPoolFactory); }
public static void Main() { var ryu = new RyuFactory().Create(); ryu.Touch<ItzWartyCommonsRyuPackage>(); ryu.Touch<ItzWartyProxiesRyuPackage>(); ryu.Setup(); var application = Application.Current ?? new Application(); var projectLoader = new RiotProjectLoader(@"T:\Games\LeagueOfLegends\RADS"); var gameProject = projectLoader.LoadProject(RiotProjectType.GameClient); var nodeViewModelFactory = ryu.Get<NodeViewModelFactory>(); var viewModel = nodeViewModelFactory.CreateFromNode(gameProject.ReleaseManifest.Root); var window = new FileExplorer { DataContext = new[] { viewModel } }; application.Run(window); }