/// <summary> /// 销毁方法 /// </summary> public override void Dispose() { if (!IsDisposed) { if (m_window != null) { m_invokeEvent = null; m_window.Close(); m_window.Dispose(); m_window = null; } base.Dispose(); } }
/// <summary> /// 关闭窗体 /// </summary> public override void Close() { m_window.Close(); m_window.Dispose(); m_native.Invalidate(); }