Files
Delta-v/Content.Client/_DV/Administration/UI/JobWhitelistsEui.cs
T
deltanedasanddeltanedas ec94579ebc the great namespace refactor (#2574)
* refactor DeltaV/deltav resources to _DV

* change DeltaV namespaces to _DV

* add space before all DeltaV comments

* update xamls

* fix and move arena parallax to _DV

* more fix

* refactor even more stuff

* fix the grid fills

---------

Co-authored-by: deltanedas <@deltanedas:kde.org>
2025-01-01 07:50:34 +00:00

41 lines
898 B
C#

using Content.Client.Eui;
using Content.Shared._DV.Administration;
using Content.Shared.Eui;
namespace Content.Client._DV.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();
}
}