using System.Collections.Generic; using System.Threading.Tasks; using System.Windows.Input; using Windows.UI.Xaml.Controls; using ModernKeePass.Application.Group.Models; namespace ModernKeePass.Interfaces { public interface IVmEntity { Symbol Icon { get; } string Id { get; } string Title { get; set; } IEnumerable BreadCrumb { get; } bool IsEditMode { get; } /// /// Save changes to Model /// ICommand SaveCommand { get; } /// /// Restore ViewModel /// ICommand UndoDeleteCommand { get; } /// /// Move a entity to the destination group /// /// The destination to move the entity to Task Move(GroupVm destination); /// /// Delete from Model /// Task CommitDelete(); /// /// Delete from ViewModel /// Task MarkForDelete(string recycleBinTitle); } }