Beispiel #1
0
 void LayoutSerializer_LayoutSerializationCallback(object sender, LayoutSerializationCallbackEventArgs e)
 {
     if (Profile != null && e.Model is LayoutDocument)
     {
         HeliosObject         profileObject = HeliosSerializer.ResolveReferenceName(Profile, e.Model.ContentId);
         HeliosEditorDocument editor        = CreateDocumentEditor(profileObject);
         profileObject.PropertyChanged += DocumentObject_PropertyChanged;
         e.Content       = CreateDocumentContent(editor);
         e.Model.Closed += Document_Closed;
         AddDocumentMeta(profileObject, (LayoutDocument)e.Model, editor);
     }
 }
Beispiel #2
0
 void LayoutSerializer_LayoutSerializationCallback(object sender, LayoutSerializationCallbackEventArgs e)
 {
     if (Profile != null && e.Model is LayoutDocument)
     {
         HeliosObject profileObject = HeliosSerializer.ResolveReferenceName(Profile, e.Model.ContentId);
         if (profileObject != null)
         {
             HeliosEditorDocument editor = CreateDocumentEditor(profileObject);
             profileObject.PropertyChanged += DocumentObject_PropertyChanged;
             e.Content = CreateDocumentContent(editor);
             //DocumentPane.Children.Add((LayoutDocument)e.Model);
             e.Model.Closed += Document_Closed;
             AddDocumentMeta(profileObject, (LayoutDocument)e.Model, editor);
         }
         else
         {
             ConfigManager.LogManager.LogDebug("Layout Serializer: Unable to resolve Layout Document " + e.Model.ContentId);
         }
     }
 }