Beispiel #1
0
 public FormHexEditor(hexEditorOptions ops)
 {
     InitFormHexEditor(ops);
 }
Beispiel #2
0
        protected virtual void InitFormHexEditor(hexEditorOptions o = null)
        {
            InitializeComponent();
            if(o == null) o = new hexEditorOptions();
            Init();
            toolStrip.Renderer.RenderToolStripBorder += new ToolStripRenderEventHandler(Renderer_RenderToolStripBorder);

            _fileName = o.filename;
            if(o.byteProvider != null)
                OpenMemory(o.byteProvider);
            else if(_fileName != "")
                OpenFile(_fileName);

            fileToolStripMenuItem.Visible = o.showMnu_File;
            exitToolStripMenuItem.Visible = o.showMnuItm_File_Exit;
            openToolStripMenuItem.Visible = o.showMnuItm_File_Open;
            recentFilesToolStripMenuItem.Visible = o.showMnuItm_File_Recent;
            saveToolStripMenuItem.Visible = o.showMnuItm_File_Save;
        }