Skip to content
Merged

fix #786

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions CSharpBible/SomeThing/Statistic4/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,11 @@ void Run(int[] prog)
if (arg < 0 || arg >= templates.Length)
throw new IndexOutOfRangeException($"Template index {arg} out of range.");
string tmpl = templates[arg];
Console.WriteLine(string.Format(CultureInfo.InvariantCulture, tmpl, lastObj));
System.Diagnostics.Debug.WriteLine(string.Format(CultureInfo.InvariantCulture, tmpl, lastObj));
string formatted = tmpl.Contains("{", StringComparison.Ordinal)
? string.Format(CultureInfo.InvariantCulture, tmpl, lastObj)
: tmpl;
Console.WriteLine(formatted);
System.Diagnostics.Debug.WriteLine(formatted);
}
else
{
Expand Down
4 changes: 2 additions & 2 deletions GenFreeWin/GenDBImplOLEDB/Data.DB/OleDbStatementRenderer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ public IDbCommand CreateQuery(string sTable, IEnumerable<string> arrFields, IEnu
public IDbCommand CreateQuery(IDbConnection dbConnection, string sTable, IEnumerable<string>? arrFields = null, IEnumerable<IDbFilterClause>? arrFilters = null, int? iLimit = null, object? offset = null)
{
var sFields = (arrFields?.Count() ?? 0) == 0
? "*"
: string.Join(",", arrFields.Select(QuoteIdentifier));
? "*"
: string.Join(",", arrFields.Select(QuoteIdentifier));
var xBuilder = new StringBuilder($"SELECT {sFields} FROM {QuoteIdentifier(sTable)}");
AppendFilters(xBuilder, arrFilters);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2106,7 +2106,6 @@ public void ListBox4_DoubleClick(object sender, EventArgs e)
// break;
//}
end_IL_0001_3:
;
}
[RelayCommand]
public void OpenDistancePanel()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -331,8 +331,7 @@ public void btnDelete_Click(object eventSender, EventArgs eventArgs)
{
_ = DataModul.Link.Delete(Modul1.FamInArb, Modul1.PersInArb, Modul1.eLKennz);
View.Close();
short Rich;
Familie.Default.Fameinlesen(Modul1.FamInArb, out Rich);
Familie.Default.Fameinlesen(Modul1.FamInArb, out short rich);
}
}
}
Expand Down
Loading