_window.OpenCentered();
}
- private void OnKeySelected(StationRecordKey? key)
+ private void OnKeySelected((NetEntity, uint)? key)
{
- SendMessage(new SelectGeneralStationRecord(EntMan.System<SharedStationRecordsSystem>().Convert(key)));
+ SendMessage(new SelectGeneralStationRecord(key));
}
private void OnFiltersChanged(
[GenerateTypedNameReferences]
public sealed partial class GeneralStationRecordConsoleWindow : DefaultWindow
{
- public Action<StationRecordKey?>? OnKeySelected;
+ public Action<(NetEntity, uint)?>? OnKeySelected;
public Action<GeneralStationRecordFilterType, string>? OnFiltersChanged;
RecordListing.OnItemSelected += args =>
{
- if (_isPopulating || RecordListing[args.ItemIndex].Metadata is not StationRecordKey cast)
+ if (_isPopulating || RecordListing[args.ItemIndex].Metadata is not ValueTuple<NetEntity, uint> cast)
{
return;
}