private static void Main(string[] args) { MUI.Utils.DependencyMapper.Map(); //typeof(Indexing.Indexer).GetType(); var uiContext = new UIContext(600, 300); uiContext.RunOneFrame(); var container = new Container() .Register <ResourceManager, ResourceManager>(c => uiContext.ResourceManager) .Register(uiContext) .Register <UI, UI>() ; container.LoadPlugins("".FromAppRoot()); SettingsRoot.Instance.Initialize(container); RegisterServices(container); // TODO: Remove (pries cache) //container.Resolve<Indexing.Indexer>().Query("conemu"); uiContext.PushUI(container.Resolve <UI>()); using (uiContext) uiContext.Run(); //SettingsRoot.Instance.Save(); }