public ITimeSegment AppendTimeSegment() { ITimeSegment ts = new CTimeSegment(); lock (mTimeSegmentList.SyncRoot) { mTimeSegmentList.Add(ts); } return(ts); }
private void SetTimeSegment(ArrayList list, XmlNode node) { if (node != null) { CTimeSegment config = new CTimeSegment(); config.LoadFromXml(node); lock (list.SyncRoot) { list.Add(config); } } }