public MainWindow() { data = new DataProcessing(); records = data.recordsProcessing("..\\..\\..\\henkel.xml"); data.stringsProcessing(records); InitializeComponent(); }
public void stringsProcessing(HenkelJobPosition records) { foreach (Position pos in records.Position) { string phrase = pos.Keywords; phrase = phrase.Trim(new Char[] { '\n' }); string[] words = phrase.Split(new string[] { "; ", ", " }, StringSplitOptions.None); foreach (String word in words) { pos.StringList.Add(word); } } }