コード例 #1
0
        public void DrawRainMap(IRainCalc siteRainCalc, IRainfallsDBHelper dbHelper)
        {
            m_pRainfallsMap      = new RainMapCtr(siteRainCalc);
            m_pRainfallsMap.Dock = DockStyle.Fill;
            this.Controls.Add(m_pRainfallsMap);

            m_pRainfallsCaption              = new captionCtrl(this);
            m_pRainfallsCaption.DbHelper     = dbHelper;
            m_pRainfallsCaption.SiteRainCalc = siteRainCalc;
            m_pRainfallsCaption.Dock         = DockStyle.Top;
            this.Controls.Add(m_pRainfallsCaption);



            // m_pRainfallsMap.ToolBarControl = m_pRainfallsToolbar;
        }
コード例 #2
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
 }