public RectPainter Add(RectPaintHandler method, string name)
            {
                var painter = new RectPainter()
                {
                    PaintMethod = method, Name = name
                };

                Add(painter);
                return(painter);
            }
 public RectPainter this[string name]
 {
     get
     {
         RectPainter res = null;
         foreach (var l in m_PaintLevels)
         {
             res = l[name];
             if (res != null)
             {
                 return(res);
             }
         }
         return(null);
     }
 }
 public void Add(RectPainter painter)
 {
     m_handlers.Add(painter);
 }