private void groundLogToolStripMenuItem_Click(object sender, EventArgs e) { var logviewer = new GroundControlUI.LogViewer(core, "GroundLog"); logviewer.ShowConnectionsStateChanges = true; Pad mypad = new Pad(logviewer, "GroundLog", WeifenLuo.WinFormsUI.Docking.DockState.DockBottom); mypad.Show(this.dockPanel1); }