Questions tagged as 'c#'

1
answer

c # Pub-Sub pattern

I am trying to use the Pub-Sub pattern to communicate the ViewModels of my application, but I must be doing something wrong, since I do not get the events to trigger. The class with the code to handle the events is this: namespace App.S...
asked by 27.06.2016 / 17:33
1
answer

Select the Value of a Dictionary in a ComboBox Wpf

I have the following code. ajusteCbb.ItemsSource = new Dictionary<string, string> { { "A", "SI" }, { "C", "NO" } }; ajusteCbb.DisplayMemberPath = "Value"; ajusteCbb.SelectedValuePath = "Key"; and in a Datagrid I have this code <D...
asked by 01.07.2016 / 00:09
1
answer

query from transact sql to linq

I have a query in Transact SQL , and I need to modify it to LinQ for a migration of a program I'm doing, but I've had problems specifically with a function of SQL Server , the datediff , with which It has been difficult...
asked by 03.08.2016 / 21:14
1
answer

Communicate child form with parent

I am working on a windows forms app in which I want to communicate a child form with a parent form. The implementation that I have for this purpose is the following: Interface public interface IActualizarDGVPrincipal { void AcualizarDGV...
asked by 20.06.2016 / 20:44
2
answers

Error opening project in VS2010

They passed me a project in Visual Studio 2010 to modify, but when I try to open it I see some errors and I can not work on it. I attach two images with the errors. Does anyone have any idea what it could be? Thank you....
asked by 10.06.2016 / 17:42
1
answer

would like to filter a datatable but in reverse

I found these examples: link dt is a DataTable and it has data, but there are some data that are null, I would like to filter the rows that contain such null data. number is one of the columns. I would like to filter and keep all t...
asked by 22.06.2016 / 23:44
0
answers

Global exception grabber

I have implemented a global trap of exceptions in my applications. In program I have put these 2 sentences: Application.ThreadException += new System.Threading.ThreadExceptionEventHandler(Application_ThreadException);...
asked by 24.06.2016 / 03:12
1
answer

Send ASP form to SQLServer

Working with webforms when sending the data of my form to codebehind to be processed does not save them in the DB. <form action="formulario.asp.cs" method="post"> <label>Title</label> <input type="text" class="...
asked by 27.05.2016 / 16:31
0
answers

Report in Crystal Report MVC .Net

I have problems when viewing a crystal reports report using crystalreportviewer done in .net / C #, it shows me the toolbar but it does not bring me the report. Looking below the javascript that generates shows me this this is my code &l...
asked by 23.11.2017 / 22:00
1
answer

Custom Object List, inside Name List

I'm not sure if the title of the question is correct .. I need a Customs List of Objects, which inside has another Custom object, this last object has several properties. To the problem I need to read an Excel, which has many Books, each...
asked by 20.05.2016 / 23:58