2024-04-18 01:44:37 +02:00
|
|
|
|
using System;
|
|
|
|
|
|
|
2024-07-21 05:45:02 +02:00
|
|
|
|
namespace Wino.Domain.Models.Menus
|
2024-04-18 01:44:37 +02:00
|
|
|
|
{
|
|
|
|
|
|
public class MenuOperationItemBase<TOperation> where TOperation : Enum
|
|
|
|
|
|
{
|
|
|
|
|
|
public MenuOperationItemBase(TOperation operation, bool isEnabled)
|
|
|
|
|
|
{
|
|
|
|
|
|
Operation = operation;
|
|
|
|
|
|
IsEnabled = isEnabled;
|
|
|
|
|
|
Identifier = operation.ToString();
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public TOperation Operation { get; set; }
|
|
|
|
|
|
public string Identifier { get; set; }
|
|
|
|
|
|
public bool IsEnabled { get; set; }
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|