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)); }
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); }