예제 #1
0
        static private void SelectSourceWindow()
        {
            string src = s8parser.GetSourceCode();

            if (string.IsNullOrEmpty(src))
            {
                SetViewAsm();
            }
            else
            {
                SetViewSource();
            }
        }
예제 #2
0
        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);
            };
        }