-1
I need to create a getter and a Setter for 14 Model properties that will be used to make Binding in Xaml. The properties come from here: I have a field from a database table where it loads a very long string that contains information for 14 textboxes on my screen (userControl). The string must be "broken" into 14 parts of 50 characters, each part of 50 characters must be a position within an array. The getter separates the string and the Setter joins it again. That’s all I know about this data. For now I have this getter method, but it seems incomplete (I can not see very well what is missing because I am new to both programming and language - I admit I stuck and I do not know what to do)
public string[] GetFlagInJobMvTit(int startPosition, int stringLength)
{
StringBuilder sbJobMvTit = new StringBuilder(50);
startPosition = 0;
string[] TitArray = new string[14];
for (int i=0; i < 14; i++)
{
JobMvTit = sbJobMvTit.ToString();
NotifyPropertyChanged("job_mv_tit");
TitArray[i] = JobMvTit;
startPosition += stringLength;
}
return TitArray;
}
Thank you in advance
Your question seems incomplete; it actually seems to have a lot of irrelevant information, but it lacks what you’re doubting, what we can help. Giving an analyzed the code seems to make no sense, but it may be just that I didn’t understand objective.
– Maniero