Questions tagged as 'c#'

3
answers

Sending temporary information between classes with C # 4.0 MVC 4

Working with a VS 2015 solution that has 2 sites, "projectA.site.com.br" and "projectB.site.com.br", their views and controllers are in the same project, named as "WEB", developed in C # .NET 4 with MVC 4, but in two folders, "Project A" and "Pr...
asked by 18.01.2017 / 13:58
2
answers

show selected value in listview c #

Good morning. I have a listView with a list view. I wanted you to click on a certain line and save the selected value. How can I do it?     
asked by 23.05.2017 / 13:21
3
answers

Problems with View Model Implementation

I'm trying to use the View Model Pattern concept, but when I'm implementing the compiler it's having a conversion error. Below is the approach I used: Viewmodel structure public class EvolucaoViewModel { public Chamado ChamadoAtual {...
asked by 31.05.2017 / 21:01
2
answers

Create an executable [closed]

Good morning, I've done a C # application recently but it's still just in the form of code and I needed to create an executable! But I never did, I do not know how. Can anyone help? Thanks!     
asked by 23.05.2017 / 11:04
1
answer

How does "DependencyProperty" work?

I'm trying to understand the dependency properties feature. I have read some tutorials in msdn but the feature is still obscure for me. Example: using System; using System.Collections.Generic; using System.Linq; using System.Text; using Sy...
asked by 03.01.2017 / 17:46
2
answers

How to insert a where inside a linq query

I have the following query : var result = (from line in db.ApadrinhamentoListas group new { line } by new { line.datahora, line.valor_doacao } into grp select new { DataHora = grp.Key.datahora, Valor = grp.Key.v...
asked by 29.11.2017 / 21:11
1
answer

Project class library does not open. Gives its .csproj error

This is the error: Is there a way to generate a new .csproj or fix it or do I have to create a new project and import everything into it?     
asked by 30.11.2017 / 20:01
2
answers

Error translating structure code from C ++ to C #

I'm trying to read a string from a process, I found this structure on the internet: struct name { wchar_t nome[32]; }; I did it this way: struct name { public char[] nome = new char[32]; } And I'm returning the following erro...
asked by 27.11.2017 / 22:13
1
answer

Common events? [closed]

Good evening, I would like to associate a common event for all the label_DragOver and label_DragDrop ... such thing would be possible? string _currLabel = string.Empty; private void Form1_Load(object sender, EventArgs e) {...
asked by 23.11.2017 / 01:16
1
answer

Pass complex object vs simplest object per parameter

In the Log method there is the parameter of type HttpClient . The function only uses the parameter to access the property BaseAddress , which is a Uri . private void Log(string verb, HttpClient httpClient) { var ur...
asked by 09.11.2017 / 18:57