mirror of
https://github.com/achiez/NebulaAuth-Steam-Desktop-Authenticator-by-Achies.git
synced 2026-07-25 06:14:31 +00:00
26 lines
880 B
C#
26 lines
880 B
C#
using System.Collections.Generic;
|
|
using System.Collections.ObjectModel;
|
|
using CommunityToolkit.Mvvm.ComponentModel;
|
|
|
|
namespace NebulaAuth.ViewModel.Other;
|
|
|
|
public partial class MafileImportDialogVM : ObservableObject
|
|
{
|
|
public MafileImportDialogVM(IEnumerable<string> groups, int totalCount, int conflictCount)
|
|
{
|
|
Groups = new ObservableCollection<string>(groups);
|
|
TotalCount = totalCount;
|
|
ConflictCount = conflictCount;
|
|
}
|
|
|
|
public ObservableCollection<string> Groups { get; }
|
|
public int TotalCount { get; }
|
|
public int ConflictCount { get; }
|
|
public bool HasConflicts => ConflictCount > 0;
|
|
[ObservableProperty] private string? _group;
|
|
[ObservableProperty] private bool _addToGroup;
|
|
[ObservableProperty] private bool _overwriteConflicts;
|
|
}
|
|
|
|
public record MafileImportDialogResult(string? Group, bool OverwriteConflicts);
|