public void Clear() { NameList.Clear(); InfoList.Clear(); EditorUtility.SetDirty(this); AssetDatabase.SaveAssets(); }
private void OnSelectedFillTypeChanged() { string ruleVersion = _SelectedFillRuleVersion == null ? "" : _SelectedFillRuleVersion.Name; string basePath = FileHelper.GetFillVersionByName(ruleVersion); if (_SelectedFillType == "转换规则" || _SelectedFillType == "应用程序配置") { FillRuleVersions = _entNameVersion; SelectedFillRuleVersion = _entNameVersion[0]; ruleVersion = Properties.Resources.FillRule; basePath = ""; } else if (FillRuleVersions == _entNameVersion) { FillRuleVersions = FileHelper.GetFillRuleVersions(); } if (string.IsNullOrEmpty(_SelectedFillType) || _SelectedFillRuleVersion == null) { _Items.Clear(); return; } bool hasAppendix; List <UpdateRuleParameter> list = FileHelper.GetRuleFileList(ruleVersion, _SelectedFillType, basePath, out hasAppendix); List <KeyValuePair <string, string> > appendixes = null; if (_SelectedFillRuleVersion.UseAppendix && hasAppendix) { appendixes = FileHelper.GetAppendixes(_SelectedFillType); } _Items.Clear(); if (appendixes == null || appendixes.Count == 0) { InitFileList(list, ""); } else { foreach (var appendix in appendixes) { InitFileList(list, appendix.Key); } } System.Threading.ThreadPool.QueueUserWorkItem(GetFileStatus, null); }
public IPAInstallerGenerator(IPAInfo[] infos, string outputDir, string baseUrl, string uuidServiceUrl, CustomFileCopyHandler fileCopyHandler) : this() { InfoList.Clear(); InfoList.AddRange(infos); OutputDir = outputDir; BaseUrl = baseUrl; UUIDServiceUrl = uuidServiceUrl; CustomFileCopy = fileCopyHandler; }
private void GetResults() { if (!string.IsNullOrEmpty(_queryInput) && !string.IsNullOrWhiteSpace(_queryInput)) { InfoList.Clear(); var query = new Query(); var results = query.GetSearchResult(_queryInput, _selectedEngine); if (results != null && results.Any()) { foreach (var r in results) { var model = new DisplayModel() { RelatedKey = r.RelatedKey, Description = r.Description, Url = r.Url, }; InfoList.Add(model); } NotifyPropertyChanged("InfoList"); SelectedInfo = InfoList.FirstOrDefault(); } } }