示例#1
0
        public MainWindow()
        {
            InitializeComponent();
            var t = new AmoebaDBContext().GetType().Assembly;
            var x = new EFEntity <IEntity>().GetType().Assembly;
            var d = new NHDBContext();

            BootStrapper.BootStrapper.Instance.StartUp(d, t, x);
        }
        public void LoadIEntity()
        {
            var t  = new AmoebaDBContext().GetType().Assembly;
            var x1 = new EFEntity().GetType().Assembly;
            var d  = new NHDBContext();

            BootStrapper.BootStrapper.Instance.StartUp(d, t, x1);
            EventMessageBus.Current.GetEvent <EntitySetLoaded <IEntities> >(msgSource).Subscribe(x => handleEntitiesLoaded(x.Entities));
            EventMessageBus.Current.Publish(new LoadEntitySet <IEntities>(msgSource), msgSource);
        }
示例#3
0
        public MainWindow()
        {
            InitializeComponent();
            if (File.Exists("MRManager-Logs.xml"))
            {
                File.Delete("MRManager-Logs.xml");
            }
            Logger.Initialize();

            Logger.Log(LoggingLevel.Info, $"The UI Thread is:{Application.Current.Dispatcher.Thread.ManagedThreadId}");

            Task.Run(() =>
            {
                var dbContextAssembly = new AmoebaDBContext().GetType().Assembly;
                var entitiesAssembly  = new EFEntity <IEntity>().GetType().Assembly;
                BootStrapper.BootStrapper.Instance.StartUp(true, Process.WorkFlow.MachineInfoData.MachineInfos, Process.WorkFlow.Processes.ProcessInfos, Process.WorkFlow.Processes.ProcessComplexEvents, ViewModel.WorkFlow.ProcessViewModels.ProcessViewModelInfos.Skip(1).ToList(), dbContextAssembly, entitiesAssembly);
            }).ConfigureAwait(false);
        }