Ejemplo n.º 1
0
        /// <summary>
        /// 加载控件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void _FormDeductPointInfo_Load(object sender, EventArgs e)
        {
            if (panelControlDeductPointInfo.Controls.Count > 1)
            {
                return;
            }
            m_UCDeductPointInfo         = new UCDeductPointInfo(m_App);
            m_UCDeductPointInfo.Dock    = DockStyle.Fill;
            m_UCDeductPointInfo.PointID = PointID;

            m_UCDeductPointInfo.m_Begintime = m_Begintime;
            m_UCDeductPointInfo.m_Endtime   = m_Endtime;

            m_UCDeductPointInfo.m_form = this;
            panelControlDeductPointInfo.Controls.Add(m_UCDeductPointInfo);
            m_UCDeductPointInfo.Query_Click();
        }
Ejemplo n.º 2
0
        private void xtraTabControl_SelectedPageChanged(object sender, DevExpress.XtraTab.TabPageChangedEventArgs e)
        {
            if (e.Page.Name == "TabPageFail")
            {
                if (panelControlFail.Controls.Count > 1)
                {
                    return;
                }
                m_UCFail      = new UCFail(m_App);
                m_UCFail.Dock = DockStyle.Fill;
                panelControlFail.Controls.Add(m_UCFail);
            }
            else if (e.Page.Name == "TabPageFiling")
            {
                if (panelControlFiling.Controls.Count > 1)
                {
                    return;
                }
                m_UCFiling      = new UCFiling(m_App);
                m_UCFiling.Dock = DockStyle.Fill;
                panelControlFiling.Controls.Add(m_UCFiling);
            }

            else if (e.Page.Name == "TabPageDeductPoint")
            {
                if (panelControlDeductPoint.Controls.Count > 1)
                {
                    return;
                }
                m_UCDeductPoint      = new UCDeductPoint(m_App);
                m_UCDeductPoint.Dock = DockStyle.Fill;
                panelControlDeductPoint.Controls.Add(m_UCDeductPoint);
            }
            else if (e.Page.Name == "TabPageDeductPointInfo")
            {
                if (panelControlDeductPointInfo.Controls.Count > 1)
                {
                    return;
                }
                m_UCDeductPointInfo      = new UCDeductPointInfo(m_App);
                m_UCDeductPointInfo.Dock = DockStyle.Fill;
                panelControlDeductPointInfo.Controls.Add(m_UCDeductPointInfo);
            }
        }