2023-09-06 20:58:35 +03:00
|
|
|
|
using Content.Client.UserInterface.Controls;
|
|
|
|
|
|
using Robust.Client.AutoGenerated;
|
|
|
|
|
|
using Robust.Client.UserInterface;
|
|
|
|
|
|
using Robust.Client.UserInterface.XAML;
|
|
|
|
|
|
|
2024-01-28 17:32:55 +07:00
|
|
|
|
namespace Content.Client._White.Stalin.StalinUi;
|
2023-09-06 20:58:35 +03:00
|
|
|
|
|
|
|
|
|
|
[GenerateTypedNameReferences]
|
|
|
|
|
|
public sealed partial class StalinLinkWindow : FancyWindow
|
|
|
|
|
|
{
|
|
|
|
|
|
[Dependency] private readonly IUriOpener _uriOpener = default!;
|
|
|
|
|
|
|
|
|
|
|
|
public StalinLinkWindow()
|
|
|
|
|
|
{
|
|
|
|
|
|
RobustXamlLoader.Load(this);
|
|
|
|
|
|
IoCManager.InjectDependencies(this);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public void SetUri(string uri)
|
|
|
|
|
|
{
|
|
|
|
|
|
OpenInBrowserButton.OnPressed += args =>
|
|
|
|
|
|
{
|
|
|
|
|
|
_uriOpener.OpenUri(uri);
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
StalinLinkText.Text = uri;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|