/// ------------------------------------------------------------------------------------ /// <summary> /// /// </summary> /// ------------------------------------------------------------------------------------ public void Dispose() { m_form = null; m_adapter = null; m_menuStrip = null; m_statusStrip = null; if (m_statusLbl != null) { m_statusLbl.Dispose(); m_statusLbl = null; } if (m_filterButton != null) { m_filterButton.Dispose(); m_filterButton = null; } if (m_separator != null) { m_separator.Dispose(); m_separator = null; } }
private void statusLabel_Click(object sender, EventArgs e) { ToolStripStatusLabel statusLabel = (ToolStripStatusLabel)sender; if (statusLabel.Tag != null && statusLabel.Tag is Form) { Form frm = (Form)statusLabel.Tag; frm.WindowState = FormWindowState.Normal; string tmp = statusLabel.Text; this.StatusBar.Items.Remove(statusLabel); statusLabel.Dispose(); ShowMDIFormEx(frm, tmp); } }