✅ 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
i (not only me) highly recommend you start with console apps, because they are the simplest
Yes! I started with those a few months ago
Im actually studying and this is homework
ah
well
where is this data coming from?
and are you using mvvm?
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
are you required to use mvvm?
No I'm not
no worries i can understand you
I can post the code or screenshots of the project i want
or I'm up to a call aswell
so you want to store the values of textboxes in an array?
Exactly
But the array is in another class
then youd have to manually store each one
why do you want to do that anyway
normally youd bind each one to a property
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.
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 itI think that worked! thank you very much for the help bro!
yep it worked, thanks again!
that was fast lol
np
$close
Use the
/close
command to mark a forum thread as answered