using System; using System.Collections.Generic; namespace com.mxgraph { public class mxStencilRegistry { protected static Dictionary stencils = new Dictionary(); /// /// Adds the given stencil. /// /// /// public static void AddStencil(string name, mxStencil stencil) { stencils[name] = stencil; } /// /// Returns the stencil for the given name. /// /// /// public static mxStencil GetStencil(string name) { if (stencils.ContainsKey(name)) { return stencils[name]; } return null; } } }