private void OnDeleteMetadataCompleted(object sender, DeleteMetadataCompletedEventArgs e) { bool successful = false; if (e.Error == null) { successful = e.Result.DeleteSuccessful; if (DeleteMetadataCompleted != null) { if (successful) { DeleteMetadataCompleted.Invoke(this, new DeleteEventArgs(successful, e.Result.DeletedId)); } else { DeleteMetadataCompleted.Invoke(this, new DeleteEventArgs(successful, Guid.Empty)); } } } }
private void OnDeleteMetadataCompleted(object sender, DeleteMetadataCompletedEventArgs e) { bool successful = false; if (e.Error == null) { successful = e.Result.DeleteSuccessful; if (DeleteMetadataCompleted != null) { if (successful) { DeleteMetadataCompleted.Invoke(this, new DeleteEventArgs(successful, e.Result.DeletedId)); } else { DeleteMetadataCompleted.Invoke(this, new DeleteEventArgs(successful, Guid.Empty)); } } } }