/// <summary> /// Gets the values. /// </summary> /// <param name="graphicProperty">The graphic property.</param> public void GetValues(GraphicPropertyDto graphicProperty) { if (graphicProperty != null) { Values.Clear(); if (graphicProperty.PropertyType.Contains("Set={")) { int startIndex = 5; int lenght = graphicProperty.PropertyType.Length - 6; string values = graphicProperty.PropertyType.Substring(startIndex, lenght); Values.AddRange(values.Split(',')); ChangeVisibilityCombo(true); } else if(graphicProperty.PropertyType=="bool") { Values.Add("True"); Values.Add("False"); ChangeVisibilityCombo(true); } else { ChangeVisibilityCombo(false); } NotifyOfPropertyChange(() => Values); } }
private bool FilterGraphicProperties(GraphicPropertyDto entity) { return (entity.ElementTypeId == this.Id); }