コード例 #1
0
        private void Close(object argument)
        {
            if (_epfArchive == null)
            {
                throw new InvalidOperationException("EPF Archive not opened!");
            }

            _epfArchive.Dispose();
            _epfArchive = null;

            dispatcher.Invoke(ClearEntries);

            Status.Log.Success($"Archive '{ Path.GetFileName(ArchiveFilePath)}' closed.");
            ArchiveFilePath = null;
            AppLabel        = $"{APP_NAME}";

            IsArchiveOpened      = false;
            IsArchiveSaveAllowed = false;
            IsReadOnly           = true;
            Status.ItemsSelected = 0;
        }