コード例 #1
0
        static private void SelectSourceWindow()
        {
            string src = s8parser.GetSourceCode();

            if (string.IsNullOrEmpty(src))
            {
                SetViewAsm();
            }
            else
            {
                SetViewSource();
            }
        }
コード例 #2
0
ファイル: SourceView.cs プロジェクト: RonnyA/S8Debugger
        public SourceView(S8CommandParser parser)
        {
            this.CanFocus = true;
            this.parser   = parser;
            this.ReadOnly = false;

            SourceCode = parser.GetSourceCode();

            parser.s8d.cpu.CpuStepHandler += (object sender, CpuStepInfo e) =>
            {
                SetCpuStepLine(e);
            };
        }