예제 #1
0
        public MainWindow()
        {
            data = new DataProcessing();

            records = data.recordsProcessing("..\\..\\..\\henkel.xml");
            data.stringsProcessing(records);


            InitializeComponent();
        }
예제 #2
0
        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);
                }
            }
        }