public void Open() { var openFileDialog = new OpenFileDialog { Filter = "Assembly|*.dll" }; if (openFileDialog.ShowDialog() == DialogResult.OK) { try { Assembly assembly = Assembly.LoadFrom(openFileDialog.FileName); IEnumerable <PerformanceSet> sets = _analyzer.GetPerformanceSets(assembly); Sets.Clear(); foreach (PerformanceSet set in sets) { Sets.Add(set); } } catch (Exception) { Sets.Clear(); } } }