You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
787 B
37 lines
787 B
@implements IDisposable |
|
|
|
|
|
<div> |
|
<Button Color="Color.Primary" @onclick="OnLoad">Load</Button> |
|
<button @onclick="OnLoad">Load</button> |
|
</div> |
|
|
|
<div> |
|
<textarea @bind="buildData" @bind:event="oninput" |
|
style="background-color: #36393F; width: 330px; height: 400px;"> |
|
</textarea> |
|
</div> |
|
|
|
@code { |
|
string buildData = ""; |
|
|
|
[Inject] |
|
IBuildComparisonService BuildComparisionService { get; set; } = default!; |
|
|
|
protected override void OnInitialized() |
|
{ |
|
base.OnInitialized(); |
|
BuildComparisionService.Subscribe(StateHasChanged); |
|
} |
|
|
|
void IDisposable.Dispose() |
|
{ |
|
BuildComparisionService.Unsubscribe(StateHasChanged); |
|
} |
|
|
|
void OnLoad() |
|
{ |
|
BuildComparisionService.LoadJson(buildData); |
|
} |
|
|
|
} |