private void SaveFet(XmlDocument xmlDoc, FetConfigData configData) { XmlOldFet xmlFet = new XmlOldFet(); xmlFet.BoardNo = configData.BoardNo; xmlFet.EnableSendingXyCoords = configData.EnableSendingXYCoords; xmlFet.Gpib.SystemController = configData.Gpib.IsController; xmlFet.Gpib.BoardIndex = configData.Gpib.BoardIndex; xmlFet.Gpib.BoardPrimaryAddress = configData.Gpib.BoardPrimaryAddress; xmlFet.Gpib.BoardSecondaryAddress = configData.Gpib.BoardSecondaryAddress; xmlFet.Gpib.DevicePrimaryAddress = configData.Gpib.DevicePrimaryAddress; xmlFet.Gpib.DeviceSecondaryAddress = configData.Gpib.DeviceSecondaryAddress; xmlFet.Gpib.IsEoi = configData.Gpib.IsEOI; xmlFet.Gpib.IsEos = configData.Gpib.IsEOS; xmlFet.Gpib.EightBitEos = configData.Gpib.EightBitEOS; xmlFet.Gpib.EosChar = configData.Gpib.EosChar; xmlFet.SaveConfig(xmlDoc); }
private void LoadFet(XmlDocument xmlDoc, FetConfigData configData) { XmlOldFet xmlFet = new XmlOldFet(); xmlFet.LoadConfig(xmlDoc); configData.BoardNo = xmlFet.BoardNo; configData.EnableSendingXYCoords = xmlFet.EnableSendingXyCoords; configData.Gpib.IsController = xmlFet.Gpib.SystemController; configData.Gpib.BoardIndex = xmlFet.Gpib.BoardIndex; configData.Gpib.BoardPrimaryAddress = xmlFet.Gpib.BoardPrimaryAddress; configData.Gpib.BoardSecondaryAddress = xmlFet.Gpib.BoardSecondaryAddress; configData.Gpib.DevicePrimaryAddress = xmlFet.Gpib.DevicePrimaryAddress; configData.Gpib.DeviceSecondaryAddress = xmlFet.Gpib.DeviceSecondaryAddress; configData.Gpib.IsEOI = xmlFet.Gpib.IsEoi; configData.Gpib.IsEOS = xmlFet.Gpib.IsEos; configData.Gpib.EightBitEOS = xmlFet.Gpib.EightBitEos; configData.Gpib.EosChar = xmlFet.Gpib.EosChar; }