Files
NebulaLauncher/Nebula.Launcher/ViewModels/ContentView/DecompilerContentView.cs

26 lines
718 B
C#
Raw Normal View History

using System.IO;
using Nebula.Launcher.Services;
using Nebula.Launcher.ViewModels.Pages;
2025-03-14 18:32:20 +03:00
using Nebula.Shared.Utils;
namespace Nebula.Launcher.ViewModels.ContentView;
[ConstructGenerator]
public sealed partial class DecompilerContentView: ContentViewBase
{
[GenerateProperty] private DecompilerService decompilerService {get;}
2025-03-14 18:32:20 +03:00
public override void InitialiseWithData(ContentPath path, Stream stream, ContentEntry contentEntry)
{
base.InitialiseWithData(path, stream, contentEntry);
decompilerService.OpenServerDecompiler(contentEntry.ServerName.ToRobustUrl());
}
protected override void Initialise()
{
}
protected override void InitialiseInDesignMode()
{
}
}