Ejemplo n.º 1
0
        static void Main()
        {
            BasicEngineeringInitializer initializer =
                new BasicEngineeringInitializer(OrdinaryDifferentialEquations.Runge4Solver.Singleton,
                                                DataPerformer.Portable.DifferentialEquationProcessors.RungeProcessor.Processor,
                                                DataPerformer.Runtime.DataRuntimeFactory.Object, new Diagram.UI.Interfaces.IApplicationInitializer[]
            {
                Event.Basic.ApplicationInitializer.Singleton
            },
                                                true);

            initializer.InitializeApplication();
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new FormMain());
        }
Ejemplo n.º 2
0
        private static void Initialize(OrdinaryDifferentialEquations.IDifferentialEquationSolver ordSolver,
                                       IDataRuntimeFactory strategy, IDatabaseCoordinator coordinator, IApplicationInitializer[] initializers,
                                       bool throwsRepeatException)
        {
            List <IApplicationInitializer> init = null;

            if (initializers == null)
            {
                init = new List <IApplicationInitializer>();
            }
            else
            {
                init = new List <IApplicationInitializer>(initializers);
            }
            IApplicationInitializer initializer = new BasicEngineeringInitializer(ordSolver,
                                                                                  DataPerformer.Portable.DifferentialEquationProcessors.RungeProcessor.Processor, strategy, init.ToArray(),
                                                                                  throwsRepeatException);

            initializer.InitializeApplication();
        }
Ejemplo n.º 3
0
        public App()
        {
            Internet.Meteo.StaticExtensionMeteo.Init();
            Http.Meteo.StaticExtensionMeteo.Init();
            StaticExtensionEventBasic.Init();
            BasicEngineeringInitializer initializer =
                new BasicEngineeringInitializer(OrdinaryDifferentialEquations.Runge4Solver.Singleton,
                                                RungeProcessor.Processor,
                                                global::Motion6D.Runtime.DataRuntimeFactory.Object,
                                                new Diagram.UI.Interfaces.IApplicationInitializer[]
            {
                ApplicationInitializer.Singleton,
                global::Motion6D.ApplicationInitializer.Object
            }, true);

            initializer.InitializeApplication();
            StaticExtensionEventInterfaces.TimerEventFactory = WpfTimerEventFactory.Singleton;
            StaticExtensionEventInterfaces.TimerFactory      = WpfTimerFactory.Singleton;
            StaticExtensionScadaDesktop.ScadaFactory         = StaticExtensionScadaDesktopSerializable.BaseFactory;
            StaticExtensionDiagramUISerializable.Init();
            SoundService.StaticExtensionSoundService.SoundDirectory =
                AppDomain.CurrentDomain.BaseDirectory + "sounds" +
                System.IO.Path.DirectorySeparatorChar;
        }