完成修改更新频率

This commit is contained in:
2025-09-02 17:42:11 +08:00
parent 6d7636d664
commit 94aa9b0485
8 changed files with 118 additions and 54 deletions

View File

@@ -2,11 +2,12 @@ using System;
using System.Collections.Generic;
using System.Linq;
using CommunityToolkit.Mvvm.ComponentModel;
using CommunityToolkit.Mvvm.Input;
using DMS.Core.Enums;
namespace DMS.WPF.ViewModels.Dialogs
{
public partial class PollLevelDialogViewModel : ObservableObject
public partial class PollLevelDialogViewModel : DialogViewModelBase<PollLevelType?>
{
[ObservableProperty]
private PollLevelType _selectedPollLevelType;
@@ -17,6 +18,20 @@ namespace DMS.WPF.ViewModels.Dialogs
{
PollLevelTypes = Enum.GetValues(typeof(PollLevelType)).Cast<PollLevelType>().ToList();
SelectedPollLevelType = currentPollLevelType;
Title = "修改轮询频率";
PrimaryButText = "确定";
}
[RelayCommand]
private void PrimaryButton()
{
Close(SelectedPollLevelType);
}
[RelayCommand]
private void CancleButton()
{
Close(null);
}
}
}