Fixes string interpolation

This commit is contained in:
Kamron Batman 2018-09-14 13:07:43 -07:00
parent 42d0b6271f
commit 7d3a0ca265
233 changed files with 758 additions and 690 deletions

View file

@ -46,7 +46,7 @@ namespace Server.Gumps
AddImageTiled( 0, 0, 410, 448, 0xA40 );
AddAlphaRegion( 1, 1, 408, 446 );
string title = String.Format( "Comments for '{0}'", acct.Username );
string title = $"Comments for '{acct.Username}'";
int x = 205 - ((title.Length / 2) * 7);
if ( x < 120 )
x = 120;
@ -72,7 +72,8 @@ namespace Server.Gumps
AddLabel( 48, 12, 2100, "Prev Page" );
}
string html = String.Format( "[Added By: {0} on {1}]<br>{2}", comment.AddedBy, comment.LastModified.ToString( "H:mm M/d/yy" ), comment.Content );
string html =
$"[Added By: {comment.AddedBy} on {comment.LastModified.ToString("H:mm M/d/yy")}]<br>{comment.Content}";
AddHtml( 12, 44 + ((i % 5) * 80), 386, 70, html, true, true );
}
}