private void btnManageSY_Click(object sender, EventArgs e) { if (SYDockWindow == null) { SYDockWindow = new DocumentWindow(); SYDockWindow.CloseAction = DockWindowCloseAction.Close; fmSYList = new frmSYList(); fmSYList.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; fmSYList.TopLevel = false; fmSYList.Dock = DockStyle.Fill; SYDockWindow.Text = fmSYList.Text; SYDockWindow.Controls.Add(fmSYList); this.radDock1.AddDocument(SYDockWindow); fmSYList.Show(); } else { SYDockWindow.Show(); } this.radDock1.ActiveWindow = SYDockWindow; }
private void btnManageSY_Click(object sender, EventArgs e) { fmSYList = new frmSYList(); fmSYList.ShowDialog(); }