mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
25 lines
933 B
C#
25 lines
933 B
C#
using System.Collections.Generic;
|
|
using Wabbajack.Common;
|
|
using Wabbajack.Lib;
|
|
|
|
namespace Wabbajack
|
|
{
|
|
public class ManifestVM : ViewModel
|
|
{
|
|
public Manifest Manifest { get; set; }
|
|
|
|
public string Name => !string.IsNullOrWhiteSpace(Manifest.Name) ? Manifest.Name : "Wabbajack Modlist";
|
|
public string Author => !string.IsNullOrWhiteSpace(Manifest.Author) ? $"Created by {Manifest.Author}" : "Created by Jyggalag";
|
|
public string Description => !string.IsNullOrWhiteSpace(Manifest.Description) ? Manifest.Description : "";
|
|
public string InstallSize => $"Install Size: {Manifest.InstallSize.ToFileSizeString()}";
|
|
public string DownloadSize => $"Download Size: {Manifest.DownloadSize.ToFileSizeString()}";
|
|
|
|
public IEnumerable<Archive> Archives => Manifest.Archives;
|
|
|
|
public ManifestVM(Manifest manifest)
|
|
{
|
|
Manifest = manifest;
|
|
}
|
|
}
|
|
}
|