public static void Install(Setup obj) { switch (obj.Mode) { case "new": DB_Setup.DropDatabase(obj.Database); DB_Setup.CreateDatabase(obj.Database); screenText = "Installed database " + obj.Database; Processing(null, null); CoreSetup.Install(obj); ErpSetup.Install(obj); BillSetup.Entries(obj); //CxAccounts(obj); screenText = "Installed Setup Success " + obj.Database; Processing(null, null); break; } }
public MealybugTestCase(string testName, CoreSetup setup, string romEmbedPath, string expectEmbedPath) { TestName = testName; Setup = setup; RomEmbedPath = romEmbedPath; ExpectEmbedPath = expectEmbedPath; }
// // This method is invoked when the application has loaded and is ready to run. In this // method you should instantiate the window, load the UI into it and then make the window // visible. // // You have 17 seconds to return from this method, or iOS will terminate your application. // public override bool FinishedLaunching(UIApplication app, NSDictionary options) { global::Xamarin.Forms.Forms.Init(); CoreSetup.SetupContainer(new Setup()); //AppContainer.Container.Resolve<IDatabase>().Initialize(); LoadApplication(new Core.App()); return(base.FinishedLaunching(app, options)); }
public override void OnCreate() { base.OnCreate(); AndroidEnvironment.UnhandledExceptionRaiser += HandleAndroidException; //AppDomain.CurrentDomain.UnhandledException += (sender, args) => { }; CoreSetup.SetupContainer(new Setup()); AppContainer.Container.Resolve <IDatabase>().Initialize(); #if !DEBUG MobileCenter.Start(config.MobileCenterKey, typeof(Analytics), typeof(Crashes)); #endif }
public static void Initialize() { var builder = new ContainerBuilder(); builder.RegisterInstance(new DbLocation()) .As <IDbLocation>(); CoreSetup.Init(builder); Container = builder.Build(); }
public void CanCreateEncoderCore() { var setup = new CoreSetup(); setup.Disable(ComponentSlots.All); setup.Enable(ComponentSlots.Configuration); setup.Enable(ComponentSlots.Logger); using (var core = new Core(setup)) { core.Load(); core.Initialize(); } }
private void Start() { CoreSetup cs = new CoreSetup(); frmMainLog("Starting Up..."); if (cs.FirtsRun()) { FirstRunSetup(); } else { StandardRun(); } }
public override void OnCreate() { base.OnCreate(); RegisterActivityLifecycleCallbacks(this); AndroidEnvironment.UnhandledExceptionRaiser += HandleAndroidException; //AppDomain.CurrentDomain.UnhandledException += (sender, args) => { }; CoreSetup.SetupContainer(new Setup()); AppContainer.Container.Resolve <IDatabase>().Initialize(); #if !DEBUG //MobileCenter.Start("e3bb5908-01c3-4286-811f-b07537a6a632", typeof(Analytics), typeof(Crashes)); #endif }
public IEnumerable <object?[]> GetData(MethodInfo methodInfo) { List <AcidTestCase> testCases = new(); foreach (var setup in CoreSetup.ValidSetupsFor(ConsoleVariant.CGB_C)) { testCases.Add(new("cgb-acid-hell", setup)); testCases.Add(new("cgb-acid2", setup)); testCases.Add(new("dmg-acid2", setup)); } foreach (var setup in CoreSetup.ValidSetupsFor(ConsoleVariant.DMG)) { testCases.Add(new("dmg-acid2", setup)); } // testCases.RemoveAll(static testCase => testCase.Setup.Variant is not ConsoleVariant.DMG); // uncomment and modify to run a subset of the test cases... testCases.RemoveAll(static testCase => TestUtils.ShouldIgnoreCase(SUITE_ID, testCase.DisplayName())); // ...or use the global blocklist in TestUtils
// properties *are* initialized within the constructor. However by a method call, which is not correctly recognized by the code analyzer yet. #pragma warning disable CS8618 // warning about uninitialized non-nullable properties public MainViewModel(IViewProvider viewProvider) #pragma warning restore CS8618 { var pathResolver = new PathResolver(); _fileWatch = new FileWatchDistributedNotificationReceiver(pathResolver); _trayIcon = new TrayIconHandle(); _trayIcon.ExitRequested += TrayIconOnExitRequested; _trayIcon.ShowWindowRequested += TrayIconOnShowWindowRequested; var dispatcher = new WpfDispatcher(); _coreSetup = new CoreSetup(pathResolver, _fileWatch, dispatcher); _coreSetup.PipelineUpdated += CoreSetup_PipelineUpdated; _coreSetup.DistributedNotificationReceived += CoreSetup_DistributedNotificationReceived; _configurationApplication = new ConfigurationApplication(_coreSetup.Configuration); _configurationApplication.ApplyChanges(); GlobalErrorLogTarget.ErrorOccured += GlobalErrorLog_ErrorOccurred; _popupService = new PopupService(this, viewProvider); _windowSettings = new WindowSettings(pathResolver.WindowSettingsFilePath); _updateUrls = new UpdateUrls(); Initialize(); }
public MainViewModel() { _coreSetup = new CoreSetup(ConfigFilePath); Initialize(); }