Fixes string interpolation
This commit is contained in:
parent
42d0b6271f
commit
7d3a0ca265
233 changed files with 758 additions and 690 deletions
|
|
@ -105,7 +105,7 @@ namespace Server.Engines.Reports
|
|||
ProcessStartInfo psi = new ProcessStartInfo();
|
||||
|
||||
psi.FileName = "ftp";
|
||||
psi.Arguments = String.Format( "-i -s:\"{0}\"", filePath );
|
||||
psi.Arguments = $"-i -s:\"{filePath}\"";
|
||||
|
||||
psi.CreateNoWindow = true;
|
||||
psi.WindowStyle = ProcessWindowStyle.Hidden;
|
||||
|
|
@ -298,7 +298,8 @@ namespace Server.Engines.Reports
|
|||
html.Write( "<!-- " );
|
||||
|
||||
html.AddAttribute( HtmlAttr.Href, "#" );
|
||||
html.AddAttribute( HtmlAttr.Onclick, String.Format( "javascript:window.open('{0}.html','ChildWindow','width={1},height={2},resizable=no,status=no,toolbar=no')", SafeFileName( FindNameFrom( chart ) ), bmp.Width+30,bmp.Height+80 ) );
|
||||
html.AddAttribute( HtmlAttr.Onclick,
|
||||
$"javascript:window.open('{SafeFileName(FindNameFrom(chart))}.html','ChildWindow','width={bmp.Width + 30},height={bmp.Height + 80},resizable=no,status=no,toolbar=no')");
|
||||
html.RenderBeginTag( HtmlTag.A );
|
||||
html.Write( chart.Name );
|
||||
html.RenderEndTag();
|
||||
|
|
@ -393,7 +394,8 @@ namespace Server.Engines.Reports
|
|||
html.Write( "<!-- " );
|
||||
|
||||
html.AddAttribute( HtmlAttr.Href, "#" );
|
||||
html.AddAttribute( HtmlAttr.Onclick, String.Format( "javascript:window.open('{0}.html','ChildWindow','width={1},height={2},resizable=no,status=no,toolbar=no')", SafeFileName( FindNameFrom( graph ) ), bmp.Width+30,bmp.Height+80 ) );
|
||||
html.AddAttribute( HtmlAttr.Onclick,
|
||||
$"javascript:window.open('{SafeFileName(FindNameFrom(graph))}.html','ChildWindow','width={bmp.Width + 30},height={bmp.Height + 80},resizable=no,status=no,toolbar=no')");
|
||||
html.RenderBeginTag( HtmlTag.A );
|
||||
html.Write( graph.Name );
|
||||
html.RenderEndTag();
|
||||
|
|
|
|||
|
|
@ -141,7 +141,7 @@ namespace Server.Engines.Reports
|
|||
}
|
||||
|
||||
float perc = (item.SweepSize * 100.0f) / 360.0f;
|
||||
string percString = String.Format( "{0:F0}%", perc );
|
||||
string percString = $"{perc:F0}%";
|
||||
|
||||
float px = pieRect.X+(pieRect.Width/2);
|
||||
float py = pieRect.Y+(pieRect.Height/2);
|
||||
|
|
|
|||
|
|
@ -404,9 +404,9 @@ namespace Server.Engines.Reports
|
|||
if ( pl.Faction.Commander == pl.Mobile )
|
||||
office = "Commanding Lord";
|
||||
else if ( pl.Finance != null )
|
||||
office = String.Format( "{0} Finance Minister", pl.Finance.Definition.FriendlyName );
|
||||
office = $"{pl.Finance.Definition.FriendlyName} Finance Minister";
|
||||
else if ( pl.Sheriff != null )
|
||||
office = String.Format( "{0} Sheriff", pl.Sheriff.Definition.FriendlyName );
|
||||
office = $"{pl.Sheriff.Definition.FriendlyName} Sheriff";
|
||||
else
|
||||
office = "";
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue