mirror of
https://github.com/achiez/NebulaAuth-Steam-Desktop-Authenticator-by-Achies.git
synced 2026-07-25 14:24:32 +00:00
38 lines
898 B
C#
38 lines
898 B
C#
using System.Threading.Tasks;
|
|
using CommunityToolkit.Mvvm.ComponentModel;
|
|
using CommunityToolkit.Mvvm.Input;
|
|
using MaterialDesignThemes.Wpf;
|
|
using NebulaAuth.Core;
|
|
using NebulaAuth.View;
|
|
|
|
namespace NebulaAuth.ViewModel;
|
|
|
|
public partial class MainVM : ObservableObject
|
|
{
|
|
[RelayCommand]
|
|
private Task OpenSetPasswordsDialog()
|
|
{
|
|
return DialogsController.ShowSetAccountsPasswordDialog();
|
|
}
|
|
|
|
[RelayCommand]
|
|
private Task OpenExporterDialog()
|
|
{
|
|
return DialogsController.ShowExportDialog();
|
|
}
|
|
|
|
[RelayCommand]
|
|
public Task LinkAccount()
|
|
{
|
|
return DialogsController.ShowLinkerDialog();
|
|
}
|
|
|
|
[RelayCommand]
|
|
private async Task OpenLinksView()
|
|
{
|
|
CurrentDialogHost.CloseOnClickAway = true;
|
|
var view = new LinksView();
|
|
await DialogHost.Show(view);
|
|
CurrentDialogHost.CloseOnClickAway = false;
|
|
}
|
|
} |