Questions tagged as 'c#'

1
answer

Inserting data into db sql server

I am having problems connecting my project to the database, I do not understand the reason, I have already looked at several tutorials, I use sql server 2017, I can access db in an application, but the site is not working. I'musingthefollowingc...
asked by 19.10.2017 / 00:50
1
answer

Passing parameters to an executable

I have an application that is split into two different executables. The first executable is the 'brain' of my application, in this executable, in which I named it STUB, will be the main logic of the application with some additional and option...
asked by 20.10.2017 / 00:28
2
answers

How do I get a list of values common to two lists with LINQ?

I have two List, the first one, which is a list that contains all the establishments available in the company, for example: Estabelecimento Sigla - XPTO Descricao - XPTO List Estabelecimento Sigla - RPTO Descricao - RPTO List...
asked by 16.10.2017 / 22:36
1
answer

Routine to clear listview checkbox C #

I created a small routine to clean the checkboxes that are in my listview in C # windows forms. But this routine is not unchecking them. I wonder if I wrote something wrong or why it did not work. Code: private void limpacheck() {...
asked by 11.10.2017 / 14:58
1
answer

How to get value from a field in SQL using C #?

The idea is that I insert data about the same person within SQL, but in different Entities, contextualizing: I have the table Pessoa : create table Pessoa( ID_Pessoa int primary key identity (1,1), Nome_Pessoa varchar(50), CPF_Pessoa...
asked by 29.11.2017 / 18:52
1
answer

Usage Text User Interfaces in C #?

I would like to give a basic interface to an application developed in Console Application. I want to make use of features like TUI (Text-Based User Interfaces), common in other platforms like NodeJS. Is it possible to do this in a C # applicatio...
asked by 28.11.2017 / 18:59
1
answer

Send more than one string to serial

I am creating a string through two values, one of them read through a slider and another of a check box. Together the two in a string called a and sending at the same time in the serial. Follow the code: private async void Sen...
asked by 29.11.2017 / 01:29
1
answer

PartialView relationships asp.net mvc 5

I'm having trouble creating the logging logic of models that has relationships between them. One exists only the reference, but in the other, the reference is of the List < > type. I created a partialview containing only the field...
asked by 09.11.2017 / 15:27
1
answer

How to separate a string in unity c #

I would like to know how to separate a string in C # unity, I ended up looking at some similar questions for C # and not on unity, I often found this example string[] linha = reader.ReadLine().Split(new string[] { "||" }, StringSplitOptions.Re...
asked by 09.11.2017 / 18:33
1
answer

Execute method of one nested class as property in another in C #

I have the following class: public class Feliz : IFeliz { //public algumas propeiedades e tals... { get; set; } public bool EstaFeliz() { //Faz alguma coisa... } } And it's a property in another class: public Exemplo {...
asked by 07.11.2017 / 17:32