/// <summary> /// Initializes a new instance of the <see cref="XtraWindowMenu"/> class. /// </summary> /// <param name="bar">The bar.</param> /// <param name="mdiManager">The MDI manager.</param> /// <param name="shell">The shell.</param> public XtraWindowMenu(Bar bar, XtraTabbedMdiManager mdiManager, Form shell) { this.bar = bar; this.mdiManager = mdiManager; this.shell = shell; Manager = bar.Manager; utility = new WindowMenuUtility(mdiManager, shell); Popup += new EventHandler(XtraWindowMenu_Popup); Caption = "窗口(&W)"; AddAllMenuItems(); }