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); } }
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); } }
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; }
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; }
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; } }
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); } }
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; } }