public static void RegisterElement(string elementName, CreateCompendiumElementMethod factoryMethod)
		{
			if (!g_registeredElements.ContainsKey(elementName))
			{
				g_registeredElements.Add(elementName, factoryMethod);
			}
			else
			{
				Console.WriteLine("Error Registering CompendiumPageElement.  That element name has been taken.");
			}
		}
示例#2
0
 public static void RegisterElement(string elementName, CreateCompendiumElementMethod factoryMethod)
 {
     if (!g_registeredElements.ContainsKey(elementName))
     {
         g_registeredElements.Add(elementName, factoryMethod);
     }
     else
     {
         Console.WriteLine("Error Registering CompendiumPageElement.  That element name has been taken.");
     }
 }