public void Release()
        {
            _sectionControl.Release();
            _sectionControl = null;

            _digitalInfoControl.Release();
            _digitalInfoControl = null;

            _customSummaryControl.Release();
            _customSummaryControl = null;

            DataChanged          = null;
            SectionEditorChanged = null;
            SectionData          = null;
        }
Example #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
 }
        public void InitControls()
        {
            _sectionControl       = new SectionControl(this);
            _digitalInfoControl   = new SectionDigitalInfoControl(this);
            _customSummaryControl = new SectionSummaryControl(this);

            xtraTabControl.TabPages.AddRange(new XtraTabPage[]
            {
                _sectionControl,
                _digitalInfoControl,
                _customSummaryControl,
            });

            _sectionControl.InitControls();
            _digitalInfoControl.InitControls();
            _customSummaryControl.InitControls();

            xtraTabControl.SelectedPageChanged += OnSelectedSectionEditorChanged;
        }
Example #4
0
        void InitializeCtrl()
        {
            #region 工具栏
            m_pRainfallsToolbar              = new rainfallsToolBar();
            m_pRainfallsToolbar.DbHelper     = m_pDbHelper;
            m_pRainfallsToolbar.SiteRainCalc = m_pSiteRainCalc;
            addCtrl(m_pRainfallsToolbar, DockStyle.Top);

            #endregion

            #region 线路+站点
            m_pSectionControl = new SectionControl();
            m_pSectionControl.RainfallsDbHelper = m_pDbHelper;
            m_pSectionControl.SoundPlay         = CAlarmSound.getInstance();
            m_pSectionSource.DataSource         = m_pSectionObjList;
            m_pSectionControl.BindingData(m_pSectionSource);
            m_pSectionControl.SectionObjList = m_pSectionObjList;
            addCtrl(m_pSectionControl, DockStyle.Top);
            m_pSectionControl.ControlHeight();
            #endregion

            #region 雨量标题
            m_pRainfallsCaption = new captionCtrl();
            addCtrl(m_pRainfallsCaption, DockStyle.Top);
            m_pRainfallsCaption.setCaptionKm(CRainfallXmlHelper.getInstance().siteName + m_pDefaultKM);
            #endregion

            #region 监测点列表
            // m_pRainfallStatueBar = new statueBarCtrl();
            m_pSiteControl           = new SiteControl();
            m_pSiteSource.DataSource = m_pSiteObjList;
            m_pSiteControl.BindingData(m_pSiteSource);
            addCtrl(m_pSiteControl, DockStyle.Bottom);
            m_pSiteControl.ControlHeight();
            #endregion
            #region 通知栏
            m_pNotifyControl = new UITrackOpenNofityControl();
            addCtrl(m_pNotifyControl, DockStyle.Bottom);

            #endregion
            mEvent.Set();
        }