mirror of
https://github.com/ZuneDev/ZuneUIXTools.git
synced 2026-07-27 13:11:59 -07:00
Initial decomp work
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Text;
|
||||
|
||||
namespace ZuneUIXTools.ViewModels
|
||||
{
|
||||
public class CompiledUIXDocumentViewModel : DocumentViewModelBase
|
||||
{
|
||||
public CompiledUIXDocumentViewModel(string fileName) : base(fileName)
|
||||
{
|
||||
Content = File.ReadAllBytes(fileName);
|
||||
}
|
||||
|
||||
private byte[] _content = null;
|
||||
public byte[] Content
|
||||
{
|
||||
get
|
||||
{
|
||||
if (FileName != null)
|
||||
_content = File.ReadAllBytes(FileName);
|
||||
return _content;
|
||||
}
|
||||
set => SetProperty(ref _content, value);
|
||||
}
|
||||
|
||||
private string _uiRoot;
|
||||
public string UIRoot
|
||||
{
|
||||
get => _uiRoot;
|
||||
set => SetProperty(ref _uiRoot, value);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user