26 lines
688 B
C#
26 lines
688 B
C#
using System.Collections.ObjectModel;
|
|
using Avalonia.Controls;
|
|
using CommunityToolkit.Mvvm.Input;
|
|
using HetznerCloudApi;
|
|
using PSCHelpdesk.Plugins.HetznerServer.Models;
|
|
using PSCHelpdesk.Plugins.HetznerServer.Views;
|
|
using PSCHelpdesk.Shared.ViewModels;
|
|
|
|
namespace PSCHelpdesk.Plugins.HetznerServer.ViewModels;
|
|
|
|
public partial class HetznerSettingsViewModel : ViewModelBase, IViewModelBase
|
|
{
|
|
private string _apiKey;
|
|
public HetznerSettingsViewModel()
|
|
{
|
|
LocalSetting settings = new LocalSetting();
|
|
settings.Load();
|
|
|
|
}
|
|
|
|
public string ApiKey
|
|
{
|
|
get => _apiKey;
|
|
set => SetAndRaisePropertyChanged(ref _apiKey, value);
|
|
}
|
|
} |