/// <summary> /// Load settings from a string /// </summary> /// <param name="theSettingsString"></param> public void LoadSettings(string theSettingsString) { // Debug.Log("load:"+theSettingsString); itsLoadingActive = true; string [] aSettingsArr = theSettingsString.Split(';'); foreach (string aSettingString in aSettingsArr) { string [] aSettingArr = aSettingString.Split(':'); if (aSettingArr.Length == 2) { if (aSettingArr[0] == "Filter") { foreach (string aFilter in aSettingArr[1].Split(',')) { string [] aFilterArr = aFilter.Split('='); if (aFilterArr.Length == 2) { SetFilterInternal(aFilterArr[0], aFilterArr[1]); } } } if (aSettingArr[0] == "SortBy") { if (aSettingArr[1].Trim() == string.Empty) { itsGuiData.SetSortingColumn((KGFDataColumn)null); } else { itsGuiData.SetSortingColumn(aSettingArr[1]); } } if (aSettingArr[0] == "Tags") { itsListViewCategories.SetSelectedAll(false); foreach (string aTag in aSettingArr[1].Split(',')) { itsListViewCategories.SetSelected(aTag, true); } } } } itsRepaintWish = true; UpdateList(); itsLoadingActive = false; }