Example #1
0
 public VariantVersionAppObject(VdbVariantVersionDef version)
 {
     m_version = version;
     VdbFile   = version.Version.Db.FileName;
     Variant   = IOTool.RelativePathTo(Path.GetDirectoryName(VdbFile), version.VariantFile.DiskPath);
     Version   = version.Version.Name;
 }
Example #2
0
 public VdbVariantVersionDef GetVersion()
 {
     if (m_version == null)
     {
         var vdb = new VersionDb(VdbFile);
         var ver = new VersionDef(vdb, Version);
         m_version = new VdbVariantVersionDef(ver, new DiskFile(Path.Combine(vdb.VariantsDirectory, Variant)));
     }
     return(m_version);
 }
Example #3
0
 public VdbVariantVersionNode(ITreeNode parent, VdbVariantVersionDef version)
     : base(parent, version.Version.Name)
 {
     m_version = version;
     SetAppObject(new VariantVersionAppObject(m_version));
 }