Exemple #1
0
        private void OpenHexEditorFor(CVariable editvar)
        {
            var editor = new frmHexEditorView()
            {
                File = editvar.cr2w
            };

            if (editvar is IByteSource)
            {
                editor.Bytes = ((IByteSource)editvar).Bytes;
            }

            editor.Text = "Hex Viewer [" + editvar.FullName + "]";
            editor.Show();
        }
Exemple #2
0
        public static void OpenHexEditorFor(CVariable editvar)
        {
            var editor = new frmHexEditorView()
            {
                File = editvar.cr2w
            };

            if (editvar is IByteSource source)
            {
                editor.Bytes = source.GetBytes();
            }

            editor.Text = "Hex Viewer [" + editvar.GetFullName() + "]";
            editor.Show();
        }