// Copyright © Selmo Technology GmbH. All Rights Reserved

using Microsoft.AspNetCore.Components;
using SelmoStudio.Hmi.Server.ProcessValue.Model;

namespace SelmoStudio.Hmi.Server.Shared.Components.BaseComponents
{
    public partial class ProcessValuesDisplayComponent
    {
        [Parameter]
        public IList<ProcessInfoDataCollection> ProcessValues { get; set; }

        protected override Task OnParametersSetAsync()
        {
            // TODO Use real value source TODO Change 0 to real process value
            ProcessValues = _projectService.GetTestProcessInfoCollections();

            return base.OnParametersSetAsync();
        }
    }
}