Questions tagged as 'c#'

0
answers

How to navigate between screens with WPF and PRISM

I created 4 screens in Visual Studio (WPF) and installed PRISM. I want to navigate between the screens using PRISM when I click the buttons. In other words, in the initial screen, user fills the screen and clicks continue, then goes to the secon...
asked by 23.05.2018 / 14:52
1
answer

Unit Testing on the Controller Mocking the EF Context

I'm not able to come up with a solution on how to test my application (mockando the EF context) EF Context: public class SawluxContexto : DbContext { public DbSet<Restaurante> Restaurante { get; set; } public DbSet...
asked by 23.05.2018 / 13:32
2
answers

Generic Method of a Generic Class C # for similar classes

I have some classes that will use a write method. I created a CRUD (Generic) class where I would have a write method, but I need this method to take classes as a parameter. There is some way to create a generic method for what I have read, bu...
asked by 23.05.2018 / 14:08
1
answer

How to find a number within an HTML list

I'm trying to find the number that the person wrote in the box in the document.getElementByID on the site, however I do not know how to do it in C #, or tried at least: private void btnvalidar_Click(object sender, EventArgs e) {...
asked by 28.05.2018 / 05:12
0
answers

Web-API display problem with tables with relationships

Good morning, people, I am developing a WEB API to be consumed in a mobile application using Xamarin, I am transposing the classes directly from the database with the code first of Visual Studio, however when I try to generate a simple view o...
asked by 22.05.2018 / 15:25
0
answers

Consume WebService NFe GO C # Error 495 Unknown Code

I'm getting the following error when trying to consume the GO NFe WebService Error 90 - NfeStatusServico. The remote server returned an unexpected response: (495) Unknown Code As I'm creating a dll I do not have the configuration file pr...
asked by 22.05.2018 / 18:41
1
answer

send request on first button click

I have to fill some combobox at the click of a button. When I click this button it first loads a modal and the second time I click it it creates the modal by loading the data I need by doing the ajax request. How do you send this request t...
asked by 22.05.2018 / 15:45
1
answer

Is there any way to force the line break inside the table tag?

I have a select in bank that returns me a quantity of records, in the case fiscal notes, each note of these has N items, and I would like to make a subtable that when it is clicked, list correctly. Today, it is this way (for 1 item works correct...
asked by 21.05.2018 / 19:13
0
answers

How to pass information from a RitchTextBox to word document

How do I pass the information that is in a RichTextBox to a word document in C #. Code: String strtxt = rtbVertigo.Text; TextWriter sw = new StreamWriter(@"D:\Users\edv\Desktop\WORD\Vertigo.doc"); sw.WriteLine(s...
asked by 21.05.2018 / 17:23
1
answer

touch screen c # winforms

I developed this application that visualizes information contained in a website through windows forms and with the webBrowser component. The application works with the mouse perfectly. When I run on a touch screen, the application simply does no...
asked by 18.05.2018 / 09:55