Ejemplo n.º 1
0
        private void RefreshAssetList()
        {
            _assetList.Clear();
            foreach (var path in _assetFolderList)
            {
                string key      = XPathTools.SubRelativePath(_assetFolderPath, path);
                string fileName = Path.GetFileName(path);
                if (_configDict != null)
                {
                    if (_configDict.ContainsKey(key))
                    {
                        continue;
                    }
                }

                string searchKey = _srcSearchTextField.GetText();
                if (!string.IsNullOrEmpty(searchKey))
                {
                    if (fileName.IndexOf(searchKey) < 0)
                    {
                        continue;
                    }
                }
                var item = new AssetItem();
                item.path = path;
                _assetList.Add(item);
            }
        }
Ejemplo n.º 2
0
        private void RefreshConfigList()
        {
            _configList.Clear();
            foreach (var item in _configDict.Values)
            {
                string key       = item.path;
                string searchKey = _destSearchTextField.GetText();
                if (!string.IsNullOrEmpty(searchKey) && !string.IsNullOrEmpty(key))
                {
                    if (key.IndexOf(searchKey) < 0)
                    {
                        continue;
                    }
                }

                _configList.Add(item);
            }
        }