Files
qhmes/yy-admin-master/YY.Admin/ViewModels/SysManage/RoleManagementViewModel.cs

58 lines
1.7 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using YY.Admin.Services.Service.User;
using YY.Admin.Services.Service;
using YY.Admin.ViewModels.Control;
namespace YY.Admin.ViewModels.SysManage
{
public class RoleManagementViewModel : BaseViewModel
{
public DelegateCommand AlertDialogCommand { get; }
public DelegateCommand ConfirmDialogCommand { get; }
public DelegateCommand ErrorDialogCommand { get; }
public DelegateCommand SuccessDialogCommand { get; }
public DelegateCommand WarningDialogCommand { get; }
public RoleManagementViewModel(
IContainerExtension container,
IRegionManager regionManager
) : base(container, regionManager)
{
AlertDialogCommand = new DelegateCommand( () => AlertDialogAsync());
ConfirmDialogCommand = new DelegateCommand( () => ConfirmDialogAsync());
ErrorDialogCommand = new DelegateCommand( () => ErrorDialogAsync());
SuccessDialogCommand = new DelegateCommand( () => SuccessDialogAsync());
WarningDialogCommand = new DelegateCommand( () => WarningDialogAsync());
}
private void WarningDialogAsync()
{
throw new NotImplementedException();
}
private void SuccessDialogAsync()
{
throw new NotImplementedException();
}
private void ErrorDialogAsync()
{
throw new NotImplementedException();
}
private void ConfirmDialogAsync()
{
base.Confirm("测试Confirm");
}
private void AlertDialogAsync()
{
base.Alert("测试Alert");
}
}
}