Esempio n. 1
0
 void automation_DeserializeObjectError(object sender, AnnSerializeObjectEventArgs e)
 {
     if (string.Compare(e.TypeName, typeof(AnnRichTextObject).FullName) == 0)
     {
         e.AnnObject = new AnnRichTextObject();
     }
 }
Esempio n. 2
0
 private void automation_DeserializeObjectError(object sender, AnnSerializeObjectEventArgs e)
 {
     // In case you need to skip objects or create them yourself
     Debug.WriteLine("Object could not be de-serialized: {0}", e.TypeName);
     e.SkipObject = true;
 }