public void Dispose()
        {
            if (IsDisposed())
            {
                return;
            }
            //清空数据
            Clear();

            //释放控件
            HexEditor.Dispose();
            HexEditor = null;

            DataMenuCollection.Dispose();
            DataMenuCollection = null;

            ThisMenu.Dispose();
            ThisMenu = null;

            //释放界面
            ThisForm.Dispose();
            ThisForm = null;
        }
 public void OnControlClosing()
 {
     Cleanup();
     ByteViewer.Dispose();
 }