public void RemovePackFile(PackFileContainer pf) { var canUnload = BeforePackFileContainerRemoved?.Invoke(pf); if (canUnload.HasValue == false || (canUnload.HasValue == true && canUnload.Value == true)) { PackFiles.Remove(pf); if (PackSelectedForEdit == pf) { PackSelectedForEdit = null; } PackFileContainerRemoved?.Invoke(pf); } }
public void Clear() { PackFiles.Clear(); }
public void AddPackFile(PackFileContainer pf) { PackFiles.Add(pf); PackFileContainerLoaded?.Invoke(pf); }