Exemplo n.º 1
0
        private void btnTest_Click(object sender, EventArgs e)
        {
            if (dlgOpenDirectory.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                FormToDefinition();

                var parser = new PropertyMappingParser(items);
                var map    = new Dictionary <string, BreastCancerSampleItem>();
                parser.ParseDataset(dlgOpenDirectory.SelectedPath, map);
                var lst = (from v in map.Values
                           orderby v.Sample
                           select v).ToList();

                var form = new BreastCancerSampleInformationForm();

                var reader = new RawSampleInfoReader();
                form.SetRawInfoReader(reader, Path.GetFileNameWithoutExtension(dlgOpenDirectory.SelectedPath));
                form.SetDataSource(lst);
                form.ShowDialog();
            }
        }
    private void btnTest_Click(object sender, EventArgs e)
    {
      if (dlgOpenDirectory.ShowDialog() == System.Windows.Forms.DialogResult.OK)
      {
        FormToDefinition();

        var parser = new PropertyMappingParser(items);
        var map = new Dictionary<string, BreastCancerSampleItem>();
        parser.ParseDataset(dlgOpenDirectory.SelectedPath, map);
        var lst = (from v in map.Values
                   orderby v.Sample
                   select v).ToList();

        var form = new BreastCancerSampleInformationForm();

        var reader = new RawSampleInfoReader();
        form.SetRawInfoReader(reader, Path.GetFileNameWithoutExtension(dlgOpenDirectory.SelectedPath));
        form.SetDataSource(lst);
        form.ShowDialog();
      }
    }