public XmlItem(XmlElement xe, XmlControl rootControl) { m_runXeName = null; m_selLock = new EventLock(); InitializeComponent(); m_xmlCtrl = rootControl; m_xe = xe; if (m_xmlCtrl != null && m_xmlCtrl.m_mapXeItem != null) { m_xmlCtrl.m_mapXeItem[xe] = this; } }
public AnimationTools() { m_maxValueLock = new EventLock(); m_mapFrameXe = new Dictionary<AnimationKeyFrame, XmlElement>(); m_lstTimeScaleTips = new List<AnimationTimeScaleTips>(); InitializeComponent(); for (int i = 0; i < 100; i++) { AnimationTimeScaleTips aniTips = new AnimationTimeScaleTips(); aniTips.ma_maxTimeScale = m_maxValue; aniTips.ma_curTimeScale = (double)i; m_lstTimeScaleTips.Add(aniTips); mx_timeScaleTipsFrame.Children.Add(aniTips); } }