Skip to content

Commit

Permalink
Update the layout of ReportViewer to optimize the presentation of the…
Browse files Browse the repository at this point in the history
… information
  • Loading branch information
Huaxing YUAN authored and Huaxing YUAN committed Jan 7, 2025
1 parent d298967 commit aa14285
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFrameworks>net6.0-windows;net9.0-windows</TargetFrameworks>
<TargetFrameworks>net6.0-windows</TargetFrameworks>
<Nullable>disable</Nullable>
<UseWPF>true</UseWPF>
<AssemblyName>ReportViewer</AssemblyName>
Expand Down
2 changes: 1 addition & 1 deletion src/AxaFrance.WebEngine.ReportViewer/MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@
</Grid>

</TabItem>
<TabItem Header="Impact" x:Name="tabResourceUsages" Visibility="Collapsed">
<TabItem Header="Ressources" x:Name="tabRessourceUsages" Visibility="Collapsed">
<Grid>

<Grid.RowDefinitions>
Expand Down
4 changes: 2 additions & 2 deletions src/AxaFrance.WebEngine.ReportViewer/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ private void lvTestcases_SelectionChanged(object sender, System.Windows.Controls

if(tc.AttachedData.FirstOrDefault(x=>x.Name == "ResourceUsage") != null)
{
tabResourceUsages.Visibility = Visibility.Visible;
tabRessourceUsages.Visibility = Visibility.Visible;
var data = tc.AttachedData.FirstOrDefault(x => x.Name == "ResourceUsage")?.Value;
string json = System.Text.Encoding.UTF8.GetString(data);
var resourceUsage = Newtonsoft.Json.JsonConvert.DeserializeObject<Dictionary<string, NetworkRequest>>(json);
Expand All @@ -184,7 +184,7 @@ private void lvTestcases_SelectionChanged(object sender, System.Windows.Controls
}
else
{
tabResourceUsages.Visibility = Visibility.Collapsed;
tabRessourceUsages.Visibility = Visibility.Collapsed;
}


Expand Down
2 changes: 1 addition & 1 deletion src/Samples.DataDriven/Samples.DataDriven.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net9.0</TargetFramework>
<TargetFrameworks>net6.0-windows;net9.0-windows</TargetFrameworks>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>disable</Nullable>
<IsPublishable>False</IsPublishable>
Expand Down

0 comments on commit aa14285

Please sign in to comment.