public override bool GetStandardValuesExclusive(ITypeDescriptorContext context) { BaseFileWrapper wrapper = context != null ? context.Instance as BaseFileWrapper : null; if (wrapper != null && wrapper.file != null) { MonoGameContentProject project = wrapper.file.Project as MonoGameContentProject; return(project != null); } return(false); }
public override StandardValuesCollection GetStandardValues(ITypeDescriptorContext context) { BaseFileWrapper wrapper = context != null ? context.Instance as BaseFileWrapper : null; if (wrapper != null && wrapper.file != null) { MonoGameContentProject project = wrapper.file.Project as MonoGameContentProject; if (project != null) { return(new StandardValuesCollection(valid)); } } return(new StandardValuesCollection(null)); }