mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-18 05:59:03 +03:00
41 lines
890 B
C#
41 lines
890 B
C#
using Content.Client.Eui;
|
|
using Content.Shared.Administration;
|
|
using Content.Shared.Eui;
|
|
|
|
namespace Content.Client.Administration.UI;
|
|
|
|
public sealed class JobWhitelistsEui : BaseEui
|
|
{
|
|
private JobWhitelistsWindow Window;
|
|
|
|
public JobWhitelistsEui()
|
|
{
|
|
Window = new JobWhitelistsWindow();
|
|
Window.OnClose += () => SendMessage(new CloseEuiMessage());
|
|
Window.OnSetJob += (id, whitelisted) => SendMessage(new SetJobWhitelistedMessage(id, whitelisted));
|
|
}
|
|
|
|
public override void HandleState(EuiStateBase state)
|
|
{
|
|
if (state is not JobWhitelistsEuiState cast)
|
|
return;
|
|
|
|
Window.HandleState(cast);
|
|
}
|
|
|
|
public override void Opened()
|
|
{
|
|
base.Opened();
|
|
|
|
Window.OpenCentered();
|
|
}
|
|
|
|
public override void Closed()
|
|
{
|
|
base.Closed();
|
|
|
|
Window.Close();
|
|
Window.Dispose();
|
|
}
|
|
}
|