public XmlOldDb()
        {
            configElement = new SelfManagedXmlElement("Database");
            configElement.ClearAllChildren = true;
            rootElement.AddChild(configElement);

            enabledElement = new BooleanXmlElement("IsEnabled", true);
            configElement.AddChild(enabledElement);

            databaseServerNameElement = new StringXmlElement("DatabaseServerName", string.Empty);
            configElement.AddChild(databaseServerNameElement);

            databaseNameElement = new StringXmlElement("DatabaseName", string.Empty);
            configElement.AddChild(databaseNameElement);

            portElement = new IntegerXmlElement("Port", 1521);
            configElement.AddChild(portElement);

            userIdElement = new StringXmlElement("UserId", string.Empty);
            configElement.AddChild(userIdElement);

            passwordElement = new StringXmlElement("Password", string.Empty);
            configElement.AddChild(passwordElement);

            useTrakLotElement = new BooleanXmlElement("UseTrakLotId", true);
            configElement.AddChild(useTrakLotElement);
        }
        public XmlOldGpib()
        {
            xmlNode = new SelfManagedXmlElement("GPIB");

            systemControllerElement = new BooleanXmlElement("SystemController", true);
            xmlNode.AddChild(systemControllerElement);

            boardIndexElement = new IntegerXmlElement("BoardIndex", 0);
            xmlNode.AddChild(boardIndexElement);

            boardPrimaryAddressElement = new IntegerXmlElement("BoardPrimaryAddress", 0);
            xmlNode.AddChild(boardPrimaryAddressElement);

            boardSecondaryAddressElement = new IntegerXmlElement("BoardSecondaryAddress", 0); // 0 is NONE
            xmlNode.AddChild(boardSecondaryAddressElement);

            devicePrimaryAddressElement = new IntegerXmlElement("DevicePrimaryAddress", 1);
            xmlNode.AddChild(devicePrimaryAddressElement);

            deviceSecondaryAddressElement = new IntegerXmlElement("DeviceSecondaryAddress", 0); // 0 is NONE
            xmlNode.AddChild(deviceSecondaryAddressElement);

            isEoiElement = new BooleanXmlElement("IsEOI", true);
            xmlNode.AddChild(isEoiElement);

            isEosElement = new BooleanXmlElement("IsEOS", false);
            xmlNode.AddChild(isEosElement);

            eightBitEosElement = new BooleanXmlElement("EightBitEOS", false);
            xmlNode.AddChild(eightBitEosElement);

            eosCharElement = new IntegerXmlElement("EowChar", 0);
            xmlNode.AddChild(eosCharElement);
        }
        public XmlConfig()
            : base("localSetting")
        {
            mapperIdElement = new StringXmlElement("MapperId", string.Empty);
            rootElement.AddChild(mapperIdElement);

            proberIdElement = new StringXmlElement("ProberId", string.Empty);
            rootElement.AddChild(proberIdElement);

            testerIdElement = new StringXmlElement("TesterId", string.Empty);
            rootElement.AddChild(testerIdElement);

            newConfigEnabledElement = new BooleanXmlElement("NewConfigEnabled", false);
            rootElement.AddChild(newConfigEnabledElement);

            wsConfigEnabledElement = new BooleanXmlElement("WsConfigEnabled", false);
            rootElement.AddChild(wsConfigEnabledElement);

            wsTimeoutSecondsElement = new IntegerXmlElement("WsTimeoutSeconds", 60);
            wsTimeoutSecondsElement.KeepSync = false;
            rootElement.AddChild(wsTimeoutSecondsElement);

            wsAddressListElement = new StringListXmlElement("WsAddressList");
            rootElement.AddChild(wsAddressListElement);

            wsOnlineCheckTimeoutSecondsElement = new IntegerXmlElement("WsOnlineCheckTimeoutSeconds", 3);
            wsOnlineCheckTimeoutSecondsElement.KeepSync = false;
            rootElement.AddChild(wsOnlineCheckTimeoutSecondsElement);
        }
        public XmlOldVirtualTester()
        {
            testerElement = new SelfManagedXmlElement("Tester");
            rootElement.AddChild(testerElement);

            testersElement = new SelfManagedXmlElement("Testers");
            testerElement.AddChild(testersElement);

            vtElement = new SelfManagedXmlElement("Virtual");
            vtElement.ClearAllChildren = true;
            testersElement.AddChild(vtElement);

            connectElement = new IntegerXmlElement("ConnectDelay", 0);
            vtElement.AddChild(connectElement);

            disconnectElement = new IntegerXmlElement("DisconnectDelay", 0);
            vtElement.AddChild(disconnectElement);

            initElement = new IntegerXmlElement("InitDelay", 1000);
            vtElement.AddChild(initElement);

            startLotElement = new IntegerXmlElement("StartLotDelay", 2000);
            vtElement.AddChild(startLotElement);

            endLotElement = new IntegerXmlElement("EndLotDelay", 0);
            vtElement.AddChild(endLotElement);

            startWaferElement = new IntegerXmlElement("StartWaferDelay", 100);
            vtElement.AddChild(startWaferElement);

            endWaferElement = new IntegerXmlElement("EndWaferDelay", 100);
            vtElement.AddChild(endWaferElement);

            probeDieElement = new IntegerXmlElement("ProbeDieDelay", 1);
            vtElement.AddChild(probeDieElement);

            probeDieFinishedElement = new IntegerXmlElement("ProbeDieFinishedDelay", 0);
            vtElement.AddChild(probeDieFinishedElement);

            getTestProgramNameElement = new IntegerXmlElement("GetTestProgramNameDelay", 0);
            vtElement.AddChild(getTestProgramNameElement);

            getTemperatureElement = new IntegerXmlElement("GetTemperatureDelay", 0);
            vtElement.AddChild(getTemperatureElement);

            isRandomElement = new BooleanXmlElement("IsRandom", true);
            vtElement.AddChild(isRandomElement);

            yieldElement = new IntegerXmlElement("Yield", 100);
            vtElement.AddChild(yieldElement);

            isGrowingElement = new BooleanXmlElement("IsGrowing", false);
            vtElement.AddChild(isGrowingElement);

            inputWmxmlPathElement = new StringXmlElement("InputWmxmlPath", "C:\\Mapper\\VirtualTester\\InputMaps");
            vtElement.AddChild(inputWmxmlPathElement);
        }
        public XmlOldLotSearch()
        {
            configElement = new SelfManagedXmlElement("LotSearch");
            configElement.ClearAllChildren = true;
            rootElement.AddChild(configElement);

            useLimitedLotSearchElement = new BooleanXmlElement("UseLimitedLotSearch", false);
            configElement.AddChild(useLimitedLotSearchElement);

            daysBackwardElement = new IntegerXmlElement("SearchLotsNotOlderThan", 365);
            configElement.AddChild(daysBackwardElement);
        }
        public XmlOldCutOff()
        {
            configElement = new SelfManagedXmlElement("CutOff");
            configElement.ClearAllChildren = true;
            rootElement.AddChild(configElement);

            enableCutOffElement = new BooleanXmlElement("EnableCutOff", false);
            configElement.AddChild(enableCutOffElement);

            enableCutOffNotReachedElement = new BooleanXmlElement("EnableCutOffNotReached", false);
            configElement.AddChild(enableCutOffNotReachedElement);
        }
        public XmlOldCustomScripts()
        {
            configElement = new SelfManagedXmlElement("CustomScripts");
            configElement.ClearAllChildren = true;
            rootElement.AddChild(configElement);

            enabledElement = new BooleanXmlElement("Enabled", false);
            configElement.AddChild(enabledElement);

            customScriptsElement = new CustomScriptsXmlElement("Scripts");
            configElement.AddChild(customScriptsElement);
        }
        public XmlOldMapEdit()
        {
            configElement = new SelfManagedXmlElement("MapEdit");
            configElement.ClearAllChildren = true;
            rootElement.AddChild(configElement);

            enableMapEdit = new BooleanXmlElement("EnableMapEdit", false);
            configElement.AddChild(enableMapEdit);

            replaceBinElement = new IntegerXmlElement("ReplaceBin", 100);
            configElement.AddChild(replaceBinElement);
        }
        public XmlOldIncompleteProbe()
        {
            configElement = new SelfManagedXmlElement("IncompleteProbe");
            configElement.ClearAllChildren = true;
            rootElement.AddChild(configElement);

            _enabledElement = new BooleanXmlElement("Enabled", false);
            configElement.AddChild(_enabledElement);

            _autoCompleteElement = new BooleanXmlElement("AutoComplete", false);
            configElement.AddChild(_autoCompleteElement);
        }
        public XmlOldTester()
        {
            configElement = new SelfManagedXmlElement("Tester");
            rootElement.AddChild(configElement);

            activeTesterElement = new StringXmlElement("ActiveTester", string.Empty);
            configElement.AddChild(activeTesterElement);

            testerTimeoutElement = new IntegerXmlElement("TesterTimeout", 30);
            configElement.AddChild(testerTimeoutElement);

            simulatorEnabledElement = new BooleanXmlElement("TesterSimulatorEnabled", false);
            configElement.AddChild(simulatorEnabledElement);
        }
        public XmlOldFpMethods()
        {
            configElement = new SelfManagedXmlElement("FpMethods");
            configElement.ClearAllChildren = true;
            rootElement.AddChild(configElement);

            enabledElement = new BooleanXmlElement("Enabled", false);
            configElement.AddChild(enabledElement);

            startProcessMethodsElement = new StartProcessMethodsXmlElement("StartProcessMethods");
            configElement.AddChild(startProcessMethodsElement);

            endProcessMethodsElement = new EndProcessMethodsXmlElement("EndProcessMethods");
            configElement.AddChild(endProcessMethodsElement);
        }
        public XmlOldKelvinDie()
        {
            configElement = new SelfManagedXmlElement("KelvinDie");
            configElement.ClearAllChildren = true;
            rootElement.AddChild(configElement);

            enabledElement = new BooleanXmlElement("Enable", false);
            configElement.AddChild(enabledElement);

            kelvinDieBinsElement = new StringXmlElement("KelvinDieBins", "22");
            configElement.AddChild(kelvinDieBinsElement);

            reprobeFirstElement = new BooleanXmlElement("ReprobeFirst", false);
            configElement.AddChild(reprobeFirstElement);
        }
        public XmlOldGenesis()
        {
            configElement = new SelfManagedXmlElement("Genesis");
            configElement.ClearAllChildren = true;
            rootElement.AddChild(configElement);

            enabledElement = new BooleanXmlElement("CheckinThroughGenesis", false);
            configElement.AddChild(enabledElement);

            linkQueryElement = new StringXmlElement("LinkQuery", string.Empty);
            configElement.AddChild(linkQueryElement);

            timeoutElement = new IntegerXmlElement("Timeout", 100);
            configElement.AddChild(timeoutElement);
        }
        public XmlOldReprobe()
        {
            configElement = new SelfManagedXmlElement("Reprobe");
            configElement.ClearAllChildren = true;
            rootElement.AddChild(configElement);

            enabledElement = new BooleanXmlElement("Enabled", false);
            configElement.AddChild(enabledElement);

            numberOfReprobesElement = new IntegerXmlElement("AutomaticReprobeNumberOfReprobes", 1);
            configElement.AddChild(numberOfReprobesElement);

            reprobeOnTheFlyElement = new BooleanXmlElement("ReprobeOnTheFly", false);
            configElement.AddChild(reprobeOnTheFlyElement);
        }
        public XmlOldMethods()
        {
            configElement = new SelfManagedXmlElement("ProcessMethods");
            configElement.ClearAllChildren = true;
            rootElement.AddChild(configElement);

            _isNeverTouchOutsideWafer = new BooleanXmlElement("SupNeverTouchOutsideWafer", true);
            configElement.AddChild(_isNeverTouchOutsideWafer);

            _maxTouchdownsOnDie = new IntegerXmlElement("SupMaxTouchdownsOnDie", 3);
            configElement.AddChild(_maxTouchdownsOnDie);

            _isAutoSpToUpElement = new BooleanXmlElement("IsAutoSpToUp", false);
            configElement.AddChild(_isAutoSpToUpElement);

            _isEpWaferElement = new BooleanXmlElement("IsEdgeProbeWafer", false);
            configElement.AddChild(_isEpWaferElement);

            _isEpPcMarkElement = new BooleanXmlElement("IsEdgeProbePcMark", false);
            configElement.AddChild(_isEpPcMarkElement);

            _sspModeElement = new EnumXmlElement<SmartSamplingMode>("SmartSamplingMode", SmartSamplingMode.Standard);
            configElement.AddChild(_sspModeElement);

            _isSspSingleFirstRowElement = new BooleanXmlElement("IsSspSingleFirstRow", false);
            configElement.AddChild(_isSspSingleFirstRowElement);

            _isCpSingleChessboardElement = new BooleanXmlElement("IsCpSingleChessboard", false);
            configElement.AddChild(_isCpSingleChessboardElement);

            _isSspSingleChessboardElement = new BooleanXmlElement("IsSspSingleChessboard", false);
            configElement.AddChild(_isSspSingleChessboardElement);

            _isSspMultiFirstRowElement = new BooleanXmlElement("IsSspMultiFirstRow", true);
            configElement.AddChild(_isSspMultiFirstRowElement);

            _isCpMultiChessboardElement = new BooleanXmlElement("IsCpMultiChessboard", false);
            configElement.AddChild(_isCpMultiChessboardElement);

            _isSspMultiChessboardElement = new BooleanXmlElement("IsSspMultiChessboard", false);
            configElement.AddChild(_isSspMultiChessboardElement);

            _isAoiGoodDieCounterElement = new BooleanXmlElement("IsAoiGoodDieCounter", false);
            configElement.AddChild(_isAoiGoodDieCounterElement);
        }
        public XmlOldConsecutiveFail()
        {
            configElement = new SelfManagedXmlElement("ConsecutiveFail");
            configElement.ClearAllChildren = true;
            rootElement.AddChild(configElement);

            enabledElement = new BooleanXmlElement("Enabled", false);
            configElement.AddChild(enabledElement);

            limitElement = new IntegerXmlElement("Limit", 5);
            configElement.AddChild(limitElement);

            resetCounterElement = new BooleanXmlElement("ResetCounterOnEachRow", false);
            configElement.AddChild(resetCounterElement);

            customRulesElement = new CustomRulesXmlElement("CustomRules");
            configElement.AddChild(customRulesElement);
        }
        public XmlOldEg2001()
        {
            proberElement = new SelfManagedXmlElement("Prober");
            rootElement.AddChild(proberElement);

            probersElement = new SelfManagedXmlElement("Probers");
            proberElement.AddChild(probersElement);

            egElement = new SelfManagedXmlElement("EG2001");
            egElement.ClearAllChildren = true;
            probersElement.AddChild(egElement);

            serialElement = new XmlOldSerial();
            egElement.AddChild(serialElement.XmlNode);

            enableManualMicroCoordsChangeElement = new BooleanXmlElement("EnableManualMicroCoordsChange", false);
            egElement.AddChild(enableManualMicroCoordsChangeElement);
        }
        public XmlOldFet()
        {
            testerElement = new SelfManagedXmlElement("Tester");
            rootElement.AddChild(testerElement);

            testersElement = new SelfManagedXmlElement("Testers");
            testerElement.AddChild(testersElement);

            fetElement = new SelfManagedXmlElement("FetTtl");
            testersElement.AddChild(fetElement);

            boardNoElement = new IntegerXmlElement("BoardNo", 0);
            fetElement.AddChild(boardNoElement);

            enableSendingXyCoordsElement = new BooleanXmlElement("EnableSendingXYCoordinates", true);
            fetElement.AddChild(enableSendingXyCoordsElement);

            gpibElement = new XmlOldGpib();
            fetElement.AddChild(gpibElement.XmlNode);
        }
        public XmlOldEagle()
        {
            testerElement = new SelfManagedXmlElement("Tester");
            rootElement.AddChild(testerElement);

            testersElement = new SelfManagedXmlElement("Testers");
            testerElement.AddChild(testersElement);

            eagleElement = new SelfManagedXmlElement("Eagle");
            testersElement.AddChild(eagleElement);

            communicationTypeElement = new EnumXmlElement<EagleCommunicationType>("CommunicationType", EagleCommunicationType.Serial);
            eagleElement.AddChild(communicationTypeElement);

            commandSetElement = new EnumXmlElement<EagleCommandSet>("CommandSet", EagleCommandSet.ElectroglasEnhancedMode);
            eagleElement.AddChild(commandSetElement);

            proberIdElement = new StringXmlElement("ProberId", "2001X.EC.249799-121");
            eagleElement.AddChild(proberIdElement);

            serialElement = new XmlOldSerial();
            eagleElement.AddChild(serialElement.XmlNode);

            gpibElement = new XmlOldGpib();
            eagleElement.AddChild(gpibElement.XmlNode);

            tcpIpElement = new XmlOldTcpIp();
            eagleElement.AddChild(tcpIpElement.XmlNode);

            SelfManagedXmlElement newtonElement = new SelfManagedXmlElement("Newton");
            eagleElement.AddChild(newtonElement);

            newtonEnableElement = new BooleanXmlElement("EnableNewton", false);
            newtonElement.AddChild(newtonEnableElement);

            newtonSerialElement = new XmlOldSerial();
            newtonElement.AddChild(newtonSerialElement.XmlNode);

            newtonFileElement = new StringXmlElement("NewtonFile", "");
            newtonElement.AddChild(newtonFileElement);
        }
        public XmlOldNewton()
        {
            configElement = new SelfManagedXmlElement("Newton");
            configElement.ClearAllChildren = true;
            rootElement.AddChild(configElement);

            enabledElement = new BooleanXmlElement("Enabled", false);
            configElement.AddChild(enabledElement);

            newtonFileElement = new StringXmlElement("NewtonPath", "C:\\Mapper\\Gatekeeper\\NewtUtils.bat");
            configElement.AddChild(newtonFileElement);

            newtonMapDirElement = new StringXmlElement("NewtonMapPath", "C:\\Mapper\\Gatekeeper\\Maps");
            configElement.AddChild(newtonMapDirElement);

            statusFileElement = new StringXmlElement("StatusFile", "C:\\Mapper\\Gatekeeper\\Status.txt");
            configElement.AddChild(statusFileElement);

            timeoutElement = new IntegerXmlElement("NewtonTimeout", 600);
            configElement.AddChild(timeoutElement);
        }
        public XmlOldRtm()
        {
            configElement = new SelfManagedXmlElement("Rtm");
            configElement.ClearAllChildren = true;
            rootElement.AddChild(configElement);

            enabledElement = new BooleanXmlElement("Enabled", false);
            configElement.AddChild(enabledElement);

            rtmDirElement = new StringXmlElement("RtmDir", "C:\\Mapper\\Program");
            configElement.AddChild(rtmDirElement);

            agentNameElement = new StringXmlElement("AgentName", "FileWatcher");
            configElement.AddChild(agentNameElement);

            agentCmdElement = new StringXmlElement("AgentCmd", "C:\\Mapper\\Program\\FileWatcher.exe");
            configElement.AddChild(agentCmdElement);

            watchPeriodElement = new IntegerXmlElement("WatchPeriod", 0);
            configElement.AddChild(watchPeriodElement);
        }
        public XmlOldLaserscribe()
        {
            configElement = new SelfManagedXmlElement("Laserscribe");
            configElement.ClearAllChildren = true;
            rootElement.AddChild(configElement);

            enabledElement = new BooleanXmlElement("OcrEnabled", false);
            configElement.AddChild(enabledElement);

            laserscribeFormatsElement = new LaserscribeFormatsXmlElement("LaserscribeFormats");
            configElement.AddChild(laserscribeFormatsElement);

            laserscribeMatchingEnabledElement = new BooleanXmlElement("LaserscribeMatchingEnabled", false);
            configElement.AddChild(laserscribeMatchingEnabledElement);

            lotsWithLaserscribesInDbElement = new LotFiltersXmlElement("LotsWithLaserscribesInDb");
            configElement.AddChild(lotsWithLaserscribesInDbElement);

            usingLaserscribeFromDBElement = new BooleanXmlElement("UsingLasersribeFromDB", false);
            configElement.AddChild(usingLaserscribeFromDBElement);
        }
        public XmlOldProbeInTemp()
        {
            configElement = new SelfManagedXmlElement("ProbeInTemperatures");
            configElement.ClearAllChildren = true;
            rootElement.AddChild(configElement);

            askForTemperatureElement = new BooleanXmlElement("AskForTemperature", false);
            configElement.AddChild(askForTemperatureElement);

            defaultTemperatureElement = new DoubleXmlElement("DefaultTemperature", 25);
            configElement.AddChild(defaultTemperatureElement);

            probeInTemperaturesElement = new BooleanXmlElement("ProbeInTemperatures", false);
            configElement.AddChild(probeInTemperaturesElement);

            engineerModeElement = new BooleanXmlElement("EngineerMode", false);
            configElement.AddChild(engineerModeElement);

            replaceBinElement = new IntegerXmlElement("ReplaceBin", 100);
            configElement.AddChild(replaceBinElement);
        }
        public XmlOldGeneral()
        {
            configElement = new SelfManagedXmlElement("General");
            configElement.ClearAllChildren = true;
            rootElement.AddChild(configElement);

            loginEnabledElement = new BooleanXmlElement("EnableLogin", true);
            configElement.AddChild(loginEnabledElement);

            systemTypeElement = new EnumXmlElement<SystemType>("SystemType", SystemType.Prober);
            configElement.AddChild(systemTypeElement);

            logLevelElement = new EnumXmlElement<LogLevel>("LogLevel", LogLevel.Info);
            configElement.AddChild(logLevelElement);

            longPauseEnabledElement = new BooleanXmlElement("EnableLongPause", true);
            configElement.AddChild(longPauseEnabledElement);

            longPauseDelayTimeElement = new IntegerXmlElement("DelayTime", 600);
            configElement.AddChild(longPauseDelayTimeElement);

            towerLightEnabledElement = new BooleanXmlElement("EnableTowerLight", false);
            configElement.AddChild(towerLightEnabledElement);

            towerLightPortElement = new IntegerXmlElement("TowerLightPortAddress", 0x378);
            configElement.AddChild(towerLightPortElement);

            alwaysSaveWaferMapsElement = new BooleanXmlElement("AlwaysSaveWaferMaps", false);
            configElement.AddChild(alwaysSaveWaferMapsElement);

            errorDialogContinueEnabledElement = new BooleanXmlElement("ErrorDialogContinueEnabled", false);
            configElement.AddChild(errorDialogContinueEnabledElement);

            pauseDialogAfterWaferEnabledElement = new BooleanXmlElement("PauseDialogAfterWaferEnabled", true);
            configElement.AddChild(pauseDialogAfterWaferEnabledElement);

            pauseDialogAfterWaferAutoReleaseElement = new BooleanXmlElement("PauseDialogAfterWaferAutoRelease", true);
            configElement.AddChild(pauseDialogAfterWaferAutoReleaseElement);
        }
        public XmlOldProber()
        {
            configElement = new SelfManagedXmlElement("Prober");
            rootElement.AddChild(configElement);

            activeProberElement = new StringXmlElement("ActiveProber", string.Empty);
            configElement.AddChild(activeProberElement);

            proberTimeoutElement = new IntegerXmlElement("ProberTimeout", 30);
            configElement.AddChild(proberTimeoutElement);

            simulatorEnabledElement = new BooleanXmlElement("ProberSimulatorEnabled", false);
            configElement.AddChild(simulatorEnabledElement);

            isProbeCleanEnabledElement = new BooleanXmlElement("IsProbeCleanEnabled", false);
            configElement.AddChild(isProbeCleanEnabledElement);

            probeCleanCountElement = new IntegerXmlElement("ProbeCleanCount", 1000);
            configElement.AddChild(probeCleanCountElement);

            isProbeXyScrubElement = new BooleanXmlElement("IsProbeXyScrub", false);
            configElement.AddChild(isProbeXyScrubElement);
        }
        public XmlOldCheckin()
        {
            configElement = new SelfManagedXmlElement("Checkin");
            configElement.ClearAllChildren = true;
            rootElement.AddChild(configElement);

            canDisableSspElement = new BooleanXmlElement("CanDisableSsp", false);
            configElement.AddChild(canDisableSspElement);

            reverseOrderElement = new BooleanXmlElement("ReverseOrder", false);
            configElement.AddChild(reverseOrderElement);

            uncheckWafersElement = new BooleanXmlElement("UncheckAllWafers", false);
            configElement.AddChild(uncheckWafersElement);

            operatorIdEnableElement = new BooleanXmlElement("OperatorIdEnabled", false);
            configElement.AddChild(operatorIdEnableElement);

            checkSetupEnabledElement = new BooleanXmlElement("CheckSetupName", false);
            configElement.AddChild(checkSetupEnabledElement);

            setupMinMatchLengthElement = new IntegerXmlElement("SetupMinimalMatchLength", 4);
            configElement.AddChild(setupMinMatchLengthElement);
        }
        public XmlOldEvent()
        {
            configElement = new SelfManagedXmlElement("Event");
            configElement.ClearAllChildren = true;
            rootElement.AddChild(configElement);

            enabledElement = new BooleanXmlElement("Enabled", true);
            configElement.AddChild(enabledElement);

            writeVerificationCountElement = new IntegerXmlElement("WriteVerificationCount", 3);
            configElement.AddChild(writeVerificationCountElement);

            sendingCountElement = new IntegerXmlElement("SendingCount", 50);
            configElement.AddChild(sendingCountElement);

            eventDirElement = new StringXmlElement("EventDir", "C:\\Mapper\\Events");
            configElement.AddChild(eventDirElement);

            rejectedEventDirElement = new StringXmlElement("EventRejectedDir", "C:\\Mapper\\Events\\Rejected");
            configElement.AddChild(rejectedEventDirElement);

            longPauseEventElement = new LongPauseEventXmlElement("LongPauseEvents");
            configElement.AddChild(longPauseEventElement);
        }
        public XmlOldEnvGeneral()
        {
            configElement = new SelfManagedXmlElement("EnvironmentGeneral");
            configElement.ClearAllChildren = true;
            rootElement.AddChild(configElement);

            autoCenterElement = new BooleanXmlElement("AutoCenter", true);
            configElement.AddChild(autoCenterElement);

            drawCircleElement = new BooleanXmlElement("DrawCircle", true);
            configElement.AddChild(drawCircleElement);

            drawGridElement = new BooleanXmlElement("DrawGrid", true);
            configElement.AddChild(drawGridElement);

            recoveryYieldElement = new BooleanXmlElement("RecoveryYield", true);
            configElement.AddChild(recoveryYieldElement);

            cultureNameElement = new StringXmlElement("CultureName", "English");
            configElement.AddChild(cultureNameElement);

            culturesElement = new CulturesXmlElement("CultureList");
            configElement.AddChild(culturesElement);
        }
        public XmlOldDir()
        {
            configElement = new SelfManagedXmlElement("Paths");
            configElement.ClearAllChildren = true;
            rootElement.AddChild(configElement);

            setupDirElement = new StringXmlElement("Setup", "C:\\Mapper\\Setup");
            configElement.AddChild(setupDirElement);

            loggingDirElement = new StringXmlElement("Logging", "C:\\Mapper\\Log");
            configElement.AddChild(loggingDirElement);

            cacheDirElement = new StringXmlElement("Cache", "C:\\Mapper\\Cache"); // for DB events
            configElement.AddChild(cacheDirElement);

            wmxmlVersionElement = new EnumXmlElement<WmxmlVersion>("WmxmlVersion", WmxmlVersion.Wmxml1);
            configElement.AddChild(wmxmlVersionElement);

            localFileFormatElement = new EnumXmlElement<FileFormat>("LocalFileFormat", FileFormat.Zip);
            configElement.AddChild(localFileFormatElement);

            localOutputWmxmlEnabledElement = new BooleanXmlElement("LocalSaveXmlEnabled", true);
            configElement.AddChild(localOutputWmxmlEnabledElement);

            localWmxmlDirElement = new StringXmlElement("LocalXmlWaferMap", "C:\\Mapper\\Maps\\Wmxml");
            configElement.AddChild(localWmxmlDirElement);

            localTempWmxmlDirElement = new StringXmlElement("LocalTempXmlWaferMap", "C:\\Mapper\\Temp");
            configElement.AddChild(localTempWmxmlDirElement);

            localInputWmxmlEnabledElement = new BooleanXmlElement("LocalLoadXmlEnabled", true);
            configElement.AddChild(localInputWmxmlEnabledElement);

            localInputWmxmlDirElement = new StringXmlElement("LocalLoadXmlWaferMap", "C:\\Mapper\\Maps\\Wmxml");
            configElement.AddChild(localInputWmxmlDirElement);

            secsChangePassBinElement = new BooleanXmlElement("SecsChangePassBin", false);
            configElement.AddChild(secsChangePassBinElement);

            secsPassBinElement = new IntegerXmlElement("SecsPassBin", 0);
            configElement.AddChild(secsPassBinElement);

            localOutputSecsEnabledElement = new BooleanXmlElement("LocalSaveSecsEnabled", true);
            configElement.AddChild(localOutputSecsEnabledElement);

            localSecsDirElement = new StringXmlElement("LocalSecsWaferMap", "C:\\Mapper\\Maps");
            configElement.AddChild(localSecsDirElement);

            serverFileFormatElement = new EnumXmlElement<FileFormat>("ServerFileFormat", FileFormat.Zip);
            configElement.AddChild(serverFileFormatElement);

            serverOutputWmxmlEnabledElement = new BooleanXmlElement("ServerSaveXmlEnabled", true);
            configElement.AddChild(serverOutputWmxmlEnabledElement);

            serverOutputWmxmlDirElement = new StringXmlElement("ServerSaveXmlWaferMap", "C:\\Mapper\\Server");
            configElement.AddChild(serverOutputWmxmlDirElement);

            serverUnsentWmxmlDirElement = new StringXmlElement("LocalUnsentXmlWaferMap", "C:\\Mapper\\UnsentMaps\\Wmxml");
            configElement.AddChild(serverUnsentWmxmlDirElement);

            serverInputWmxmlEnabledElement = new BooleanXmlElement("ServerLoadXmlEnabled", true);
            configElement.AddChild(serverInputWmxmlEnabledElement);

            serverInputWmxmlDirElement = new StringXmlElement("ServerLoadXmlWaferMap", "C:\\Mapper\\Server");
            configElement.AddChild(serverInputWmxmlDirElement);

            serverOutputSecsEnabledElement = new BooleanXmlElement("ServerSaveSecsEnabled", true);
            configElement.AddChild(serverOutputSecsEnabledElement);

            serverOutputSecsDirElement = new StringXmlElement("ServerSaveSecsWaferMap", "C:\\Mapper\\Server");
            configElement.AddChild(serverOutputSecsDirElement);

            serverUnsentSecsDirElement = new StringXmlElement("LocalUnsentSecsWaferMap", "C:\\Mapper\\UnsentMaps");
            configElement.AddChild(serverUnsentSecsDirElement);

            webServiceFileFormatElement = new EnumXmlElement<FileFormat>("WebServiceFileFormat", FileFormat.Zip);
            configElement.AddChild(webServiceFileFormatElement);

            webServiceOutputEnabledElement = new BooleanXmlElement("WebServiceEnabled", false);
            configElement.AddChild(webServiceOutputEnabledElement);

            webServiceInputEnabledElement = new BooleanXmlElement("WebServiceInputEnabled", false);
            configElement.AddChild(webServiceInputEnabledElement);

            webServicePrimaryUrlElement = new StringXmlElement("WebServicePrimaryUrl", "");
            configElement.AddChild(webServicePrimaryUrlElement);

            webServiceSecondaryUrlElement = new StringXmlElement("WebServiceSecondaryUrl", "");
            configElement.AddChild(webServiceSecondaryUrlElement);

            webServiceUnsentWmxmlDirElement = new StringXmlElement("WebServiceUnsentWmxmlWaferMap", "C:\\Mapper\\UnsentMaps\\WebService");
            configElement.AddChild(webServiceUnsentWmxmlDirElement);

            externalFileFormatElement = new EnumXmlElement<FileFormat>("ExternalFileFormat", FileFormat.Xml);
            configElement.AddChild(externalFileFormatElement);

            externalInputEnabledElement = new BooleanXmlElement("ExternalLoadEnabled", false);
            configElement.AddChild(externalInputEnabledElement);

            externalInputWmxmlDirElement = new StringXmlElement("ExternalLoadXmlWaferMap", "C:\\Mapper\\ExternalMaps");
            configElement.AddChild(externalInputWmxmlDirElement);

            externalOutputEnabledElement = new BooleanXmlElement("ExternalSaveEnabled", false);
            configElement.AddChild(externalOutputEnabledElement);

            externalOutputWmxmlDirElement = new StringXmlElement("ExternalSaveXmlWaferMap", "C:\\Mapper\\ExternalMaps");
            configElement.AddChild(externalOutputWmxmlDirElement);

            externalUnsentWmxmlDirElement = new StringXmlElement("ExternalUnsentXmlWaferMap", "C:\\Mapper\\ExternalUnsentMaps");
            configElement.AddChild(externalUnsentWmxmlDirElement);

            manualCheckFileNameElement = new StringXmlElement("ManualCheckFileName", "lotlist.txt");
            configElement.AddChild(manualCheckFileNameElement);

            manualCheckLocalDirElement = new StringXmlElement("ManualCheckLocal", "C:\\Mapper\\CheckManual");
            configElement.AddChild(manualCheckLocalDirElement);

            manualCheckServerDirElement = new StringXmlElement("ManualCheckServer", "C:\\Mapper\\CheckManual");
            configElement.AddChild(manualCheckServerDirElement);
        }