74 lines
2.2 KiB
C#
74 lines
2.2 KiB
C#
using System.Collections.Generic;
|
|
|
|
namespace TBF.Rig.BridgeComponents.GciBridge.UI.Grid
|
|
{
|
|
public static class MeterGridConfigProvider
|
|
{
|
|
public enum MeterGridColumnType
|
|
{
|
|
Text,
|
|
CheckBox
|
|
}
|
|
|
|
public static List<MeterGridColumnConfig> GetDefault()
|
|
{
|
|
return new List<MeterGridColumnConfig>
|
|
{
|
|
new MeterGridColumnConfig
|
|
{
|
|
Name = "Slot",
|
|
HeaderText = "Slot",
|
|
ColumnType = MeterGridColumnType.Text,
|
|
DisplayIndex = 0,
|
|
Width = 30,
|
|
ReadOnly = true
|
|
},
|
|
|
|
new MeterGridColumnConfig
|
|
{
|
|
Name = "Selected",
|
|
HeaderText = "Selected",
|
|
ColumnType = MeterGridColumnType.CheckBox,
|
|
DisplayIndex = 1,
|
|
Width = 30
|
|
},
|
|
|
|
new MeterGridColumnConfig
|
|
{
|
|
Name = "PcbId",
|
|
HeaderText = "PcbId",
|
|
ColumnType = MeterGridColumnType.Text,
|
|
DisplayIndex = 2,
|
|
Width = 80
|
|
},
|
|
|
|
new MeterGridColumnConfig
|
|
{
|
|
Name = "IsConnected",
|
|
HeaderText = "IsConnected",
|
|
ColumnType = MeterGridColumnType.CheckBox,
|
|
DisplayIndex = 3,
|
|
Width = 30
|
|
},
|
|
|
|
new MeterGridColumnConfig
|
|
{
|
|
Name = "IsLoggedOn",
|
|
HeaderText = "IsLoggedOn",
|
|
ColumnType = MeterGridColumnType.CheckBox,
|
|
DisplayIndex = 4,
|
|
Width = 30
|
|
},
|
|
|
|
new MeterGridColumnConfig
|
|
{
|
|
Name = "FwVersion",
|
|
HeaderText = "FwVersion",
|
|
ColumnType = MeterGridColumnType.Text,
|
|
DisplayIndex = 5,
|
|
Width = 80
|
|
}
|
|
};
|
|
}
|
|
}
|
|
} |