I need to create a getter and a setter for 14 Model properties that will be used to make Binding on xaml. 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 these data. For now I have this method getter, but it seems incomplete (I can not see very well what is missing because I am new to both programming and language - I admit that I caught 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