コード例 #1
0
        public bool RemoveDynamicWindow(Delegate method)
        {
            string id = null;

            if (method == null)
            {
                id = SubWindowMethodDrawer.GetMethodID(null, null);
            }
            else
            {
                id = SubWindowMethodDrawer.GetMethodID(method.Method, method.Target);
            }
            return(RemoveWindowByID(id));
        }
コード例 #2
0
        public void AddDynamicWindow(string title, string icon, EWSubWindowToolbarType toolbar, SubWindowHelpBoxType helpbox,
                                     Delegate method)
        {
            if (method == null)
            {
                return;
            }
            string id = SubWindowMethodDrawer.GetMethodID(method.Method, method.Target);

            if (ContainWindowID(id))
            {
                return;
            }
            SubWindow window = new SubWindow(title, icon, true, method.Method, method.Target, toolbar, helpbox);

            window.isDynamic = true;
            m_SubWindowList.Add(window);
            window.Open();
            this.InsertWindow(window);
        }