Пример #1
0
        public void DeletePackageFiles(UFramePackage package)
        {
            var packagePath = Path.Combine(Path.Combine(ApplicationPath, "uFramePackages"), package.Id);

            ThreadingUtils.DispatchOnMainThread(() =>
            {
                FileUtil.DeleteFileOrDirectory(packagePath);
            });
        }
 public void DrawControlPanel(Rect bounds, UFramePackage package)
 {
     if (GUI.Button(bounds, "Uninstall"))
     {
         InvertApplication.ExecuteInBackground(new QueueRevisionForUninstallCommand()
         {
             Package = package
         });
     }
 }
Пример #3
0
 public UFramePackageDescriptor GetPackageDescriptorByPackage(UFramePackage package)
 {
     return(GetPackageDescriptorById(package.Id));
 }