file scoped namespaces (#565)
This commit is contained in:
@@ -1,21 +1,20 @@
|
||||
using Wino.Core.Domain.Enums;
|
||||
using Wino.Core.Domain.Interfaces;
|
||||
|
||||
namespace Wino.Core.Domain.Models.Menus
|
||||
namespace Wino.Core.Domain.Models.Menus;
|
||||
|
||||
public class MailOperationMenuItem : MenuOperationItemBase<MailOperation>, IMenuOperation
|
||||
{
|
||||
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; }
|
||||
|
||||
protected MailOperationMenuItem(MailOperation operation, bool isEnabled, bool isSecondaryMenuItem = false) : base(operation, isEnabled)
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets whether this menu item should be placed in SecondaryCommands if used in CommandBar.
|
||||
/// </summary>
|
||||
public bool IsSecondaryMenuPreferred { get; set; }
|
||||
|
||||
protected MailOperationMenuItem(MailOperation operation, bool isEnabled, bool isSecondaryMenuItem = false) : base(operation, isEnabled)
|
||||
{
|
||||
IsSecondaryMenuPreferred = isSecondaryMenuItem;
|
||||
}
|
||||
|
||||
public static MailOperationMenuItem Create(MailOperation operation, bool isEnabled = true, bool isSecondaryMenuItem = false)
|
||||
=> new MailOperationMenuItem(operation, isEnabled, isSecondaryMenuItem);
|
||||
IsSecondaryMenuPreferred = isSecondaryMenuItem;
|
||||
}
|
||||
|
||||
public static MailOperationMenuItem Create(MailOperation operation, bool isEnabled = true, bool isSecondaryMenuItem = false)
|
||||
=> new MailOperationMenuItem(operation, isEnabled, isSecondaryMenuItem);
|
||||
}
|
||||
|
||||
@@ -1,18 +1,17 @@
|
||||
using System;
|
||||
|
||||
namespace Wino.Core.Domain.Models.Menus
|
||||
{
|
||||
public class MenuOperationItemBase<TOperation> where TOperation : Enum
|
||||
{
|
||||
public MenuOperationItemBase(TOperation operation, bool isEnabled)
|
||||
{
|
||||
Operation = operation;
|
||||
IsEnabled = isEnabled;
|
||||
Identifier = operation.ToString();
|
||||
}
|
||||
namespace Wino.Core.Domain.Models.Menus;
|
||||
|
||||
public TOperation Operation { get; set; }
|
||||
public string Identifier { get; set; }
|
||||
public bool IsEnabled { get; set; }
|
||||
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; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user