Questions tagged as 'c#'

1
answer

How to get date without datetime? [duplicate]

Within the variable date I have this: Hereisthecodeinhtml:<inputtype="text" class="form-control" readonly disabled value="@Model.Data"> Final result: What is the simplest way to get a date? (date without time)     
asked by 18.01.2017 / 03:38
2
answers

Language for processing business rules

I'm designing a new project in C # and one of the needs is for the module to do mathematical calculations on the values I'm going to have in the database. This module needs to share these rules with another Mobile project being synchronized i...
asked by 14.02.2017 / 18:02
1
answer

Validating dates

I'm doing a ExcelToEntityList function, that is, importing Excel data into a list, but I need to validate the start and end dates. Am I doing it right? The function: public List<ProdutosConfiguracaoTaxas> ExcelToEntityList...
asked by 17.02.2017 / 13:18
1
answer

String.Content how to do not be case sensitive [duplicate]

Hello, I have a string where I want to search if there is a word but not case sensitive. Example: string tt2 = "teste amanha de manha"; string pp = "Amanha"; if (tt2.Contains(pp)) { //Não entra na condição pois na string o amanha tem o "a...
asked by 15.02.2017 / 12:42
1
answer

Adding C # DataTable columns with Linq

I have a DataTable that contains a column named SubTotal . I would like to add the total value of this column. I tested some examples: object sumObject; sumObject = table.Compute("Sum(Amount)", ""); This too: this.LabelCon...
asked by 15.02.2017 / 21:08
2
answers

Windows form integration with html page

I have an application that is a Windows Forms that I need to integrate into an HTML page of my web application In case you have Windows Form fixed there as if the two were one thing. Is this possible?     
asked by 10.02.2017 / 19:32
1
answer

Access Restriction, in Visual Studio Project, with C #! [closed]

During my technical computer course, in the Programming module, I made a project with Windows Form! This project is linked to a database I created myself in SQL Server! It would be a "software" for medical clinic (all fictitious), from the be...
asked by 08.02.2017 / 23:09
1
answer

Relationship 1: N with EF

I have a table of units as below: public class Unity { public int Id {get;set } public string Name{ get; set; } } public class UsersRight { public int Id {get;set } public string Name{ get; set; } public int Value{ get; set; } }...
asked by 24.03.2017 / 16:36
4
answers

After error in insertion in database through C # I can not insert rows remaining

Hello, When executing a list in .csv and inserting them in the C # proc, an error is given in one of the lines, but I would like the following to continue after the error: try { reader = cmd.ExecuteReader (); Catch (Exception ex) {...
asked by 31.03.2017 / 16:10
1
answer

How to convert color from 32 (24) bits to 16 bits?

So, guys, I'm having a problem, I'm creating an editing tool for a PS2 football game. And this game has two color "systems", which are: The "normal" RGB that is; A: 0 to 255, G: 0 to 255, B: 0 to 255. And the, or I think it's rsrs 5bitR...
asked by 04.04.2017 / 05:23