private void createDictionary(FileStream fs)
        {
            string line;

            using (StreamReader lineReader = new StreamReader(fs))
            {
                line = lineReader.ReadLine();
                while ((line = lineReader.ReadLine()) != null)
                {
                    if (line != "")
                    {
                        Match match = Regex.Match(line, @"(?<txtFile>\S*)(\s*)(?<sampleID>\S*)");
                        if (match.Groups["txtFile"].Value.Contains("genes.normalized_results"))
                        {
                            SampleData newSampleData = new SampleData();
                            newSampleData.TxtFile = match.Groups["txtFile"].Value;
                            newSampleData.SampleID = match.Groups["sampleID"].Value;
                            sampleData.Add(newSampleData);
                        }
                    }
                }
            }
        }
 private void addToMAP(XmlNode node,string filePath)
 {
     SampleData newSampleData = new SampleData();
     foreach (SampleData data in sampleData)
     {
         string SampleIDShort = Regex.Match(data.SampleID,@"TCGA-\S{2}-\S{4}").Value;
         if (filePath.Contains(SampleIDShort))
         {
             data.Value = node.InnerText;
             listBoxValues.Items.Add(data.Value);
         }
     }
 }