Пример #1
0
        internal static NgenPackageItem CreatePackageItem(File file)
        {
            NgenPackageItem item = null;

            if (!Ngen.ngens.TryGetValue(file, out item))
            {
                item = new NgenPackageItem()
                {
                    File = file, Parent = file
                };
                Ngen.ngens.Add(file, item);
            }

            return(item);
        }
Пример #2
0
        public static void SetFolder(File file, Folder folder)
        {
            NgenPackageItem item = Ngen.CreatePackageItem(file);

            item.Folder = folder;
        }
Пример #3
0
        public static void SetExecute(File file, NgenExecuteType execute)
        {
            NgenPackageItem item = Ngen.CreatePackageItem(file);

            item.Execute = execute;
        }
Пример #4
0
        public static void SetApplication(File file, IFileReference application)
        {
            NgenPackageItem item = Ngen.CreatePackageItem(file);

            item.Application = application;
        }
Пример #5
0
 internal static bool TryGetPackageItem(File file, out NgenPackageItem ngen)
 {
     return(Ngen.ngens.TryGetValue(file, out ngen));
 }