示例#1
0
        /* ----------------------------------------------------------------- */
        ///
        /// ArchiveEntitySource
        ///
        /// <summary>
        /// Creates a new instance of the ArchiveEntitySource class
        /// with the specified arguments.
        /// </summary>
        ///
        /// <param name="core">7-zip core object.</param>
        /// <param name="index">Target index in the archive.</param>
        /// <param name="path">Path of the archive file.</param>
        ///
        /* ----------------------------------------------------------------- */
        public ArchiveEntitySource(IInArchive core, int index, string path) :
            base(core.GetPath(index, path), false)
        {
            Index = index;
            _core = core;
            _path = new(RawName)
            {
                AllowParentDirectory  = false,
                AllowDriveLetter      = false,
                AllowCurrentDirectory = false,
                AllowInactivation     = false,
                AllowUnc = false,
            };

            Refresh();
        }