public Timeliner(TLContext context) { Context = context; TimelineModel = new TLDocument("", @"timeline.xml"); Shell.Instance.Root = TimelineModel; TimelineModel.CreateMapper(context.MappingRegistry); //only after mapper and root are set TimelineModel.Initialize(); var commandHistory = TimelineModel.Mapper.Map<ICommandHistory>(); TimelineView = new TimelineView(TimelineModel, commandHistory, Timer); TimelineModel.Tracks.Added += Timeline_Tracks_Added; TimelineModel.Tracks.Removed += Timeline_Tracks_Removed; TimelineModel.Tracks.OrderChanged += Timeline_Tracks_OrderChanged; TimelineView.Tracks.OrderChanged += TimelineView_Tracks_OrderChanged; }
public Timeliner(TLContext context) { Context = context; TimelineModel = new TLDocument("", @"timeline.xml"); Shell.Instance.Root = TimelineModel; TimelineModel.CreateMapper(context.MappingRegistry); //only after mapper and root are set TimelineModel.Initialize(); var commandHistory = TimelineModel.Mapper.Map <ICommandHistory>(); TimelineView = new TimelineView(TimelineModel, commandHistory, Timer); TimelineModel.Tracks.Added += Timeline_Tracks_Added; TimelineModel.Tracks.Removed += Timeline_Tracks_Removed; TimelineModel.Tracks.OrderChanged += Timeline_Tracks_OrderChanged; TimelineView.Tracks.OrderChanged += TimelineView_Tracks_OrderChanged; }