Ejemplo n.º 1
0
        /// <summary>
        /// Default ctor
        /// </summary>
        public Avd(string rootFolder, string name)
        {
            this.rootFolder = rootFolder;
            this.name = name;

            var infoPath = Path.Combine(rootFolder, name + AvdConstants.AvdInfoExtension);
            infoFile = new InfoFile(infoPath);
            var avdFolder = infoFile.Path ?? Path.Combine(rootFolder, name + AvdConstants.AvdFolderExtension);
            configFile = new ConfigFile(avdFolder);
            if (infoFile.Path == null)
            {
                infoFile.Path = avdFolder;
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Default ctor
        /// </summary>
        public Avd(string rootFolder, string name)
        {
            this.rootFolder = rootFolder;
            this.name       = name;

            var infoPath = Path.Combine(rootFolder, name + AvdConstants.AvdInfoExtension);

            infoFile = new InfoFile(infoPath);
            var avdFolder = infoFile.Path ?? Path.Combine(rootFolder, name + AvdConstants.AvdFolderExtension);

            configFile = new ConfigFile(avdFolder);
            if (infoFile.Path == null)
            {
                infoFile.Path = avdFolder;
            }
        }