mirror of
https://github.com/DeltaV-Station/Delta-v.git
synced 2026-10-01 16:47:26 +00:00
* 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>
41 lines
898 B
C#
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();
|
|
}
|
|
}
|