Exemplo n.º 1
0
        static void Main(string[] args)
        {
            StructureMap.ObjectFactory.Initialize(x =>
            {
                x.AddRegistry(new DependencyRegistry());
                x.AddRegistry(new UI.DependencyRegistry());
                x.AddRegistry(new Service.DependencyRegistry());
            });

            Presenter      = IoC.Resolve <IToolPathGeneratorPresenter>();
            Presenter.View = IoC.Resolve <IToolPathGeneratorView>();

            Presenter.View.FileName = args.Length > 0 ? args[0] : null;
            Presenter.CreateGCodeFromStlFile();
        }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            StructureMap.ObjectFactory.Initialize(x =>
                                                      {
                                                          x.AddRegistry(new DependencyRegistry());
                                                          x.AddRegistry(new UI.DependencyRegistry());
                                                          x.AddRegistry(new Service.DependencyRegistry());
                                                      });

            Presenter = IoC.Resolve<IToolPathGeneratorPresenter>();
            Presenter.View = IoC.Resolve<IToolPathGeneratorView>();

            Presenter.View.FileName = args.Length > 0 ? args[0] : null;
            Presenter.CreateGCodeFromStlFile();
        }