Questions tagged as 'c#'

1
answer

Query with parameter causing timeout

I have a query that when executed with ADO.NET takes less than a second to return your data. When adding parameters to this query, the return remains the same. However, when adding a parameter of type datetime , the query does no...
asked by 08.03.2016 / 15:05
1
answer

Doubt - Visual Studio Export / Import Project

I'm having problems importing projects into VS 2015. The project was done in an earlier version of IDE and when I import it it does not come with correctly added components, needing to add one by one. Is this correct or do you have to follow...
asked by 09.12.2015 / 00:06
1
answer

Auto reconnect reusing an async socket connection

How do I have my socket reconnect by itself when the connection is lost? Preferably reusing the same connection.     
asked by 14.12.2015 / 01:59
0
answers

Edit XML through the Node of a TreeView WPF - C #

I'm having a question, I have a code that dynamically creates a TreeView through a C # code. TreeView was created in WPF. My goal is to create a function that opens a XML item and created a TreeView , and then it is possi...
asked by 25.08.2015 / 20:48
0
answers

How to send an email in RTF format using EWS?

I want to send an e-mail in Rich Text Format (RTF) using the EWS (Exchange Web Service) API ExtendedPropertyDefinition RtfCompressed = new ExtendedPropertyDefinition(0x1009, MapiPropertyType.Binary); PropertySet propSet...
asked by 20.08.2015 / 21:03
2
answers

Send Display Text of an Enum by Json

Well, I have an enum for the days of the week, being: Segunda = 2, [Display(Name="Terça")] Terca = 3, Quarta = 4, Quinta = 5, Sexta = 6, [Display(Name = "Sábado")] Sabado = 7 So I build an object that has a da...
asked by 19.01.2016 / 20:50
1
answer

Writing a binary xls in SQL Server

I have an xls file that I load and transform into binary as follows: FileStream fs = new FileStream(physicalPath + "/cadastros/documentos/" + "AWS-Estudantes_" + Convert.ToString(System.DateTime.Now.Year) + "-" + Convert.ToString(System.DateTi...
asked by 21.01.2016 / 16:09
1
answer

How to display two messages using Windows phone MessageDilalog 8.1

How do I print two messages using MessageDialog of Windows Phone 8.1? using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.InteropServices.WindowsRuntime; using Windows.Foundation; usi...
asked by 15.09.2015 / 03:13
1
answer

How to block a Pivot?

In Windows Phone, we have the Pivot structure, which has the PivotItems, which are tabs in which the user navigates just by sliding the finger left or right. I'm making an app and following the design of Windows 10, with hamburger menu, I arr...
asked by 30.08.2015 / 06:20
0
answers

Logging, Registration, Permissions C # [closed]

I would like to know in a logical and robust and clear way, How does the organization behave in software that it will have: -Logging (any action performed on the system must be logged) ex: "User X entered a new product in the system, in Da...
asked by 28.08.2015 / 21:40