예제 #1
0
        public void Run(IDizApplication.Args args)
        {
            // kick us off with the home screen, this will return immediately
            ControllersManager.ShowNewStartForm();

            // if we're automatically opening a previous project file, do it now.
            ProjectsManager.OpenProjectFile(args.FileToOpen);
        }
예제 #2
0
        private static IDizApplication.Args ParseArgs(IReadOnlyList <string> args)
        {
            var parsedArgs = new IDizApplication.Args();

            if (args.Count > 0)
            {
                parsedArgs.FileToOpen = args[0];
            }

            return(parsedArgs);
        }
예제 #3
0
        public DizApplicationContext(IDizApplication.Args args)
        {
            var app = Service.Container.GetInstance <IDizApplication>();

            app.Run(args);
        }