mirror of
https://github.com/claunia/marechai.git
synced 2025-12-16 19:14:25 +00:00
29 lines
775 B
C#
29 lines
775 B
C#
using System.Threading.Tasks;
|
|
using Marechai.ViewModels;
|
|
using Microsoft.AspNetCore.Components;
|
|
|
|
namespace Marechai.Pages.Machines
|
|
{
|
|
public partial class View
|
|
{
|
|
bool[] _gpuVisible;
|
|
bool _loaded;
|
|
|
|
MachineViewModel _machine;
|
|
bool[] _processorVisible;
|
|
bool[] _soundVisible;
|
|
[Parameter]
|
|
public int Id { get; set; }
|
|
|
|
protected override async Task OnInitializedAsync()
|
|
{
|
|
_machine = await Service.GetMachine(Id);
|
|
|
|
_processorVisible = new bool[_machine.Processors.Count];
|
|
_gpuVisible = new bool[_machine.Gpus.Count];
|
|
_soundVisible = new bool[_machine.SoundSynthesizers.Count];
|
|
|
|
_loaded = true;
|
|
}
|
|
}
|
|
} |