Questions tagged as 'c#'

0
answers

How do I open a PDF specific page with Xamarin (iOS)?

I use the following code to open a PDF document. I'd like to know how to open the PDF on a specific page, because every time I run the code, the document opens at the beginning. public void OpenFile(string targetPath) { try {...
asked by 26.09.2018 / 17:54
0
answers

How to avoid database locking using EntityFramework Transaction

I have a method where I save several classes and call another method to do an optimization on top of these classes, however I am using Transaction , in case something wrong in this optimization I need to give rollback . Transaction...
asked by 10.11.2018 / 20:43
1
answer

Structure of assemblies in a project using the MVVM pattern

I'm having difficulty organizing a project solution using the MVVM pattern. I do not use any MVVM framework. I currently have the following structure: Solution | --- AppView (Projeto principal onde estão as views e que é iniciado pe...
asked by 22.02.2014 / 15:49
0
answers

Model is not being fully validated

Good morning, I'm testing an application to add a client, but whenever I try to add the user, test the ViewModel to check if the information is consistent, but the program does not validate the whole ViewModel ignoring the end of it, Why is this...
asked by 19.09.2018 / 14:57
1
answer

How to show / hide a button inside a listview

My ListView is populated with data that comes from an API, but inside my template I have a statusDescr label where it shows two states ("paid" / "canceled") when the state on the label is paid the button appears, and when not...
asked by 21.09.2018 / 12:11
1
answer

Verify session size on the server

The following method is used in a web form application to save logged-in user information: public Usuario UsuarioLogado { get { if (Session["Usuario"] != null) return (Usuario)Session["Usuario"]; else...
asked by 19.12.2014 / 15:00
1
answer

Print Report Reporter directly, without preview

I need to send a report directly to the printer, without preview or PDF generation. The problem is that the application is Web Forms and all the solutions I've found so far only support Windows Forms, that is, the application ends up search...
asked by 10.12.2014 / 17:36
1
answer

Additional configuration to reference .NET 4.0?

Today when I tried to publish a new version of my application, the following error appeared:    Error 26 Mixed mode assembly is built against version 'v2.0.50727' of   the runtime and can not be loaded in the 4.0 runtime without additional   ...
asked by 15.12.2014 / 15:50
1
answer

Write Telephone Array in the Database

I created a Clientes table and two from clients that are ClientesTelefone and ClientesEmail in my form I am generating email and phone fields dynamically, so I would like to know how I can receive and write these values in t...
asked by 18.09.2018 / 21:54
0
answers

Error accessing the this property.DocumentPending entity type in the PublisherPendents

Thank you for possible help to overcome the error:    this.DocumentoPendente.TipoEntidade =   'this.DocumentoPendente.TipoEntidade' generated an exception of type   'Microsoft.CSharp.RuntimeBinder.RuntimeBinderException' Code: public cl...
asked by 11.09.2018 / 19:42