Posts by JcSaint • 2,037 points
69 posts
-
3
votes1
answer469
viewsA: How to configure Context to put table name in plural in en-BR?
To remove the plural overwrite the Onmodelcreating method: protected overrride void OnModelCreating(ModelBuilder modelBuilder) {…
-
3
votes1
answer560
viewsA: How to create professional designs in WPF
To modify the components you can create Styles that change the properties of the components. On the background, it’s probably an image. Search for Styling and Templating WPF. A hug and good luck…
-
4
votes2
answers216
viewsQ: View Model should have related classes?
I have three entities: Manager, PersonalData and Address. A Manager has a PersonalData and a PersonalData has a Address. My doubt lies in the time to create the Viewmodels, I would have to have…
-
0
votes1
answer40
viewsQ: Files . js are not loaded after Actionlink loads Partialview
I have a _Menuleft Partialview that contains my menu items, it is loaded in _Layout with the Html.Partial(") Helper. Inside the 'li' menu there is an Actionlink to click on the div "content" the…
-
4
votes1
answer121
viewsQ: How to create an Event on a Webservice
I have a Webservice that has a method that records a new entry record and updates the list that contains those entries. Now I need the customer to sign up for a Webservice event so that whenever a…
-
1
votes2
answers172
viewsQ: Query Performance in Mysql
I have in my form the option to perform a search for Rg or Cpf. So I got the question about the performance of the query using the following code: SELECT * FROM DADOSPESSOAIS WHERE (Rg = @Rg OR Cpf…
-
0
votes3
answers3226
viewsA: How to identify if user is typing number or characters?
To identify whether the character typed is a number or not you can use the Tryparse of the int. int n; bool ehUmNumero = int.TryParse(TextBox.Text, out n);
-
0
votes1
answer1407
viewsQ: Launch a custom Exception
I have a method in my Webservice that throws an exception if the card code is already in use, that is, when trying to free the access the system checks if it is already in use and returns to…
-
4
votes1
answer61
viewsQ: Run a method when Webservice is Started
I have a Webservice that’s working normally. At this point arose the need to execute a method called "Recuperaraposfalha" that needs to be executed as soon as the Webservice is started. This is a…
-
1
votes1
answer308
viewsQ: Winsock (VB6) vs Socket in C#
I have a code on VB6 that uses MSWINSCK.OCX to send commands to a device, the code is below. But I have to switch to C# and I’m trying to use the Sockets class, the problem I’m facing is that the…
-
2
votes3
answers5859
viewsA: Develop for multiple platforms using C# and Xamarin Studio
At the company I work for, we use Xamarin. Even if you are going to develop in C# it is necessary that you have a certain knowledge in Java (most examples are in java) and Android Java development.…
-
0
votes4
answers1377
viewsQ: Error on AVD startup - Android Studio
When android emulator starts the following error occurs: 07-22 15:14:14.669 2387-2488/com.android.systemui E/JavaBinder﹕ Uncaught remote exception! (Exceptions are not yet supported across…
-
0
votes1
answer224
viewsQ: Error accessing method in a class
Within src I have a package called meus_utils and in this package I have the class utillog. In this class I have the method public static boolean gerouLog(Context context){ return true; } When I…
-
0
votes1
answer88
viewsQ: Javascript can not find page in Aspx
I have an application in ASPX and C#. Inside the application’s "Scripts" directory, I have a js with the following code: function RecuperaDados(valor){…
-
0
votes4
answers1330
viewsQ: How to load a C library into C#?
I have an extension file lib, done in C, which I need to use in an application that was programmed in C#. When searching for the subject, I read about Wrappers, but I didn’t understand it very well.…
-
3
votes1
answer1846
viewsA: Storing images in Mysql and treating by file size
I think checking the file size with a File.Lenght resolves: procedure TForm1.Button1Click(Sender: TObject); var myFile: file of Byte; // Utilizando file of byte, o tratamento do arquivo // pode ser…
-
2
votes1
answer803
viewsQ: Svg is not rendered, the browser downloads the file in iis
When accessing the site that contains a svg image, it does not appear but the browser downloads the image and in the debug console appears the following message: Resource Interpreted as Document but…
-
0
votes2
answers669
viewsQ: Infinite Loop in Event
I have a class called Dta that contains the following code: public event Dta._TimeOutEventHandler _TimeOut; public delegate void _TimeOutEventHandler(Dta dta); public void CheckTimeOut() { if…
-
4
votes2
answers285
viewsQ: Detect generated event in another class
I have a class (in VB) that returns an event of TimeOut, that is, if time runs out it returns an event content with a string with the data I need using Raiseevent. How can I treat this event in the…