public void Save(object argument) { try { if (_epfArchive == null) { throw new InvalidOperationException("EPF Archive not opened!"); } if (IsArchiveSaveAllowed == false) { throw new InvalidOperationException("EPF Archive save not allowed!"); } //Locked = true; //Status.Progress.Value = 0; _epfArchive.SaveProgress += _epfArchive_SaveProgress; //Status.Progress.Visible = true; _epfArchive.Save(); } catch (Exception ex) { Status.Log.Error($"Unable to save entries. Reason: {ex.Message}"); } finally { _epfArchive.SaveProgress -= _epfArchive_SaveProgress; } }