2020-07-12 23:19:55 +08:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using Microsoft.AspNetCore.Components.Web;
|
|
|
|
|
|
|
|
|
|
namespace AntDesign
|
|
|
|
|
{
|
|
|
|
|
public class DrawerClosingEventArgs
|
|
|
|
|
{
|
2020-09-16 19:42:48 +08:00
|
|
|
|
private bool _rejected;
|
2020-07-12 23:19:55 +08:00
|
|
|
|
|
|
|
|
|
public DrawerClosingEventArgs() { }
|
|
|
|
|
|
2020-09-16 19:42:48 +08:00
|
|
|
|
public DrawerClosingEventArgs(bool reject)
|
2020-07-12 23:19:55 +08:00
|
|
|
|
{
|
2020-09-16 19:42:48 +08:00
|
|
|
|
_rejected = reject;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
internal bool Rejected { get => _rejected; }
|
2020-07-12 23:19:55 +08:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
2020-09-16 19:42:48 +08:00
|
|
|
|
/// Reject to close
|
2020-07-12 23:19:55 +08:00
|
|
|
|
/// </summary>
|
2020-09-16 19:42:48 +08:00
|
|
|
|
public void Reject()
|
|
|
|
|
{
|
|
|
|
|
_rejected = true;
|
|
|
|
|
}
|
2020-07-12 23:19:55 +08:00
|
|
|
|
}
|
|
|
|
|
}
|