Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
 public ConditionGoalSeek()
 {
     cgsInfo = new CondGoalSeekInfo();
 }