2024-04-18 01:44:37 +02:00
|
|
|
|
using Wino.Core.Domain.Enums;
|
|
|
|
|
|
using Wino.Core.Domain.Interfaces;
|
|
|
|
|
|
|
2025-02-16 11:54:23 +01:00
|
|
|
|
namespace Wino.Core.Domain.Models.Menus;
|
2025-02-16 11:35:43 +01:00
|
|
|
|
|
2025-02-16 11:54:23 +01:00
|
|
|
|
public class MailOperationMenuItem : MenuOperationItemBase<MailOperation>, IMenuOperation
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Gets or sets whether this menu item should be placed in SecondaryCommands if used in CommandBar.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public bool IsSecondaryMenuPreferred { get; set; }
|
2025-02-16 11:43:30 +01:00
|
|
|
|
|
2025-02-16 11:54:23 +01:00
|
|
|
|
protected MailOperationMenuItem(MailOperation operation, bool isEnabled, bool isSecondaryMenuItem = false) : base(operation, isEnabled)
|
|
|
|
|
|
{
|
|
|
|
|
|
IsSecondaryMenuPreferred = isSecondaryMenuItem;
|
2025-02-16 11:43:30 +01:00
|
|
|
|
}
|
2025-02-16 11:54:23 +01:00
|
|
|
|
|
|
|
|
|
|
public static MailOperationMenuItem Create(MailOperation operation, bool isEnabled = true, bool isSecondaryMenuItem = false)
|
|
|
|
|
|
=> new MailOperationMenuItem(operation, isEnabled, isSecondaryMenuItem);
|
2024-04-18 01:44:37 +02:00
|
|
|
|
}
|