예제 #1
0
파일: TagEntry.cs 프로젝트: TheSylence/GSD
 public TagEntry( TagViewModel t )
 {
     Tag = t;
 }
예제 #2
0
		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();
		}
예제 #3
0
 private bool CanExecuteDeleteTagCommand(TagViewModel arg)
 {
     return(arg != null);
 }
예제 #4
0
		private bool CanExecuteDeleteTagCommand( TagViewModel arg )
		{
			return arg != null;
		}