2021-12-05 18:09:01 +01:00
|
|
|
using Robust.Client.AutoGenerated;
|
2019-09-18 20:24:55 +02:00
|
|
|
using Robust.Client.UserInterface.CustomControls;
|
2021-12-05 18:09:01 +01:00
|
|
|
using Robust.Client.UserInterface.XAML;
|
2022-03-07 21:45:52 -06:00
|
|
|
|
2021-06-09 22:19:39 +02:00
|
|
|
using static Content.Shared.MedicalScanner.SharedMedicalScannerComponent;
|
2019-09-18 20:24:55 +02:00
|
|
|
|
2021-06-09 22:19:39 +02:00
|
|
|
namespace Content.Client.MedicalScanner.UI
|
2019-09-18 20:24:55 +02:00
|
|
|
{
|
2021-09-19 19:36:09 +02:00
|
|
|
[GenerateTypedNameReferences]
|
2022-02-16 00:23:23 -07:00
|
|
|
public sealed partial class MedicalScannerWindow : DefaultWindow
|
2019-09-18 20:24:55 +02:00
|
|
|
{
|
2020-08-19 10:23:20 -04:00
|
|
|
public MedicalScannerWindow()
|
|
|
|
|
{
|
2021-09-19 19:36:09 +02:00
|
|
|
RobustXamlLoader.Load(this);
|
2020-08-19 10:23:20 -04:00
|
|
|
}
|
|
|
|
|
|
2019-09-18 20:24:55 +02:00
|
|
|
public void Populate(MedicalScannerBoundUserInterfaceState state)
|
|
|
|
|
{
|
2022-03-07 21:45:52 -06:00
|
|
|
ScanButton.Disabled = !state.IsScannable;
|
2019-09-18 20:24:55 +02:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|