static LuadicrousApplication() { ApplicationDirectory = new DirectoryInfo(Environment.CurrentDirectory); DirectoryInfo bin = new DirectoryInfo(GetDirectory("./bin/")); Debug.Assert(bin.Exists, "Could not find /bin/ directory."); var controlFactory = new ControlFactory(bin.EnumerateFiles("*.dll").Select(file => Assembly.LoadFrom(file.FullName))); ViewFactory = new ViewFactory(controlFactory); SourceManager = new SourceManager(); SourceManager.LoadAssets(ApplicationDirectory); }