C
C#2y ago
rumano_

✅ Struggling with c#

I'm trying to do a Bank Form in WPF and I'm struggling with saving the data that the user inputs into an object array. I'm new in the code world so I hope someone more experienced would help me!
16 Replies
sibber
sibber2y ago
i (not only me) highly recommend you start with console apps, because they are the simplest
rumano_
rumano_OP2y ago
Yes! I started with those a few months ago Im actually studying and this is homework
sibber
sibber2y ago
ah well where is this data coming from? and are you using mvvm?
rumano_
rumano_OP2y ago
I dont really get the mvvm, they didnt taught it very well in school, I have some textboxes that the user can fill, and when those are filled, a "Create" appears. When you click that button all the "TextBox.Text" has to go into an array. Sorry if my english is not the best, it's not my main language
sibber
sibber2y ago
are you required to use mvvm?
rumano_
rumano_OP2y ago
No I'm not
sibber
sibber2y ago
no worries i can understand you
rumano_
rumano_OP2y ago
I can post the code or screenshots of the project i want or I'm up to a call aswell
sibber
sibber2y ago
so you want to store the values of textboxes in an array?
rumano_
rumano_OP2y ago
Exactly But the array is in another class
sibber
sibber2y ago
then youd have to manually store each one why do you want to do that anyway normally youd bind each one to a property
rumano_
rumano_OP2y ago
I have to create a button that displays a list of every client created (ID, name, surname and a randomcode of 4 digits), and the user has to fill those textboxes with information, after they filled them and clicked on "Create", it has to be stored.
sibber
sibber2y ago
so lets say you have a page that has the those textboxes bind evey text box to a property, define a record or class Client that has those properties, and make the create button create and instance of Client and store it
rumano_
rumano_OP2y ago
I think that worked! thank you very much for the help bro! yep it worked, thanks again!
sibber
sibber2y ago
that was fast lol np $close
MODiX
MODiX2y ago
Use the /close command to mark a forum thread as answered
Want results from more Discord servers?
Add your server