重构项目,将项目拆分(临时提交)
This commit is contained in:
22
DMS.WPF/ViewModels/Dialogs/PollLevelDialogViewModel.cs
Normal file
22
DMS.WPF/ViewModels/Dialogs/PollLevelDialogViewModel.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using CommunityToolkit.Mvvm.ComponentModel;
|
||||
using DMS.Core.Enums;
|
||||
|
||||
namespace DMS.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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user