Пример #1
0
        public Com_XmlDocumentParser()
            : base("1.5", "XmlDocumentParser")
        {
            Settings = new Com_XmlDocumentParser_Configuration();

            Settings.GeneralConfigDirectory     = "config";
            Settings.DefaultConfigDirectory     = "default";
            Settings.ApplicationConfigDirectory = string.Empty;
            Settings.DocumentVersion            = base.Version;
            Settings.CheckForDocumentVersion    = false;
            //cfgDir = "config";
            //cfgDefDir = "default";
            //cfgAppDir = string.Empty;
            Commnets = new HashObject.Com_HashObject();
        }
Пример #2
0
        private static void CustomConfigurationSettingsContext(Com_XmlDocumentParser_Configuration Settings)
        {
            /* general app configuration */
            Settings.DocumentVersion = new Version(System.Windows.Forms.Application.ProductVersion);
            Settings.ConfigDirectoryPathGeneral = System.Windows.Forms.Application.StartupPath + "\\config";
            Settings.ConfigDirectoryNameDefault = string.Empty;//.Format("v.{0}.{1}", _cfg.ApplicationVersion.Major, _cfg.ApplicationVersion.Minor);
            Settings.ConfigDirectoryNameApplication = "myapp_1";// string.Empty;//.Format("v.{0}.{1}", _cfg.ApplicationVersion.Major, _cfg.ApplicationVersion.Minor);
            Settings.UseVersionForConfiguration = true;
            Settings.TrackVersionConfiguration = true;
            Settings.MergeData = false;

            /* profiles */
            if (components.Components.ArgumentParser.Com_ArgumentParser.Arguments.ContainsKey("-p"))
                Settings.ConfigDirectoryNameApplication = components.Components.ArgumentParser.Com_ArgumentParser.Arguments["-p"].ToString();
        }
        public Com_XmlDocumentParser()
            : base("1.5", "XmlDocumentParser")
        {
            Settings = new Com_XmlDocumentParser_Configuration();

            Settings.GeneralConfigDirectory = "config";
            Settings.DefaultConfigDirectory = "default";
            Settings.ApplicationConfigDirectory = string.Empty;
            Settings.DocumentVersion = base.Version;
            Settings.CheckForDocumentVersion = false;
            //cfgDir = "config";
            //cfgDefDir = "default";
            //cfgAppDir = string.Empty;
            Commnets = new HashObject.Com_HashObject();
        }
        public Com_XmlDocumentParser()
            : base("1.6.1", "XmlDocumentParser")
        {
            Settings = new Com_XmlDocumentParser_Configuration();

            Settings.ConfigDirectoryPathGeneral     = "config";
            Settings.ConfigDirectoryNameDefault     = "default";
            Settings.ConfigDirectoryNameApplication = string.Empty;
            Settings.DocumentVersion           = base.Version;
            Settings.CheckForDocumentVersion   = false;
            Settings.TrackVersionConfiguration = true;

            //cfgDir = "config";
            //cfgDefDir = "default";
            //cfgAppDir = string.Empty;
            Commnets       = new HashObject.Com_HashObject();
            docSectionPath = new Stack <string>();
            sectionParents = new Dictionary <string, string>();
        }
        public Com_XmlDocumentParser()
            : base("1.6.1", "XmlDocumentParser")
        {
            Settings = new Com_XmlDocumentParser_Configuration();

            Settings.ConfigDirectoryPathGeneral = "config";
            Settings.ConfigDirectoryNameDefault = "default";
            Settings.ConfigDirectoryNameApplication = string.Empty;
            Settings.DocumentVersion = base.Version;
            Settings.CheckForDocumentVersion = false;
            Settings.TrackVersionConfiguration = true;

            //cfgDir = "config";
            //cfgDefDir = "default";
            //cfgAppDir = string.Empty;
            Commnets = new HashObject.Com_HashObject();
            docSectionPath = new Stack<string>();
            sectionParents = new Dictionary<string, string>();
        }
Пример #6
0
        private static void CustomConfigurationSettingsContext(Com_XmlDocumentParser_Configuration Settings)
        {
            // from prev
            //  axCfg = ApplicationConfiguration. ("display", @"default/config", (ApplicationName == "" ? "" : ApplicationName + @"/config"), (Program.ApplicationName != string.Empty));

            /* general app configuration */
            Settings.DocumentVersion = new Version(System.Windows.Forms.Application.ProductVersion);
            Settings.ConfigDirectoryPathGeneral = "display";
            Settings.ConfigDirectoryNameDefault = @"default/config";//.Format("v.{0}.{1}", _cfg.ApplicationVersion.Major, _cfg.ApplicationVersion.Minor);
            Settings.ConfigDirectoryNameApplication = string.Empty;// string.Empty;//.Format("v.{0}.{1}", _cfg.ApplicationVersion.Major, _cfg.ApplicationVersion.Minor);
            Settings.UseVersionForConfiguration = false;
            Settings.TrackVersionConfiguration = false;
            Settings.MergeData = false;

            /* profiles */
            if (components.Components.ArgumentParser.Com_ArgumentParser.Arguments.ContainsKey("-p"))
                Settings.ConfigDirectoryNameApplication = components.Components.ArgumentParser.Com_ArgumentParser.Arguments["-p"].ToString();

            if (Settings.ConfigDirectoryNameApplication.Length != 0)
                Settings.ConfigDirectoryNameApplication += @"/config";
        }