protected internal override PropertyInfo[] GetProperties(WorkflowMarkupSerializationManager serializationManager, object obj) { if (serializationManager == null) { throw new ArgumentNullException("serializationManager"); } if (obj == null) { throw new ArgumentNullException("obj"); } List <PropertyInfo> properties = new List <PropertyInfo>(base.GetProperties(serializationManager, obj)); ActivityDesigner activityDesigner = obj as ActivityDesigner; if (activityDesigner != null) { PropertyInfo nameProperty = activityDesigner.GetType().GetProperty("Name", BindingFlags.Instance | BindingFlags.NonPublic); if (nameProperty != null) { properties.Insert(0, nameProperty); } } return(properties.ToArray()); }
public ActivityDesignerTheme GetDesignerTheme(ActivityDesigner designer) { if (designer == null) { throw new ArgumentNullException("designer"); } return(this.GetTheme(designer.GetType()) as ActivityDesignerTheme); }