LongoMatch.Core.Store.ProjectLongoMatch.AddEvent C# (CSharp) Метод

AddEvent() публичный Метод

public AddEvent ( TimelineEvent play ) : void
play TimelineEvent
Результат void
        public override void AddEvent(TimelineEvent play)
        {
            play.FileSet = Description.FileSet;
            play.Project = this;
            Timeline.Add (play);

            if (play.EventType is ScoreEventType) {
                UpdateScore ();
            }
        }

Same methods

ProjectLongoMatch::AddEvent ( EventType type, Time start, Time stop, Time eventTime, Image miniature, bool addToTimeline = true ) : TimelineEvent

Usage Example

Пример #1
0
        public void TestSerialization()
        {
            ProjectLongoMatch p = new ProjectLongoMatch ();

            Utils.CheckSerialization (p);

            p = CreateProject ();
            Utils.CheckSerialization (p);
            p.AddEvent (new TimelineEventLongoMatch ());
            Utils.CheckSerialization (p);

            ProjectLongoMatch newp = Utils.SerializeDeserialize (p);
            Assert.AreEqual (newp.CompareTo (p), 0);
            Assert.AreEqual (newp.Timeline.Count, p.Timeline.Count);
        }
All Usage Examples Of LongoMatch.Core.Store.ProjectLongoMatch::AddEvent