public TagEntry( TagViewModel t ) { Tag = t; }
private async void ExecuteDeleteTagCommand( TagViewModel arg ) { ConfirmationServiceArgs args = new ConfirmationServiceArgs( Strings.Confirm, string.Format( Strings.DoYouReallyWantToDeleteTagXXX, arg.Model.Name ), Strings.Yes, Strings.No ); if( !await ViewServices.Execute<IConfirmationService, bool>( args ) ) { return; } TagRepo.Delete( arg.Model ); Tags.Remove( arg ); MessengerInstance.Send( new TagRemovedMessage( arg.Model ) ); MessengerInstance.Send( new NotificationMessage( Strings.TagDeleted ) ); ReadTagNames(); }
private bool CanExecuteDeleteTagCommand(TagViewModel arg) { return(arg != null); }
private bool CanExecuteDeleteTagCommand( TagViewModel arg ) { return arg != null; }