private void UpdateIFilter()
{
lock (_iFilterLock)
{
try
{
_regexWindowTitle = new Regex(TextBox_RegexWindowTitle.Text);
TextBox_RegexWindowTitle.Background = Brushes.Honeydew;
}
catch
{
_regexWindowTitle = new Regex("");
TextBox_RegexWindowTitle.Background = Brushes.MistyRose;
}
try
{
_regexWindowClass = new Regex(TextBox_RegexWindowClass.Text);
TextBox_RegexWindowClass.Background = Brushes.Honeydew;
}
catch (Exception)
{
_regexWindowClass = new Regex("");
TextBox_RegexWindowClass.Background = Brushes.MistyRose;
}
}
}