コード例 #1
0
        public BinaryDisplay(StudioCore Core, GR.Memory.ByteBuffer WorkData, bool AllowEditing, bool FixedWidth)
        {
            this.Core = Core;
            DocumentInfo.UndoManager.MainForm = Core.MainForm;
            InitializeComponent();

            DPIHandler.ResizeControlsForDPI(this);

            if (WorkData == null)
            {
                SetHexData(new GR.Memory.ByteBuffer());
            }
            else
            {
                SetHexData(WorkData);
            }
            this.AllowEditing = AllowEditing;
            this.FixedWidth   = FixedWidth;

            hexView.ByteProvider.Changed += new EventHandler(ByteProvider_Changed);

            // modify context menu
            hexView.ContextMenuStrip.Items.Add("-");

            m_MenuItemChangeOffset        = new ToolStripMenuItem("Offset Displayed Address");
            m_MenuItemChangeOffset.Click += OnMenuItemChangeOffsetClick;
            hexView.ContextMenuStrip.Items.Add(m_MenuItemChangeOffset);
        }
コード例 #2
0
        public FormSplashScreen()
        {
            InitializeComponent();

            labelInfo.Text = labelInfo.Text.Replace("<v>", StudioCore.StudioVersion);

            DPIHandler.ResizeControlsForDPI(this);
        }
コード例 #3
0
        public DebugRegisters()
        {
            InitializeComponent();

            DPIHandler.ResizeControlsForDPI(this);
        }