public void OnPictorgramsChange(CswNbtNodeProp Prop, bool Creating) { // Save the pictorgrams in the same order they are presented on the client CswDelimitedString CurrentPictograms = Pictograms.Value; CswDelimitedString OrderedPictograms = new CswDelimitedString(CswNbtNodePropImageList.Delimiter); foreach (KeyValuePair <string, string> keyValuePair in Pictograms.Options) { if (CurrentPictograms.Contains(keyValuePair.Key)) { OrderedPictograms.Add(keyValuePair.Key); } } Pictograms.Value = OrderedPictograms; }
/// <summary> /// Check to see if a value is present /// </summary> public bool CheckValue(string ValueToCheck) { return(Value.Contains(ValueToCheck)); }