protected override void OnRegisterClass(System.Object container, Type type)
 {
     if (container == null)
     {
         return;
     }
     if (!type.IsSubclassOf(typeof(SubWindowCustomDrawer)))
     {
         return;
     }
     System.Object[] atts = type.GetCustomAttributes(typeof(EWSubWindowHandleAttribute), false);
     for (int i = 0; i < atts.Length; i++)
     {
         EWSubWindowHandleAttribute att = (EWSubWindowHandleAttribute)atts[i];
         if (att == null)
         {
             continue;
         }
         if (att.containerType != container.GetType())
         {
             continue;
         }
         System.Object obj = SubWindowFactory.CreateSubWindow(container, att.active, att.windowStyle, type);
         if (obj != null)
         {
             m_SubWindowList.Add((SubWindow)obj);
         }
     }
 }
        protected override void OnRegisterMethod(System.Object container, MethodInfo method, System.Object target)
        {
            System.Object[] atts = method.GetCustomAttributes(typeof(EWSubWindowAttribute), false);

            for (int j = 0; j < atts.Length; j++)
            {
                EWSubWindowAttribute att = atts[j] as EWSubWindowAttribute;
                System.Object        obj = SubWindowFactory.CreateSubWindow(att.windowStyle, att.title, att.iconPath,
                                                                            att.active,
                                                                            method, target, att.toolbar, att.helpBox);

                if (obj != null)
                {
                    m_SubWindowList.Add((SubWindow)obj);
                }
            }
        }