private static void _init() { if (bbCodeParser == null) { bbCodeParser = new BottomUpParser(); bbCodeParser.pairTagHandler = new BBCodeTagHandler(); bbCodeParser.pairTagMatcher = new BBCodeTagMatcher(); } if (tempRTB == null) { tempRTB = new RichTextBox(); tempRTB.Text = ""; tempRTB.WordWrap = false; tempRTB.ScrollBars = RichTextBoxScrollBars.None; } }
private static void _init() { if (bbCodeParser == null) { bbCodeParser = new BottomUpParser(); bbCodeParser.pairTagHandler = new BBCodeTagHandler(); bbCodeParser.pairTagMatcher = new BBCodeTagMatcher(); } if (tempRTB == null) { tempRTB = new RichTextBox(); tempRTB.Text = ""; tempRTB.WordWrap = false; tempRTB.ScrollBars = RichTextBoxScrollBars.None; } }