File: Pages_OrgChart_razor.g.cs
Project: src\src\Components\benchmarkapps\Wasm.Performance\TestApp\Wasm.Performance.TestApp.csproj (Wasm.Performance.TestApp)
#pragma checksum "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Pages\OrgChart.razor" "{8829d00f-11b8-4213-878b-770e8597ac16}" "38633999ed3fce6013c172b1d9b02f6a7c2463bbbfede42a9ce5c005d837e656"
// <auto-generated/>
#pragma warning disable 1591
namespace Wasm.Performance.TestApp.Pages
{
    #line default
    using global::System;
    using global::System.Collections.Generic;
    using global::System.Linq;
    using global::System.Threading.Tasks;
    using global::Microsoft.AspNetCore.Components;
#nullable restore
#line (1,2)-(1,23) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\_Imports.razor"
using System.Net.Http
 
#nullable disable
    ;
#nullable restore
#line (2,2)-(2,47) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\_Imports.razor"
using Microsoft.AspNetCore.Components.Routing
 
#nullable disable
    ;
#nullable restore
#line (3,2)-(3,45) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\_Imports.razor"
using Microsoft.AspNetCore.Components.Forms
 
#nullable disable
    ;
#nullable restore
#line (4,2)-(4,43) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\_Imports.razor"
using Microsoft.AspNetCore.Components.Web
 
#nullable disable
    ;
#nullable restore
#line (5,2)-(5,27) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\_Imports.razor"
using Microsoft.JSInterop
 
#nullable disable
    ;
#nullable restore
#line (6,2)-(6,32) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\_Imports.razor"
using Wasm.Performance.TestApp
 
#nullable disable
    ;
#nullable restore
#line (7,2)-(7,39) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\_Imports.razor"
using Wasm.Performance.TestApp.Shared
 
#nullable disable
    ;
    #line default
    #line hidden
    [global::Microsoft.AspNetCore.Components.LayoutAttribute(typeof(
#nullable restore
#line (1,9)-(1,19) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Pages\_Imports.razor"
MainLayout
 
#line default
#line hidden
#nullable disable
    ))]
    [global::Microsoft.AspNetCore.Components.RouteAttribute(
    // language=Route,Component
#nullable restore
#line (1,7)-(1,18) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Pages\OrgChart.razor"
"/orgchart"
 
#line default
#line hidden
#nullable disable
    )]
    #nullable restore
    public partial class OrgChart : global::Microsoft.AspNetCore.Components.ComponentBase
    #nullable disable
    {
        #pragma warning disable 1998
        protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
        {
            __builder.AddMarkupContent(0, "<h1>Org Chart</h1>\r\n");
            __builder.OpenElement(1, "fieldset");
            __builder.OpenElement(2, "label");
            __builder.AddContent(3, "Depth: ");
            __builder.OpenElement(4, "input");
            __builder.AddAttribute(5, "id", "depth");
            __builder.AddAttribute(6, "type", "number");
            __builder.AddAttribute(7, "value", global::Microsoft.AspNetCore.Components.BindConverter.FormatValue(
#nullable restore
#line (6,58)-(6,63) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Pages\OrgChart.razor"
depth
 
#line default
#line hidden
#nullable disable
            , culture: global::System.Globalization.CultureInfo.InvariantCulture));
            __builder.AddAttribute(8, "onchange", global::Microsoft.AspNetCore.Components.EventCallback.Factory.CreateBinder(this, __value => depth = __value, depth, culture: global::System.Globalization.CultureInfo.InvariantCulture));
            __builder.SetUpdatesAttributeName("value");
            __builder.CloseElement();
            __builder.CloseElement();
            __builder.AddMarkupContent(9, "\r\n    ");
            __builder.OpenElement(10, "label");
            __builder.AddContent(11, "Subordinates: ");
            __builder.OpenElement(12, "input");
            __builder.AddAttribute(13, "id", "subs");
            __builder.AddAttribute(14, "type", "number");
            __builder.AddAttribute(15, "value", global::Microsoft.AspNetCore.Components.BindConverter.FormatValue(
#nullable restore
#line (7,64)-(7,68) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Pages\OrgChart.razor"
subs
 
#line default
#line hidden
#nullable disable
            , culture: global::System.Globalization.CultureInfo.InvariantCulture));
            __builder.AddAttribute(16, "onchange", global::Microsoft.AspNetCore.Components.EventCallback.Factory.CreateBinder(this, __value => subs = __value, subs, culture: global::System.Globalization.CultureInfo.InvariantCulture));
            __builder.SetUpdatesAttributeName("value");
            __builder.CloseElement();
            __builder.CloseElement();
            __builder.AddMarkupContent(17, "\r\n\r\n    ");
            __builder.OpenElement(18, "button");
            __builder.AddAttribute(19, "id", "show");
            __builder.AddAttribute(20, "onclick", global::Microsoft.AspNetCore.Components.EventCallback.Factory.Create<global::Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this, 
#nullable restore
#line (9,33)-(9,37) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Pages\OrgChart.razor"
Show
 
#line default
#line hidden
#nullable disable
            ));
            __builder.AddContent(21, "Show");
            __builder.CloseElement();
            __builder.AddMarkupContent(22, "\r\n    ");
            __builder.OpenElement(23, "button");
            __builder.AddAttribute(24, "id", "hide");
            __builder.AddAttribute(25, "onclick", global::Microsoft.AspNetCore.Components.EventCallback.Factory.Create<global::Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this, 
#nullable restore
#line (10,33)-(10,37) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Pages\OrgChart.razor"
Hide
 
#line default
#line hidden
#nullable disable
            ));
            __builder.AddContent(26, "Hide");
            __builder.CloseElement();
            __builder.CloseElement();
#nullable restore
#line (13,2)-(15,1) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Pages\OrgChart.razor"
if (show)
{
 
#line default
#line hidden
#nullable disable
 
            __builder.OpenComponent<global::Wasm.Performance.TestApp.Pages.PersonDisplay>(27);
            __builder.AddComponentParameter(28, nameof(global::Wasm.Performance.TestApp.Pages.PersonDisplay.
#nullable restore
#line (15,20)-(15,26) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Pages\OrgChart.razor"
Person
 
#line default
#line hidden
#nullable disable
            ), global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<global::Wasm.Performance.TestApp.Person>(
#nullable restore
#line (15,28)-(15,64) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Pages\OrgChart.razor"
Person.GenerateOrgChart(depth, subs)
 
#line default
#line hidden
#nullable disable
            ));
            __builder.CloseComponent();
#nullable restore
#line (16,1)-(17,1) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Pages\OrgChart.razor"
}
 
#line default
#line hidden
#nullable disable
 
        }
        #pragma warning restore 1998
#nullable restore
#line (19,2)-(38,1) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Pages\OrgChart.razor"
 
    int depth = 2;
    int subs = 5;
    bool show;
 
    protected override void OnAfterRender(bool firstRender)
    {
        BenchmarkEvent.Send(JSRuntime, "Finished OrgChart rendering");
    }
 
    void Hide()
    {
        show = false;
    }
 
    void Show()
    {
        show = true;
    }
 
#line default
#line hidden
#nullable disable
 
        [global::Microsoft.AspNetCore.Components.InjectAttribute] private 
#nullable restore
#line (2,9)-(2,19) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Pages\OrgChart.razor"
IJSRuntime
 
#line default
#line hidden
#nullable disable
         
#nullable restore
#line (2,20)-(2,29) "D:\a\_work\1\s\src\Components\benchmarkapps\Wasm.Performance\TestApp\Pages\OrgChart.razor"
JSRuntime
 
#line default
#line hidden
#nullable disable
         { get; set; }
         = default!;
    }
}
#pragma warning restore 1591