@inherits ComponentDefault
@using ThingsGateway.Admin.Application
@using ThingsGateway.Admin.Razor
@using ThingsGateway.Gateway.Application
@namespace ThingsGateway.Gateway.Razor


@if (ShowType == ShowTypeEnum.VariableTable)
{
    <VariableRuntimeInfo Items="VariableRuntimes" SelectModel="SelectModel" AutoRestartThread="AutoRestartThread" />
}
else if (ShowType == ShowTypeEnum.LogInfo)
{
    if (GlobalData.ReadOnlyIdDevices.TryGetValue(ShowDeviceRuntime, out var device))
    {
        <DeviceRuntimeInfo DeviceRuntime="device" />
    }
    if (GlobalData.ReadOnlyChannels.TryGetValue(ShowChannelRuntime, out var channel))
    {
        <ChannelRuntimeInfo ChannelRuntime="channel" />
    }
}
else if (ShowType == ShowTypeEnum.ChannelTable)
{
    <ChannelTable SelectModel="SelectModel" Items="ChannelRuntimes" AutoRestartThread=AutoRestartThread />
}

else if (ShowType == ShowTypeEnum.DeviceTable)
{
    <DeviceTable SelectModel="SelectModel" Items="DeviceRuntimes" AutoRestartThread=AutoRestartThread />
}