Пример #1
0
 public void SaveToRegistry()
 {
     SaveValueToRegistry("Dir", Dir);
     SaveValueToRegistry("IncludeSubDirectories", IncludeSubDirectories.ToString());
     SaveValueToRegistry("FileMask", FileMask);
     SaveValueToRegistry("ExcludeFileMask", ExcludeFileMask);
     SaveValueToRegistry("FindText", FindText);
     SaveValueToRegistry("IsCaseSensitive", IsCaseSensitive.ToString());
     SaveValueToRegistry("IsRegEx", IsRegEx.ToString());
     SaveValueToRegistry("SkipBinaryFileDetection", SkipBinaryFileDetection.ToString());
     SaveValueToRegistry("ShowEncoding", ShowEncoding.ToString());
     SaveValueToRegistry("IncludeFilesWithoutMatches", IncludeFilesWithoutMatches.ToString());
     SaveValueToRegistry("ReplaceText", ReplaceText);
     SaveValueToRegistry("UseEscapeChars", UseEscapeChars.ToString());
     SaveValueToRegistry("Encoding", Encoding);
 }
Пример #2
0
        protected override void RegisterSystemObjectMaps(ServerProcess process)
        {
            base.RegisterSystemObjectMaps(process);

            // Perform system type and operator mapping registration
            var resourceManager = new ResourceManager("SystemCatalog", GetType().Assembly);

#if USEISTRING
            RunScript(AProcess, String.Format(resourceManager.GetString("SystemObjectMaps"), Name, IsCaseSensitive.ToString().ToLower()));
#else
            using (Stream stream = GetType().Assembly.GetManifestResourceStream("SystemCatalog.d4"))
            {
                RunScript(process, String.Format(new StreamReader(stream).ReadToEnd(), Name, "false"));
            }
            //RunScript(AProcess, String.Format(LResourceManager.GetString("SystemObjectMaps"), Name, "false"));
#endif
        }
Пример #3
0
        protected override void RegisterSystemObjectMaps(ServerProcess process)
        {
            base.RegisterSystemObjectMaps(process);

            // Perform system type and operator mapping registration
            using (Stream stream = GetType().Assembly.GetManifestResourceStream("SystemCatalog.d4"))
            {
#if USEISTRING
                RunScript(AProcess, String.Format(new StreamReader(stream).ReadToEnd(), Name, IsCaseSensitive.ToString().ToLower(), IsMSSQL70.ToString().ToLower(), IsAccess.ToString().ToLower()));
#else
                RunScript(process,
                          String.Format(new StreamReader(stream).ReadToEnd(), Name, "false",
                                        IsMSSQL70.ToString().ToLower(), IsAccess.ToString().ToLower()));
#endif
            }
        }
Пример #4
0
        protected override void RegisterSystemObjectMaps(ServerProcess AProcess)
        {
            base.RegisterSystemObjectMaps(AProcess);

            // Perform system scalar type and operator mapping registration
            ResourceManager LResourceManager = new ResourceManager("SystemCatalog", GetType().Assembly);

                        #if USEISTRING
            RunScript(AProcess, String.Format(LResourceManager.GetString("SystemObjectMaps"), Name, IsCaseSensitive.ToString().ToLower()));
                        #else
            using (Stream LStream = GetType().Assembly.GetManifestResourceStream("SystemCatalog.d4"))
            {
                RunScript(AProcess, String.Format(new StreamReader(LStream).ReadToEnd(), Name, "false", (FProduct == DB2.DB2TextEmitter.ISeries).ToString().ToLower()));
            }
                        #endif
        }
Пример #5
0
        protected override void RegisterSystemObjectMaps(ServerProcess AProcess)
        {
            base.RegisterSystemObjectMaps(AProcess);

            // Perform system type and operator mapping registration
            ResourceManager LResourceManager = new ResourceManager("SystemCatalog", typeof(SASDevice).Assembly);

                        #if USEISTRING
            RunScript(AProcess, String.Format(LResourceManager.GetString("SystemObjectMaps"), Name, IsCaseSensitive.ToString().ToLower()));
                        #else
            RunScript(AProcess, String.Format(LResourceManager.GetString("SystemObjectMaps"), Name, "false"));
                        #endif
        }