diff --git a/Analogy/Analogy.csproj b/Analogy/Analogy.csproj
index 598e59ef..8e3dfe52 100644
--- a/Analogy/Analogy.csproj
+++ b/Analogy/Analogy.csproj
@@ -25,7 +25,7 @@
https://github.com/Analogy-LogViewer/Analogy.LogViewer
git
- 4.7.5
+ 4.7.6
Lior Banai © 2019-2020
Analogy Log Viewer
@@ -130,7 +130,7 @@
all
runtime; build; native; contentfiles; analyzers; buildtransitive
-
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
diff --git a/Analogy/CommonChangeLog.cs b/Analogy/CommonChangeLog.cs
index a594289a..7b92b927 100644
--- a/Analogy/CommonChangeLog.cs
+++ b/Analogy/CommonChangeLog.cs
@@ -11,6 +11,7 @@ public static IEnumerable GetChangeLog()
{
return new List
{
+ new AnalogyChangeLog("V4.7.6 - Update Analogy.LogViewer.gRPC - remove hard-coded port 6000",AnalogChangeLogType.Bug,"Lior Banai",new DateTime(2021,09,01)),
new AnalogyChangeLog("V4.7.5 - [Plotting] Allow to set default window size #1092",AnalogChangeLogType.Improvement,"Lior Banai",new DateTime(2021,08,07)),
new AnalogyChangeLog("V4.7.5 - [DevExpress] Upgrade version to V21.1.5 #1091",AnalogChangeLogType.Improvement,"Lior Banai",new DateTime(2021,08,07)),
new AnalogyChangeLog("V4.7.5 - [Plotting] Add Generic column plotter #1053",AnalogChangeLogType.Improvement,"Lior Banai",new DateTime(2021,08,07)),
diff --git a/Analogy/FilterCriteriaObject.cs b/Analogy/FilterCriteriaObject.cs
index d2315cc4..8185c455 100644
--- a/Analogy/FilterCriteriaObject.cs
+++ b/Analogy/FilterCriteriaObject.cs
@@ -140,23 +140,12 @@ public string GetSqlExpression(bool orLogLevel)
var split = text.Split(new[] { '&', '+' }, StringSplitOptions.RemoveEmptyEntries).ToList();
excludedTexts = split.Select(itm => itm.Trim()).ToList();
}
- if (UserSettingsManager.UserSettings.SearchAlsoInSourceAndModule)
- {
- sqlString.Append("((");
- }
- else
- {
- sqlString.Append("(");
- }
- if (orOperationInInclude)
- {
- sqlString.Append(string.Join(" Or ", includeTexts.Select(t => $" Text like '%{t}%'")));
- }
- else
- {
- sqlString.Append(string.Join(" and ", includeTexts.Select(t => $" Text like '%{t}%'")));
- }
+ sqlString.Append(UserSettingsManager.UserSettings.SearchAlsoInSourceAndModule ? "((" : "(");
+
+ sqlString.Append(orOperationInInclude
+ ? string.Join(" Or ", includeTexts.Select(t => $" Text like '%{t}%'"))
+ : string.Join(" and ", includeTexts.Select(t => $" Text like '%{t}%'")));
sqlString.Append(")");
@@ -191,14 +180,9 @@ public string GetSqlExpression(bool orLogLevel)
if (excludedTexts.Any())
{
sqlString.Append(" and (");
- if (orOperationInexclude)
- {
- sqlString.Append(string.Join(" and ", excludedTexts.Select(t => $" NOT Text like '%{t}%'")));
- }
- else
- {
- sqlString.Append(string.Join(" Or ", excludedTexts.Select(t => $" NOT Text like '%{t}%'")));
- }
+ sqlString.Append(orOperationInexclude
+ ? string.Join(" and ", excludedTexts.Select(t => $" NOT Text like '%{t}%'"))
+ : string.Join(" Or ", excludedTexts.Select(t => $" NOT Text like '%{t}%'")));
sqlString.Append(")");
}
diff --git a/Analogy/UserControls/UCLogs.cs b/Analogy/UserControls/UCLogs.cs
index 74916d73..aa41ac77 100644
--- a/Analogy/UserControls/UCLogs.cs
+++ b/Analogy/UserControls/UCLogs.cs
@@ -1785,7 +1785,7 @@ private void FilterResults()
_filterCriteria.OlderThan = ceOlderThanFilter.Checked ? deOlderThanFilter.DateTime : DateTime.MaxValue;
_filterCriteria.TextInclude = ceIncludeText.Checked ? (txtbInclude.Text == null ? string.Empty : txtbInclude.Text.Trim()) : string.Empty;
_filterCriteria.TextExclude = ceExcludeText.Checked
- ? (txtbExclude.Text == null ? string.Empty : txtbExclude.Text.Trim()) + "|" + string.Join("|", _excludeMostCommon)
+ ? (txtbExclude.Text == null ? string.Empty : txtbExclude.Text.Trim()) + string.Join("|", _excludeMostCommon)
: string.Empty;
Settings.IncludeText = Settings.SaveSearchFilters && txtbInclude.Text != null ? txtbInclude.Text : string.Empty;