2021-11-08 17:22:42 +13:00
|
|
|
using Content.Client.Eui;
|
|
|
|
|
using Content.Shared.Administration;
|
|
|
|
|
using Content.Shared.Eui;
|
|
|
|
|
using JetBrains.Annotations;
|
|
|
|
|
|
|
|
|
|
namespace Content.Client.Administration.UI.ManageSolutions
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Admin Eui for displaying and editing the reagents in a solution.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[UsedImplicitly]
|
|
|
|
|
public sealed class EditSolutionsEui : BaseEui
|
|
|
|
|
{
|
|
|
|
|
private readonly EditSolutionsWindow _window;
|
|
|
|
|
|
|
|
|
|
public EditSolutionsEui()
|
|
|
|
|
{
|
|
|
|
|
_window = new EditSolutionsWindow();
|
2023-04-29 15:16:24 +12:00
|
|
|
_window.OnClose += () => SendMessage(new CloseEuiMessage());
|
2021-11-08 17:22:42 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override void Opened()
|
|
|
|
|
{
|
|
|
|
|
base.Opened();
|
|
|
|
|
_window.OpenCentered();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override void Closed()
|
|
|
|
|
{
|
|
|
|
|
base.Closed();
|
|
|
|
|
_window.Close();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override void HandleState(EuiStateBase baseState)
|
|
|
|
|
{
|
|
|
|
|
var state = (EditSolutionsEuiState) baseState;
|
2024-01-13 05:52:42 +01:00
|
|
|
_window.SetState(state);
|
2021-11-08 17:22:42 +13:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|