Exemplo n.º 1
0
 private void StartSRAMHexViewer()
 {
     if (m_currentsramfile != "")
     {
         dockManager1.BeginUpdate();
         try
         {
             DockPanel dockPanel = dockManager1.AddPanel(DockingStyle.Right);
             dockPanel.Text = "SRAM Hexviewer: " + Path.GetFileName(m_currentfile);
             dockPanel.ClosedPanel += new DockPanelEventHandler(dockPanel_ClosedPanel);
             HexViewer hv = new HexViewer();
             hv.Issramviewer = true;
             hv.Dock = DockStyle.Fill;
             dockPanel.Width = 580;
             hv.LoadDataFromFile(m_currentsramfile, m_symbols);
             dockPanel.Controls.Add(hv);
         }
         catch (Exception E)
         {
             logger.Debug(E.Message);
         }
         dockManager1.EndUpdate();
     }
 }
Exemplo n.º 2
0
        private void StartHexViewer()
        {
            if (m_currentfile != "")
            {
                dockManager1.BeginUpdate();
                try
                {
                    DockPanel dockPanel;
                    //= dockManager1.AddPanel(DevExpress.XtraBars.Docking.DockingStyle.Right);
                    if (!m_appSettings.NewPanelsFloating)
                    {
                        dockPanel = dockManager1.AddPanel(DockingStyle.Right);
                    }
                    else
                    {
                        System.Drawing.Point floatpoint = this.PointToClient(new System.Drawing.Point(dockSymbols.Location.X + dockSymbols.Width + 30, dockSymbols.Location.Y + 10));
                        dockPanel = dockManager1.AddPanel(floatpoint);
                    }

                    dockPanel.Text = "Hexviewer: " + Path.GetFileName(m_currentfile);
                    HexViewer hv = new HexViewer();
                    hv.Issramviewer = false;
                    hv.Dock = DockStyle.Fill;
                    dockPanel.Width = 580;
                    hv.LoadDataFromFile(m_currentfile, m_symbols);
                    dockPanel.ClosedPanel += new DockPanelEventHandler(dockPanel_ClosedPanel);
                    dockPanel.Controls.Add(hv);
                }
                catch (Exception E)
                {
                    logger.Debug(E.Message);
                }
                dockManager1.EndUpdate();
            }
        }