protected override void OnClick(EventArgs e) { base.OnClick(e); frmBuildingList fList = new frmBuildingList(); fList.ModuleID = _ModuleID; fList.SiteCode = _SiteCode; fList.AllowDelete = _AllowDelete; fList.MdiParent = (Form)this.OwnerItem.Owner.Parent; fList.Show(); }
private void btnBuildings_Click(object sender, EventArgs e) { if (BuildingDockWindow == null) { BuildingDockWindow = new DocumentWindow(); BuildingDockWindow.CloseAction = DockWindowCloseAction.Close; fmBuildingList = new frmBuildingList(); fmBuildingList.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; fmBuildingList.TopLevel = false; fmBuildingList.Dock = DockStyle.Fill; BuildingDockWindow.Text = fmBuildingList.Text; BuildingDockWindow.Controls.Add(fmBuildingList); this.radDock1.AddDocument(BuildingDockWindow); fmBuildingList.Show(); } else { BuildingDockWindow.Show(); } this.radDock1.ActiveWindow = BuildingDockWindow; }