private void LoadTelp8(XmlDocument xmlDoc, Telp8ConfigData configData) { XmlOldTelp8 xmlTelp8 = new XmlOldTelp8(); xmlTelp8.LoadConfig(xmlDoc); configData.Gpib.IsController = xmlTelp8.Gpib.SystemController; configData.Gpib.BoardIndex = xmlTelp8.Gpib.BoardIndex; configData.Gpib.BoardPrimaryAddress = xmlTelp8.Gpib.BoardPrimaryAddress; configData.Gpib.BoardSecondaryAddress = xmlTelp8.Gpib.BoardSecondaryAddress; configData.Gpib.DevicePrimaryAddress = xmlTelp8.Gpib.DevicePrimaryAddress; configData.Gpib.DeviceSecondaryAddress = xmlTelp8.Gpib.DeviceSecondaryAddress; configData.Gpib.IsEOI = xmlTelp8.Gpib.IsEoi; configData.Gpib.IsEOS = xmlTelp8.Gpib.IsEos; configData.Gpib.EightBitEOS = xmlTelp8.Gpib.EightBitEos; configData.Gpib.EosChar = xmlTelp8.Gpib.EosChar; }
private void SaveTelp8(XmlDocument xmlDoc, Telp8ConfigData configData) { XmlOldTelp8 xmlTelp8 = new XmlOldTelp8(); xmlTelp8.Gpib.SystemController = configData.Gpib.IsController; xmlTelp8.Gpib.BoardIndex = configData.Gpib.BoardIndex; xmlTelp8.Gpib.BoardPrimaryAddress = configData.Gpib.BoardPrimaryAddress; xmlTelp8.Gpib.BoardSecondaryAddress = configData.Gpib.BoardSecondaryAddress; xmlTelp8.Gpib.DevicePrimaryAddress = configData.Gpib.DevicePrimaryAddress; xmlTelp8.Gpib.DeviceSecondaryAddress = configData.Gpib.DeviceSecondaryAddress; xmlTelp8.Gpib.IsEoi = configData.Gpib.IsEOI; xmlTelp8.Gpib.IsEos = configData.Gpib.IsEOS; xmlTelp8.Gpib.EightBitEos = configData.Gpib.EightBitEOS; xmlTelp8.Gpib.EosChar = configData.Gpib.EosChar; xmlTelp8.SaveConfig(xmlDoc); }