Esempio n. 1
0
        public ITimeSegment AppendTimeSegment()
        {
            ITimeSegment ts = new CTimeSegment();

            lock (mTimeSegmentList.SyncRoot)
            {
                mTimeSegmentList.Add(ts);
            }
            return(ts);
        }
Esempio n. 2
0
        private void SetTimeSegment(ArrayList list, XmlNode node)
        {
            if (node != null)
            {
                CTimeSegment config = new CTimeSegment();

                config.LoadFromXml(node);

                lock (list.SyncRoot)
                {
                    list.Add(config);
                }
            }
        }