Esempio n. 1
0
        public static void WordActions(stringint word, RichTextBox tbox)
        {
            if (word == null)
            {
                return;
            }
            var boolcolor = EvaluateIfColouredandgetColour.IsColouredandColor(word.Thestring);

            if (boolcolor.Thebool)
            {
                ColourSth.Colour_FromTo(
                    GetRangeWithstringint.GetRangeWithstringintSpaces(
                        word,
                        tbox.Text.Split(PublicStuff.Splitters)),
                    tbox,
                    boolcolor.Thecolor);
            }
            else
            {
                ColourSth.Colour_FromTo(
                    GetRangeWithstringint.GetRangeWithstringintSpaces(
                        word,
                        tbox.Text.Split(PublicStuff.Splitters)),
                    tbox,
                    boolcolor.Thecolor);
            }
        }
Esempio n. 2
0
 private static void CharActions(stringint cchar, RichTextBox tbox)
 {
     if (cchar?.Thestring == null || cchar.Thestring.Length <= 0)
     {
         return;
     }
     if (PublicStuff.Splitters.Contains(cchar.Thestring[0]))
     {
         ColourSth.Colour_FromTo(
             new intint(cchar.Theint, tbox.SelectionStart),
             tbox,
             PublicStuff.SplitterColor);
     }
 }