Exemple #1
0
        public DebugFunctions(DebuggerForm main)
        {
            m_mainForm = main;

            m_Z80ViewForm           = new Z80ViewForm(GameBoy.Cpu);
            m_Z80ViewForm.MdiParent = m_mainForm;

            m_ramForm           = new RamViewForm(GameBoy.Ram);
            m_ramForm.MdiParent = m_mainForm;

            m_instForm           = new InstructionForm(GameBoy.Cpu, GameBoy.Ram);
            m_instForm.MdiParent = m_mainForm;

            m_codeForm           = new CodeView3Form();
            m_codeForm.MdiParent = m_mainForm;

            m_speedForm           = new SpeedForm();
            m_speedForm.MdiParent = m_mainForm;

            m_bgTileMapForm           = new BgTileMapForm(GameBoy.Ram);
            m_bgTileMapForm.MdiParent = m_mainForm;

            m_serialForm           = new SerialForm();
            m_serialForm.MdiParent = m_mainForm;

            m_callstackForm           = new CallstackForm();
            m_callstackForm.MdiParent = m_mainForm;

            m_interruptsForm           = new InterruptsForm();
            m_interruptsForm.MdiParent = m_mainForm;

            m_bDoRefresh = true;
            m_IsInit     = true;
        }
Exemple #2
0
 public ScriptTreeForm(DebuggerForm mainForm)
     : base(mainForm)
 {
     this.HideOnClose = true;
     this.ShowHint    = DockState.DockRight;
     this.DockAreas   = DockAreas.DockLeft | DockAreas.DockRight
                        | DockAreas.DockTop | DockAreas.DockBottom;
 }
Exemple #3
0
 private void DebuggerToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (System.Windows.Forms.Application.OpenForms["Debugger"] == null)
     {
         DebuggerForm DebuggerForm = new DebuggerForm();
         DebuggerForm.Show();
     }
 }
Exemple #4
0
        public static void DestroyDebugContext()
        {
            //m_debugFunctions.Dispose();
            //m_debugFunctions = null;
            m_debuggerForm.Close();
            m_debuggerForm.Dispose();
            m_debuggerForm = null;
//            m_debugContextInitalized = false;
        }
Exemple #5
0
 public static void CreateDebugContext()
 {
     m_debuggerForm = new DebuggerForm();
     //m_debugFunctions = new DebugFunctions(m_debuggerForm);
     m_debuggerForm.Init();
     m_debuggerForm.Show();
     //m_debugFunctions.Init();
     //          m_debugContextInitalized = true;
 }
 public FindReplaceForm(DebuggerForm mainForm)
     : base(mainForm)
 {
     this.InitializeComponent();
     this.HideOnClose = true;
     this.MainForm    = mainForm;
     this.ShowHint    = DockState.Float;
     this.DockAreas   = DockAreas.DockLeft | DockAreas.DockRight
                        | DockAreas.DockTop | DockAreas.DockBottom | DockAreas.Float;
 }
Exemple #7
0
 private void OpenToolStripMenuItem_Click(object sender, EventArgs e)
 {
     PlayLoop = false;
     if (LoadROM())
     {
         PlayNes();
         resetToolStripMenuItem.Enabled = true;
         if (DebuggerForm.Dbug != null && DebuggerForm.Dbug.Visible)
         {
             DebuggerForm.UpdateDebugger();
         }
     }
 }
Exemple #8
0
 public static void Reset()
 {
     DrawFrame  = false;
     bitmapData = null;
     nes.OutputPictureBox.Image = null;
     NESBMP = new Bitmap(256, 240, PixelFormat.Format32bppPArgb);
     DebuggerForm.Reset();
     APU.Reset();
     CPU.Reset();
     GAME.Reset();
     PPU.Reset();
     FramesPerSecond = 0;
     Debugger.Initialize();
     GC.Collect();
 }
Exemple #9
0
        private void button13_Click(object sender, EventArgs e)
        {
            string       szPatientID      = this.textBox1.Text;
            string       szVisitID        = this.textBox2.Text;
            PatVisitInfo patVisitInfo     = new PatVisitInfo();
            short        shRet            = PatVisitAccess.Instance.GetPatVisitInfo(szPatientID, szVisitID, ref patVisitInfo);
            QcCheckPoint qcCheckPoint     = null;
            string       szQcCheckPointID = "P201608281312459709";

            shRet = QcCheckPointAccess.Instance.GetQcCheckPoint(szQcCheckPointID, ref qcCheckPoint);
            DebuggerForm frm = new DebuggerForm();

            frm.PatVisitInfo = patVisitInfo;
            frm.QcCheckPoint = qcCheckPoint;
            QcCheckResult qcCheckResult = CheckPointHelper.Instance.InitQcCheckResult(qcCheckPoint, patVisitInfo);

            frm.QcCheckResult = qcCheckResult;
            frm.Show();
        }
        private void ShowScriptEditForm(DataTableViewRow row)
        {
            string       szScriptConfigID = row.Cells[this.colScriptName.Index].Tag as string;
            ScriptConfig qcCheckScript    = null;

            if (!string.IsNullOrEmpty(szScriptConfigID))
            {
                ScriptConfigAccess.Instance.GetScriptConfig(szScriptConfigID, ref qcCheckScript);
            }
            if (row == null || row.Index < 0 || this.dataGridView1.IsDeletedRow(row))
            {
                return;
            }

            string szScriptID   = string.Empty;
            string szScriptName = string.Empty;

            if (qcCheckScript != null)
            {
                szScriptID = qcCheckScript.SCRIPT_ID;
            }
            if (row.Cells[this.colScriptName.Index].Value != null)
            {
                szScriptName = row.Cells[this.colScriptName.Index].Value.ToString();
            }

            string szScriptText = string.Empty;

            if (!string.IsNullOrEmpty(szScriptID))
            {
                ScriptConfigAccess.Instance.GetScriptSource(szScriptID, ref szScriptText);
            }

            DebuggerForm scriptEditForm = new DebuggerForm();

            CheckPointHelper.Instance.InitPatientInfo(SystemParam.Instance.PatVisitInfo);
            scriptEditForm.PatVisitInfo = SystemParam.Instance.PatVisitInfo;

            scriptEditForm.QcCheckPoint              = row.Tag as QcCheckPoint;
            scriptEditForm.QcCheckResult             = CheckPointHelper.Instance.InitQcCheckResult(scriptEditForm.QcCheckPoint, SystemParam.Instance.PatVisitInfo);
            scriptEditForm.ScriptConfig              = qcCheckScript;
            scriptEditForm.WorkingPath               = GlobalMethods.Misc.GetWorkingPath();
            scriptEditForm.ScriptProperty            = new ScriptProperty();
            scriptEditForm.ScriptProperty.ScriptName = szScriptName;
            scriptEditForm.ScriptProperty.ScriptText = szScriptText;
            scriptEditForm.ScriptProperty.FilePath   = string.Format("{0}\\Script\\Caches\\{1}.vbs"
                                                                     , scriptEditForm.WorkingPath, szScriptID);
            scriptEditForm.MinimizeBox   = false;
            scriptEditForm.ShowInTaskbar = false;
            if (scriptEditForm.ShowDialog() != DialogResult.OK)
            {
                return;
            }
            if (scriptEditForm.ScriptConfig != null)
            {
                row.Cells[this.colScriptName.Index].Tag   = scriptEditForm.ScriptConfig.SCRIPT_ID;
                row.Cells[this.colScriptName.Index].Value = scriptEditForm.ScriptConfig.SCRIPT_NAME;
            }
            if (this.dataGridView1.IsNormalRowUndeleted(row))
            {
                this.dataGridView1.SetRowState(row, RowState.Update);
            }
        }
Exemple #11
0
 /// <summary>
 /// 初始化模板处理器程序
 /// </summary>
 /// <param name="mainForm">主程序窗口</param>
 public void InitTempletHandler(DebuggerForm mainForm)
 {
     this.m_mainForm = mainForm;
 }