public TextSource(FastColoredTextBox currentTB) { this.CurrentTB = currentTB; linesAccessor = new LinesAccessor(this); Manager = new CommandManager(this); InitDefaultStyle(); }
public TextSource(FastColoredTextBox currentTB) { this.CurrentTB = currentTB; linesAccessor = new LinesAccessor(this); Manager = new CommandManager(this); if (Enum.GetUnderlyingType(typeof(StyleIndex)) == typeof(UInt32)) { Styles = new Style[32]; } else { Styles = new Style[16]; } InitDefaultStyle(); }