Beispiel #1
0
        internal static void StartCoreServices()
        {
            frmSplashScreen.PrintStatus("Starting core services...");

            Assembly exe = PragmaSQLApp.ApplicationProxy;

            FileUtility.ApplicationRootPath = Path.GetDirectoryName(exe.Location);

            Core = new CoreStartup("PragmaSQL");

            // Specify the name of the application settings file (.xml is automatically appended)
            Core.PropertiesName = "AppProperties";

            // Initializes the Core services (ResourceService, PropertyService, etc.)
            Core.StartCoreServices();

            PragmaSQLApp.RegisterApplicationResources();

            //ResourceService.RegisterNeutralStrings(new ResourceManager("PragmaSQL.StringResources", exe));
            //ResourceService.RegisterNeutralImages(new ResourceManager("PragmaSQL.ImageResources", exe));

            // Registeres the default (English) strings and images. They are compiled as
            // Localized strings are automatically picked up when they are put into the
            // "data/resources" directory.
        }
Beispiel #2
0
        private static void InitializeGoldParserEngine()
        {
            if (_tokenizer != null)
            {
                _tokenizer = null;
            }

            Stream    file   = PragmaSQLApp.GetCompiledSqlGrammarStream();
            CGTReader reader = new CGTReader(file);

            _tokenizer = reader.CreateNewTokenizer();
        }