Exemple #1
0
 public void InitializeSectionList(IRainfallsDBHelper dbHelper, ISoundPlay soundPlay, List <ASectionObj> secObjList)
 {
     #region 线路+站点
     m_pSectionControl = new SectionControl();
     m_pSectionControl.RainfallsDbHelper = dbHelper;
     m_pSectionControl.SoundPlay         = soundPlay;
     m_pSectionSource.DataSource         = secObjList;
     m_pSectionControl.BindingData(m_pSectionSource);
     m_pSectionControl.SectionObjList = secObjList;
     this.Controls.Add(m_pSectionControl);
     m_pSectionControl.AlarmControlInit();
     m_pSectionControl.LiftControlInit();
     m_pSectionControl.ControlHeight();
     m_pSectionControl.Dock = DockStyle.Fill;
     this.Refresh();
     #endregion
 }