GoldenFapple
GoldenFapple
CC#
Created by b on 4/18/2025 in #help
Verify Signed Message with Server's Public Key?
Set the CspParameters.KeyContainerName to a constant string that is unique to your application. Then set the RSACryptoServiceProvider.PersistKeyInCsp member to true. Then after you generate a key, that key will be stored in the windows keystore for that specific windows user the application is running under, for the specific KeyContainerName that you set. When another call comes in and the controller goes to instantiate the key/cryptoprovide, by passing in the same constant string for KeyContainerName under the same user, it will load the same key from the windows keystore.
25 replies
CC#
Created by yourFriend on 4/18/2025 in #help
Silly OOP question about constructors
Your not going to be able to do the last parameter, Collar collar = new Collar() because its not a compile time constant. buuuut, you can do something like this: public Dog() : this("NoName", 1, 0.3, new Collar()) { } This will conflict with this constructor however: public Dog() : this("NoName") { } As that already defines a constructor with no parameters.
7 replies
CC#
Created by Αμμάν Ριζουάν on 4/17/2025 in #help
Graphic Editor using WinForms
It looks like you have those, essentially, but as radio buttons. So maybe a toolbar instead with these things mentioned. And same idea as with the radio buttons: only one of them allowed to selected at a time. Justification for this: Its a common interaction pattern users are familiar with. e.g. mspaint and the like
6 replies
CC#
Created by Αμμάν Ριζουάν on 4/17/2025 in #help
Graphic Editor using WinForms
You have to draw the polygons yourself? If so, Then like a toolbar with: -A pencil to draw vertices and lines between them (or separate these; one tool for vertices, one for lines). -An eraser. Maybe: -A circle drawing tool -A parallelogram drawing tool
6 replies