public async Task Deserialize(string path = null) { path = ConfigurationManager.AppSettings["connectionstring"]; if (ConfigurationManager.AppSettings["serialization"] != "Database") { path = PathGetter.getFilePath(); } AssemblyMetadata assembly = new AssemblyMetadata(await Task.Run(() => AssemblyMetadata.Read(path))); TreeViewLoaded(assembly); }
public void Browse() { _log.Log(LogEnum.Information, "Loading file path"); string _path = PathGetter.getFilePath(); if (_path.Substring(_path.Length - 4) == ".dll") { Path = _path; RaisePropertyChanged("Path"); _reflector = new Reflector(); _reflector.Reflect(Path); TreeViewLoaded(_reflector.AssemblyModel); } }