Questions tagged as 'c#'

1
answer

Does not send email retrieval of password by SendGrid

I've implemented a class to send password recovery email, but the email is not sent. Code class sends email: public static Task EnviaEmail(string email, string assunto, string mensagem) { var MinhaMensagem = new SendGridMessage(...
asked by 27.09.2016 / 03:59
1
answer

Array to solve hidden phrase puzzle

"You have two arrays letras = ["m", "D", " ", "e", " ", "G", "v", "e", "i", "e", " ", "r", "S", "G", "D", "u"]; caminho = [ 12, 7, 11, 9, 8, 4, 15, 0, 2, 13, 14, 5, 10, 1, 3, 6]; There is a hidden phrase that you have to find out, but n...
asked by 04.03.2016 / 17:21
2
answers

Insert text into images

I have a Switch that according to the given status it throws an image, however I would like to also play the numbering of this status in the image (that text that usually when we click on the image it appears). I wonder if there is any property...
asked by 04.03.2016 / 19:58
1
answer

Algorithm of adjacent numbers with complexity O (N * log (N))

I made an algorithm that returns the minimum value between two distances in a given array. I would like to know if there is still some way to improve the algorithm by looking at complexity O (N * log (N)). Below the statement. Write a functio...
asked by 10.02.2016 / 23:32
1
answer

How to convert image size to A4 format with iTextSharp

Please, I am generating several images in a single PDF and it is running correctly.  What I can not do is leave the A4 size images as they get very big, 80% of the standard size. How can I decrease to fit the A4? the code is below. Thankful iT...
asked by 10.02.2016 / 12:19
2
answers

LINQ update of all listed items (changing the status of all listed items)

I have a Linq that displays data listed according to the required filters (date and unit) by the user and another filter to validate a code with another table (which are not the case). I would like to know how I can from a "reconcile" button, ch...
asked by 29.02.2016 / 21:31
2
answers

File name from a txt and files. Is there a difference in comparison?

I created a list of 13 file names, which I extracted using GetFileName (). Other list I broke a txt file and loaded those names into another list. So I have this: ListaNomeArquivo ListaNomeTxt I need to get the name of the ListItemList lis...
asked by 01.03.2016 / 19:50
2
answers

Create tooltips using Attributes

I created a custom attribute, called ToolTip. I would like to add tooltips on every property that has this attribute. Example: In my model I have the following property: [Required, ToolTip("Neste campo você deve inserir um nome.")] pub...
asked by 12.02.2016 / 20:47
1
answer

Which method corresponding to the FindAll of the List is used in a DataTable

I have the following select below: var Filhos = FluxoWorkflow_ .FindAll(N => N.IdPai.GetValueOrDefault() == dr.IdFluxoWorkflow); I've had to change my typed class to a DataTable I'm just not getting it to change th...
asked by 16.02.2016 / 17:23
2
answers

Subquery in Lambda

I would like to do a subquery, today in SQL: SELECT intid as IDCliente, (SELECT TOP (1) int_EP FROM tbl_estagioprocesso WHERE...
asked by 17.02.2016 / 14:42