Пример #1
0
        /// <inheritdoc/>
        public override void Invoke(object sender, ModuleDrawerEventArgs e)
        {
            if (e == null) return;

            var editor = (IEditor)sender;
            var script = editor.FileName;
            var breakpoints = A.Psf.Breakpoints.Where(x => script.Equals(x.Script, StringComparison.OrdinalIgnoreCase));

            foreach (var line in e.Lines)
            {
                foreach (var bp in breakpoints)
                {
                    if (bp.Line != line.Index + 1)
                        continue;

                    e.Colors.Add(new EditorColor(
                        line.Index,
                        0,
                        e.EndChar,
                        ConsoleColor.White,
                        ConsoleColor.DarkRed));

                    break;
                }
            }
        }
Пример #2
0
 /// <summary>
 /// Gets colors for the specified editor lines.
 /// </summary>
 /// <param name="editor">The editor.</param>
 /// <param name="e">The arguments.</param>
 public abstract void Invoke(IEditor editor, ModuleDrawerEventArgs e);
Пример #3
0
 /// <summary>
 /// Gets colors for the specified editor lines.
 /// </summary>
 /// <param name="sender">.</param>
 /// <param name="e">.</param>
 public abstract void Invoke(object sender, ModuleDrawerEventArgs e);