mirror of
https://gitlab.com/nullmax17/PlombirLauncher.git
synced 2025-03-15 18:31:11 +03:00
19 lines
864 B
C#
19 lines
864 B
C#
using System.Collections.Generic;
|
|
using Plombir;
|
|
|
|
namespace LauncherGUI.ViewModels;
|
|
|
|
public partial class MainWindowViewModel : ViewModelBase
|
|
{
|
|
public string Greeting { get; } = "Plombir launcher";
|
|
|
|
private string? _userNick = ConfigManager.ReadConfig("nickname");
|
|
public string? Usernick { get => _userNick; set { _userNick = value; OnPropertyChanged(nameof(Usernick)); } }
|
|
|
|
private string? _selectedVersion = ConfigManager.ReadConfig("last-version-launched");
|
|
public string? SelectedVersion { get => _selectedVersion; set { _selectedVersion = value; OnPropertyChanged(nameof(SelectedVersion)); } }
|
|
|
|
private string? _runtimeLocation = ConfigManager.ReadConfig("runtime-path");
|
|
public string? RuntimeLocation { get => _runtimeLocation; set { _runtimeLocation = value; OnPropertyChanged(nameof(RuntimeLocation)); } }
|
|
}
|