static private void SelectSourceWindow() { string src = s8parser.GetSourceCode(); if (string.IsNullOrEmpty(src)) { SetViewAsm(); } else { SetViewSource(); } }
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); }; }