Esempio n. 1
0
 public static void Set(this PakPropertiesViewModel vm, FFileIoStoreReader ioReader)
 {
     Application.Current.Dispatcher.Invoke(delegate
     {
         vm.PakName    = ioReader.FileName;
         vm.Version    = ((int)ioReader.TocResource.Header.Version).ToString();
         vm.MountPoint = ioReader.MountPoint;
         vm.AesKey     = ioReader.AesKey?.ToStringKey();
         vm.Guid       = ioReader.EncryptionKeyGuid.Hex;
         vm.FileCount  = ioReader.Count.ToString();
     });
 }
Esempio n. 2
0
 public static void Reset(this PakPropertiesViewModel vm)
 {
     Application.Current.Dispatcher.Invoke(delegate
     {
         vm.PakName    = string.Empty;
         vm.Version    = string.Empty;
         vm.MountPoint = string.Empty;
         vm.AesKey     = string.Empty;
         vm.Guid       = string.Empty;
         vm.FileCount  = string.Empty;
     });
 }
Esempio n. 3
0
 public static void Set(this PakPropertiesViewModel vm, PakFileReader pakFileReader)
 {
     Application.Current.Dispatcher.Invoke(delegate
     {
         vm.PakName    = pakFileReader.FileName;
         vm.Version    = ((int)pakFileReader.Info.Version).ToString();
         vm.MountPoint = pakFileReader.MountPoint;
         vm.AesKey     = pakFileReader.AesKey?.ToStringKey();
         vm.Guid       = pakFileReader.Info.EncryptionKeyGuid.Hex;
         vm.FileCount  = (pakFileReader as IReadOnlyDictionary <string, FPakEntry>).Count.ToString();
     });
 }