添加修改轮询时间的功能

This commit is contained in:
2025-07-05 16:13:46 +08:00
parent b019269bd7
commit d6939a7e66
9 changed files with 122 additions and 3 deletions

View File

@@ -0,0 +1,22 @@
using System;
using System.Collections.Generic;
using System.Linq;
using CommunityToolkit.Mvvm.ComponentModel;
using PMSWPF.Enums;
namespace PMSWPF.ViewModels.Dialogs
{
public partial class PollLevelDialogViewModel : ObservableObject
{
[ObservableProperty]
private PollLevelType _selectedPollLevelType;
public List<PollLevelType> PollLevelTypes { get; }
public PollLevelDialogViewModel(PollLevelType currentPollLevelType)
{
PollLevelTypes = Enum.GetValues(typeof(PollLevelType)).Cast<PollLevelType>().ToList();
SelectedPollLevelType = currentPollLevelType;
}
}
}