static void Main(string[] args)
        {
            AppDomain.CurrentDomain.AssemblyResolve += Resolver;
            InitializeCefSharp();
            XWebViewThreadSync.Init(new CefSharpThreadSyncInvoker());
            var cmds = new CmdSwitcher();

            cmds.PushCmdInStack(new TestCmdLine());
            cmds.ExecuteStartup(args);
            cmds.RunDefault();
        }
Ejemplo n.º 2
0
        static void Main(string[] args)
        {
            var appDir           = Assembly.GetExecutingAssembly().Location;
            var assemblyFileName = Path.GetFileName(appDir);

            appDir = appDir.Remove(appDir.Length - assemblyFileName.Length);
            StorageHardDrive.InitDependencies(
                new JsonLocalStorage(
                    Path.Combine(appDir, "storage.json")
                    )
                );

            //Простейшая консоль с командами из методов классса.
            CmdLineExtension.Init(new DefaultConsoleHandler());
            var cmds = new CmdSwitcher();

            cmds.PushCmdInStack(new CmdLineFacade());
            cmds.ExecuteStartup(args);
            cmds.RunDefault();
        }