Ejemplo n.º 1
0
        void m_genDataViewer_DoDockEvent(object sender, DoDockEventArgs e)
        {
            if (Program.MainForm.CurrentGenerateDataControl != m_genDataViewer.Table)
            {
                Program.MainForm.CurrentGenerateDataControl = m_genDataViewer.Table;
                // 防止内存泄漏
                m_genDataViewer.AddFreeControl(m_genDataViewer.Table);
            }

            if (e.ShowFixedPanel == true &&
                Program.MainForm.PanelFixedVisible == false)
            {
                Program.MainForm.PanelFixedVisible = true;
            }

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

            m_genDataViewer.Docked  = true;
            m_genDataViewer.Visible = false;
        }
Ejemplo n.º 2
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;
            }
        }
Ejemplo n.º 3
0
 public void DoDock(bool bShowFixedPanel)
 {
     /*
      * 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);
     }
 }
Ejemplo n.º 4
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);
     }
 }
Ejemplo n.º 5
0
        public void DoDock(bool bShowFixedPanel)
        {
            /*
            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);
            }
        }