Esempio n. 1
0
        void SelectDllFromUsingAssemblyName()
        {
            if (_selectedDll != null)
            {
                return;
            }

            if (_assemblyName == null)
            {
                return;
            }

            if (!_assemblyName.StartsWith("GAC") && !File.Exists(_assemblyName))
            {
                return;
            }


            var dll = new FileInfo(_assemblyName);

            if (dll.Extension != ".dll")
            {
                return;
            }

            var fileListing = new FileListing {
                Name = dll.Name, FullName = dll.FullName
            };

            _selectedDll = new DllListingModel(_updateManager, fileListing);
        }
Esempio n. 2
0
 public DllListing(IDllListingModel selectedDll)
 {
     Name        = selectedDll.Name;
     FullName    = selectedDll.FullName;
     IsDirectory = selectedDll.IsDirectory;
     ClsId       = selectedDll?.ClsId;
     Is32Bit     = selectedDll?.Is32Bit ?? false;
 }