22 lines
647 B
C#
22 lines
647 B
C#
using TeaBox.ObjectModel;
|
|
using JD.Serialization;
|
|
|
|
namespace JD.Timeline.Document
|
|
{
|
|
/// <summary>
|
|
/// Allows to manipulate TrackDocuments in the application.
|
|
/// </summary>
|
|
public class TapeDocumentBinding : DocumentBinding
|
|
{
|
|
public override IDocument CreateDocument(DocumentCreationContext context, object content)
|
|
{
|
|
return new TapeDocument(context, (Tape)content);
|
|
}
|
|
|
|
public override IDocumentView CreateViewForDocument(IDocument document, object context)
|
|
{
|
|
var tape = (TapeDocument)document;
|
|
return new TapeDocumentView(tape);
|
|
}
|
|
}
|
|
}
|