예제 #1
0
        public void DoDock(bool bShowFixedPanel)
        {
            // return; // 测试内存泄漏

            /*
             * this.MainForm.CurrentGenerateDataControl = this.Table;
             * if (bShowFixedPanel == true
             *  && this.MainForm.PanelFixedVisible == false)
             *  this.MainForm.PanelFixedVisible = true;
             *
             * this.Docked = true;
             * this.Visible = false;
             * */
            if (this.DoDockEvent != null)
            {
                DoDockEventArgs e = new DoDockEventArgs();
                e.ShowFixedPanel = bShowFixedPanel;
                this.DoDockEvent(this, e);
            }
        }
예제 #2
0
        public void DoDock(bool bShowFixedPanel)
        {
            // return; // 测试内存泄漏

            /*
            this.MainForm.CurrentVerifyResultControl = this.textBox_verifyResult;
            if (bShowFixedPanel == true
                && this.MainForm.PanelFixedVisible == false)
                this.MainForm.PanelFixedVisible = true;

            this.Docked = true;
            this.Visible = false;
             * */
            if (this.DoDockEvent != null)
            {
                DoDockEventArgs e = new DoDockEventArgs();
                e.ShowFixedPanel = bShowFixedPanel;
                this.DoDockEvent(this, e);
            }
        }
예제 #3
0
파일: EntityForm.cs 프로젝트: renyh1013/dp2
        void m_viewer_DoDockEvent(object sender, DoDockEventArgs e)
        {
            if (this.MainForm.CurrentVerifyResultControl != m_verifyViewer.ResultControl)
            {
                this.MainForm.CurrentVerifyResultControl = m_verifyViewer.ResultControl;
                // 防止内存泄漏
                this.m_verifyViewer.AddFreeControl(m_verifyViewer.ResultControl);
            }

            if (e.ShowFixedPanel == true
                && this.MainForm.PanelFixedVisible == false)
                this.MainForm.PanelFixedVisible = true;

            m_verifyViewer.Docked = true;
            m_verifyViewer.Visible = false;
        }
예제 #4
0
        void m_genDataViewer_DoDockEvent(object sender, DoDockEventArgs e)
        {
            if (this.MainForm.CurrentGenerateDataControl != m_genDataViewer.Table)
                this.MainForm.CurrentGenerateDataControl = m_genDataViewer.Table;

            if (e.ShowFixedPanel == true
                && this.MainForm.PanelFixedVisible == false)
                this.MainForm.PanelFixedVisible = true;

            /*
            this.MainForm.AppInfo.SetBoolean("detailform", "gen_auto_run", m_genDataViewer.AutoRun);

            {	// 保存列宽度
                string strWidths = DpTable.GetColumnWidthListString(m_genDataViewer.ActionTable);
                this.MainForm.AppInfo.SetString(
                    "gen_data_dlg",
                    "column_width",
                    strWidths);
            }
             * */

            m_genDataViewer.Docked = true;
            m_genDataViewer.Visible = false;
        }
예제 #5
0
        void _keyboardForm_DoDockEvent(object sender, DoDockEventArgs e)
        {
            if (this._keyboardForm.Docked == false)
            {
                if (this.MainForm.CurrentAcceptControl != this._keyboardForm.Table)
                    this.MainForm.CurrentAcceptControl = this._keyboardForm.Table;

                if (e.ShowFixedPanel == true)
                {
                    if (this.MainForm.PanelFixedVisible == false)
                        this.MainForm.PanelFixedVisible = true;
                    // 把 acceptpage 翻出来
                    this.MainForm.ActivateAcceptPage();
                }

                this._keyboardForm.Docked = true;
                this._keyboardForm.Visible = false;

                this.FloatingKeyboardForm = false;

                if (this._keyboardForm != null)
                    this._keyboardForm.SetColorStyle(this.ColorStyle);
            }
            else
            {
                this.OpenKeyboardForm(true);
                this.FloatingKeyboardForm = true;
            }


        }
예제 #6
0
        public void DoDock(bool bShowFixedPanel)
        {
            /*
            this.MainForm.CurrentGenerateDataControl = this.Table;
            if (bShowFixedPanel == true
                && this.MainForm.PanelFixedVisible == false)
                this.MainForm.PanelFixedVisible = true;

            this.Docked = true;
            this.Visible = false;
             * */
            if (this.DoDockEvent != null)
            {
                DoDockEventArgs e = new DoDockEventArgs();
                e.ShowFixedPanel = bShowFixedPanel;
                this.DoDockEvent(this, e);
            }
        }
예제 #7
0
        public void DoDock(bool bShowFixedPanel)
        {
            if (this.DoDockEvent != null)
            {
                DoDockEventArgs e = new DoDockEventArgs();
                e.ShowFixedPanel = bShowFixedPanel;
                this.DoDockEvent(this, e);

                this.tableLayoutPanel1.BackColor = Color.DimGray;
                this.tableLayoutPanel1.ForeColor = Color.White;
            }
        }