public RegexOptions GetRegexOptions()
{
var ro = RegexOptions.None;
if (this.tabAll.SelectedTab == this.tpgFind)
{
if (this.chkCompiledF.Checked)
ro |= RegexOptions.Compiled;
if (this.chkCultureInvariantF.Checked)
ro |= RegexOptions.Compiled;
if (this.chkEcmaScriptF.Checked)
ro |= RegexOptions.ECMAScript;
if (this.chkExplicitCaptureF.Checked)
ro |= RegexOptions.ExplicitCapture;
if (this.chkIgnoreCaseF.Checked)
ro |= RegexOptions.IgnoreCase;
if (this.chkIgnorePatternWhitespaceF.Checked)
ro |= RegexOptions.IgnorePatternWhitespace;
if (this.chkMultilineF.Checked)
ro |= RegexOptions.Multiline;
if (this.chkRightToLeftF.Checked)
ro |= RegexOptions.RightToLeft;
if (this.chkSinglelineF.Checked)
ro |= RegexOptions.Singleline;
}
else
{
if (this.chkCompiledR.Checked)
ro |= RegexOptions.Compiled;
if (this.chkCultureInvariantR.Checked)
ro |= RegexOptions.Compiled;
if (this.chkEcmaScriptR.Checked)
ro |= RegexOptions.ECMAScript;
if (this.chkExplicitCaptureR.Checked)
ro |= RegexOptions.ExplicitCapture;
if (this.chkIgnoreCaseR.Checked)
ro |= RegexOptions.IgnoreCase;
if (this.chkIgnorePatternWhitespaceR.Checked)
ro |= RegexOptions.IgnorePatternWhitespace;
if (this.chkMultilineR.Checked)
ro |= RegexOptions.Multiline;
if (this.chkRightToLeftR.Checked)
ro |= RegexOptions.RightToLeft;
if (this.chkSinglelineR.Checked)
ro |= RegexOptions.Singleline;
}
return ro;
}