public RichTextBoxPrinter(RRichTextBox textBox) { rtb = textBox; // Are we running mono? mono = Type.GetType("Mono.Runtime") != null; if (mono) { // On Linux we cannot do manual links // so we keep using built in URL detection rtb.DetectUrls = true; } uriParser = new SlUriParser(); urlRegex = new Regex(urlRegexString, RegexOptions.Compiled | RegexOptions.IgnoreCase); }
public RichTextBoxPrinter(RRichTextBox textBox) { rtb = textBox; // Are we running mono? mono = Type.GetType("Mono.Runtime") != null; if (mono) { // On Linux we cannot do manual links // so we keep using built in URL detection rtb.DetectUrls = true; } uriParser = new SlUriParser(); urlRegex = new Regex(urlRegexString, RegexOptions.Compiled | RegexOptions.IgnoreCase); }
public void InitializeControls() { InitializeTabsConsole(); uriParser = new SlUriParser(); if (instance.MediaManager.SoundSystemAvailable) { mediaConsole = new MediaConsole(instance); tbtnMedia.Visible = true; } }