public bool ReadCGSInfo(Workbook workbook) { this.workbook = workbook; foreach (CustomXMLPart curXmlPart in workbook.CustomXMLParts) { if (curXmlPart.BuiltIn) { continue; } XmlObject customObject = ObjectSerializeHelper.Deserialize <XmlObject>(curXmlPart.XML); if (customObject.ContentType == ContentType.PdeCondGoalSeekInfo) { String xmlcontent = customObject.Content; CondGoalSeekInfo CGSInfo = ObjectSerializeHelper.Deserialize <CondGoalSeekInfo>(xmlcontent); this.cgsInfo = CGSInfo; return(true); } } return(false); }
public ConditionGoalSeek() { cgsInfo = new CondGoalSeekInfo(); }