Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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);
            }
        }