Пример #1
0
 /// <summary>
 /// Determines whether the specified resource types has validator.
 /// </summary>
 /// <param name="resourceTypes">The resource types.</param>
 /// <param name="version">The version.</param>
 /// <returns>
 /// 	<c>true</c> if the specified resource types has validator; otherwise, <c>false</c>.
 /// </returns>
 public static bool HasValidator(ResourceTypes resourceTypes, Version version)
 {
     bool found = false;
     var find = new ResourceTypeDescriptor(resourceTypes, version.ToString());
     foreach (var v in m_validators)
     {
         if (v.SupportedResourceAndVersion.Equals(find))
         {
             found = true;
             break;
         }
     }
     return found;
 }
 public LayerDefinition230EditorFactory()
 {
     this.ResourceTypeAndVersion = new ResourceTypeDescriptor(ResourceTypes.LayerDefinition.ToString(), "2.3.0"); //NOXLATE
 }
Пример #3
0
        private IEditorFactory GetRegisteredEditor(string type, string version)
        {
            var rtd = new ResourceTypeDescriptor(type, version);

            return(GetRegisteredEditor(rtd));
        }