private void LoadMethods(XmlDocument xmlDoc, ProcessMethodConfigData configData)
        {
            XmlOldMethods xmlMethods = new XmlOldMethods();
            xmlMethods.LoadConfig(xmlDoc);

            configData.SmartUnitProbe.NeverTouchOutsideWafer = xmlMethods.IsSupNeverTouchOutsideWafer;
            configData.SmartUnitProbe.MaxTouchdownsOnDie = xmlMethods.SupMaxTouchdownsOnDie;
            configData.SampleProbe.SpToUpEnabled = xmlMethods.IsAutoSpToUp;
            configData.EdgeProbe.WaferEdgeEnabled = xmlMethods.IsEpWafer;
            configData.EdgeProbe.PcMarkEdgeEnabled = xmlMethods.IsEpPcMark;
            configData.SmartSampleProbe.Mode = xmlMethods.SspMode;
            configData.ClassProbe.SingleFirstRowEnabled =
            configData.SmartSampleProbe.SingleFirstRowEnabled = xmlMethods.IsSspSingleFirstRow;
            configData.ClassProbe.SingleChessboardEnabled = xmlMethods.IsCpSingleChessboard;
            configData.SmartSampleProbe.SingleChessboardEnabled = xmlMethods.IsSspSingleChessboard;
            configData.ClassProbe.MultiFirstRowEnabled =
            configData.SmartSampleProbe.MultiFirstRowEnabled = xmlMethods.IsSspMultiFirstRow;
            configData.ClassProbe.MultiChessboardEnabled = xmlMethods.IsCpMultiChessboard;
            configData.SmartSampleProbe.MultiChessboardEnabled = xmlMethods.IsSspMultiChessboard;

            configData.Aoi.GoodDieCounterEnabled = xmlMethods.IsAoiGoodDieCounter;

            XmlOldMapEdit xmlMapEdit = new XmlOldMapEdit();
            xmlMapEdit.LoadConfig(xmlDoc);

            configData.MapEdit.Enabled = xmlMapEdit.EnableMapEdit;
            configData.MapEdit.ReplaceBinValue = xmlMapEdit.ReplaceBinValue;

            XmlOldFpMethods xmlFpMethods = new XmlOldFpMethods();
            xmlFpMethods.LoadConfig(xmlDoc);

            configData.FlexibleProbe.Enabled = xmlFpMethods.Enabled;
            configData.FlexibleProbe.ClearStartMethodsList();
            configData.FlexibleProbe.AddRangeStartMethodsList(xmlFpMethods.StartProcessMethodsList);
            configData.FlexibleProbe.ClearEndMethodsList();
            configData.FlexibleProbe.AddRangeEndMethodsList(xmlFpMethods.EndProcessMethodsList);
        }
        private void SaveMethods(XmlDocument xmlDoc, ProcessMethodConfigData configData)
        {
            XmlOldMethods xmlMethods = new XmlOldMethods();

            xmlMethods.IsSupNeverTouchOutsideWafer = configData.SmartUnitProbe.NeverTouchOutsideWafer;
            xmlMethods.SupMaxTouchdownsOnDie = configData.SmartUnitProbe.MaxTouchdownsOnDie;
            xmlMethods.IsAutoSpToUp = configData.SampleProbe.SpToUpEnabled;
            xmlMethods.IsEpWafer = configData.EdgeProbe.WaferEdgeEnabled;
            xmlMethods.IsEpPcMark = configData.EdgeProbe.PcMarkEdgeEnabled;
            xmlMethods.SspMode = configData.SmartSampleProbe.Mode;
            xmlMethods.IsSspSingleFirstRow = configData.SmartSampleProbe.SingleFirstRowEnabled;
            xmlMethods.IsCpSingleChessboard = configData.ClassProbe.SingleChessboardEnabled;
            xmlMethods.IsSspSingleChessboard = configData.SmartSampleProbe.SingleChessboardEnabled;
            xmlMethods.IsSspMultiFirstRow = configData.SmartSampleProbe.MultiFirstRowEnabled;
            xmlMethods.IsCpMultiChessboard = configData.ClassProbe.MultiChessboardEnabled;
            xmlMethods.IsSspMultiChessboard = configData.SmartSampleProbe.MultiChessboardEnabled;

            xmlMethods.IsAoiGoodDieCounter = configData.Aoi.GoodDieCounterEnabled;

            xmlMethods.SaveConfig(xmlDoc);

            XmlOldMapEdit xmlMapEdit = new XmlOldMapEdit();

            xmlMapEdit.EnableMapEdit = configData.MapEdit.Enabled;
            xmlMapEdit.ReplaceBinValue = configData.MapEdit.ReplaceBinValue;

            xmlMapEdit.SaveConfig(xmlDoc);

            XmlOldFpMethods xmlFpMethods = new XmlOldFpMethods();

            xmlFpMethods.Enabled = configData.FlexibleProbe.Enabled;
            xmlFpMethods.StartProcessMethodsList = new List<ProcessMethod>(configData.FlexibleProbe.StartMethods);
            xmlFpMethods.EndProcessMethodsList = new List<ThresholdYield>(configData.FlexibleProbe.EndMethods);

            xmlFpMethods.SaveConfig(xmlDoc);
        }