LANCommander/LANCommander.Launcher/ViewModels/ManualViewerViewModel.cs
Pat Hartl b183e4b18c Remove old launcher, rename Avalonia launcher
Also adds ARM builds for Linux + Windows launcher
2026-06-06 05:49:24 -05:00

28 lines
599 B
C#

using System;
using CommunityToolkit.Mvvm.ComponentModel;
using CommunityToolkit.Mvvm.Input;
namespace LANCommander.Launcher.ViewModels;
public partial class ManualViewerViewModel : ViewModelBase
{
[ObservableProperty]
private string _title = "Manual";
[ObservableProperty]
private string _filePath = string.Empty;
public Action? CloseAction { get; set; }
public ManualViewerViewModel(string title, string filePath)
{
Title = title;
FilePath = filePath;
}
[RelayCommand]
private void Close()
{
CloseAction?.Invoke();
}
}