Beispiel #1
0
        private void OnAddTrackItem(Type track)
        {
            TrackModel       trackModel   = ReflectionHelper.CreateInstance(track) as TrackModel;
            BaseSequenceView sequenceView = window.GetPartialView <BaseSequenceView>();

            sequenceView.AddTrack(trackModel);
        }
Beispiel #2
0
        private void CopyView()
        {
            string     jsonStr  = JsonMapper.ToJson(Track);
            TrackModel newTrack = JsonMapper.ToObject <TrackModel>(jsonStr);

            Sequence.AddTrack(newTrack);
        }