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; }
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); }
public VdbVariantVersionNode(ITreeNode parent, VdbVariantVersionDef version) : base(parent, version.Version.Name) { m_version = version; SetAppObject(new VariantVersionAppObject(m_version)); }