2025-03-14 17:08:35 +03:00
|
|
|
using System.IO;
|
|
|
|
|
using Nebula.Launcher.Services;
|
|
|
|
|
using Nebula.Launcher.ViewModels.Pages;
|
2025-03-14 18:32:20 +03:00
|
|
|
using Nebula.Shared.Utils;
|
2025-03-14 17:08:35 +03:00
|
|
|
|
|
|
|
|
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());
|
|
|
|
|
}
|
|
|
|
|
|
2025-03-14 17:08:35 +03:00
|
|
|
protected override void Initialise()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected override void InitialiseInDesignMode()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
}
|