Questions tagged as 'c#'

1
answer

C # - Separate / cut string with commas (but with monetary value included in the string)

I have a problem reading a txt file that has its columns separated by a comma but also has monetary values that are being cut and should not, because they are in quotation marks. Here is an example line: Nome, Idade, Valor a receber, Valor pen...
asked by 19.05.2016 / 22:04
2
answers

The type initiator of 'Oracle.DataAccess.Client.OracleConnection' raised an exception with C #

My wpf program worked very well. They moved, to make some changes. Well, I was asked to change some folders in the application. Before I make any changes I ran the application and it is giving me this error:    The type initializer for 'Oracl...
asked by 18.05.2016 / 15:12
1
answer

Understanding the DDD Concept

Good, I'm starting a new application, relatively simple, and I want to structure it in the DDD concept. I read a lot on the internet, I saw many examples and meanings, but I would like to know more simply. Given the following structure...
asked by 07.12.2015 / 19:44
2
answers

How to delete div by class name using WebBrowser?

Considering this code: <div class="panel panel-default"> <div class="panel-heading"> <p>Informações Adicionais</p> </div> <div class="panel-body"> <ul class="list-unstyled"> <li...
asked by 09.04.2016 / 20:26
1
answer

Sign XML NFSe

I need to sign the following XML: <?xml version="1.0" encoding="utf-8"?> <EnviarLoteRpsEnvio xmlns="http://www.abrasf.org.br/nfse.xsd"> <LoteRps Id="Id1" versao="Token1"> <NumeroLote></NumeroLote> <Cp...
asked by 07.04.2016 / 15:10
2
answers

Select with Linq set the first characters in the where

How can I set in Linq the same as I define in the Where do sql server clause of the form below .. select * from tb_CentrosCusto cc where cc.Clasificacao like '1.4.1%' In other words, I'm trying to find out what's going on with...
asked by 13.11.2015 / 15:14
1
answer

Assert.AreEqual () fails when it seems to be alright

I can not seem to find any errors in my Lucky Bubble algorithm. But the assert returns error. I'm passing erroneous arguments to Assert.AreEqual() ? //The method for testing public static int[] BubbleSort(int[] vect) { f...
asked by 13.11.2015 / 14:02
1
answer

How to select more than one txt file with C #

I am writing a C # application that needs to receive more than 1 text file and display the Filename of them in an individual MessageBox for each. My question is in this file import, I was using OpenFileDialog to select th...
asked by 16.03.2016 / 18:52
1
answer

Method that creates a new list based on elements of an existing list?

In C # there is the function numeros.GetRange(0, quant); I would like to know which function is equivalent to numeros.GetRange(0, quant); of C # in Java     
asked by 12.03.2016 / 20:42
2
answers

How to invert date of a grid

Ihaveadatabasewithsometablesforcontrolofsalesofsoftware,andamongthesetables,Ihavethesoftwarethatcontainsthefields,beginningofthecontractandendofthecontract.ButwhenIgivetheselectinsteadofappearinglikethis'21/12/2016'theyappearlikethisonthegrid''...
asked by 11.03.2016 / 05:05