public static void Initialize() // First function to be called after OS gave control (and before GUI loads) { SetDependencies(); // Initializing DI PersistenceHelper.InitPersistenceOnStartup(DependencyInjector.GetService <IDatabaseService>(), DependencyInjector.GetService <IFileService>()); // Initializing data, and setting up database if not present already }