Ejemplo n.º 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);
        }
        public void ResizeControl()
        {
            DPIHandler.AdjustControlSize(this);
            DPIHandler.AdjustControlChildsSize(this);

            RescaleButtons();
        }
        public FormSplashScreen()
        {
            InitializeComponent();

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

            DPIHandler.ResizeControlsForDPI(this);
        }
Ejemplo n.º 4
0
        public DebugRegisters()
        {
            InitializeComponent();

            DPIHandler.ResizeControlsForDPI(this);
        }