Exemple #1
0
 public TextSource(FastColoredTextBox currentTB)
 {
     this.CurrentTB = currentTB;
     linesAccessor  = new LinesAccessor(this);
     Manager        = new CommandManager(this);
     InitDefaultStyle();
 }
Exemple #2
0
        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();
        }