Questions tagged as 'c#'

1
answer

ProgressBar with WPF and Ionic.zip

I use the Ionic.zip dll and in it unzipo and rezipo some files and folders. My manager asked me to put ProgressBar and I'm not sure how to do it using WPF. It's very fast and I do not know if it's worth it, I tried to explain it to hi...
asked by 17.03.2016 / 18:50
1
answer

Recover network-mapped disk drive volume name

I'm using DriveInfo.GetDrivers() to get the names of the disk drives present on the machine and list them in TreeView . I've made the code below that works, but the network disk names that my machine has access to do not appear,...
asked by 21.03.2016 / 17:50
1
answer

Javascript set value of one field in others

I have the following code below <script type="text/javascript"> function getValue() { var x = document.getElementById("NuJaneiro"); document.getElementById("NuFevereiro").value = x.value; } </script> <td...
asked by 17.12.2015 / 18:35
1
answer

Fluent NHibernate with multiple tables

I'm using Fluent NHibernate to help with ORM (replacing .hbm files manually) with a single class: User Class: public class Usuario { public virtual int Id { get; set; } public virtual string Nome { get; set; } pu...
asked by 23.12.2015 / 14:54
1
answer

Validate for js with for each

In this screen I need to do a validation so that in each record, when the registry is allowed, in case it is marked, bring me the registry that is marked every time I edit (check or uncheck the checkbox). In the case the best way I foun...
asked by 26.11.2015 / 15:29
1
answer

Create panel with center at user click point

I need to create a Panel in a Form Getting more or less like this: When you click the mouse on Form create Panel taking the location of the click and create the Panel centralized. I did so: Panel...
asked by 25.11.2015 / 18:13
2
answers

ObservableCollection does not bind

I have the following situation: I make the instance of an observable property in the constructor: public ObservableCollection<Model.OSModel> _os { get; private set; } public EditorServicosViewModel() { OS = new...
asked by 16.02.2016 / 19:21
2
answers

Problem with the Unity camera

I'm creating a game with unity 5 in 2d, and tried to create a script for the camera to follow the character by moving the camera transform. For this I followed some tutorials on youtube but when I was compiling the code indicated in the Lerp met...
asked by 08.02.2016 / 17:29
1
answer

Source not recognized in PDF generation

I'm using the ITextSharp library to create PDF's and I'm having problems with the source of the document, I have the error "Font is an ambiguous", I've looked in several places and all the examples end up giving the same error, fix this or do yo...
asked by 11.06.2016 / 20:47
1
answer

How to return a message along with an HttpStatusCode

I have the following method in my Controller : public IHttpActionResult Get(string id) { var product = objds.GetProduct(new ObjectId(id)); if (product == null) { return NotFound(); }...
asked by 16.06.2016 / 16:04