コード例 #1
0
        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);
            }
        }
コード例 #2
0
 public void Clear()
 {
     PackFiles.Clear();
 }
コード例 #3
0
 public void AddPackFile(PackFileContainer pf)
 {
     PackFiles.Add(pf);
     PackFileContainerLoaded?.Invoke(pf);
 }