Esempio n. 1
0
        public KeyValuePair <int, FsExplorerViewModel> RemoveFsExplorerTabPage(Guid uuid)
        {
            var kvp = FsExplorerViewModelsList.FindVal(x => x.Uuid == uuid);

            if (kvp.Key < 0)
            {
                eventsViewModel.AddUIErrMsg(
                    $"Could not find a tab page with id {uuid}",
                    null, false);
            }

            FsExplorerViewModelsList.RemoveAt(kvp.Key);
            onFsExplorerTabRemoved?.Invoke(kvp);

            return(kvp);
        }