protected override void nCommandBarsManager1_CommandClicked(object sender, CommandEventArgs e) { NCommand comm = e.Command; if (comm.Properties.ID != 0) { return; } NDockingPanel panel = (NDockingPanel)m_DockManager.Panels[0]; NControlBorder border = new NControlBorder(); border.Copy(panel.Border); if (border.ShowEditor() != DialogResult.OK) { return; } foreach (NDockingPanel panel1 in m_DockManager.Panels) { panel1.Border.Copy(border); } }
private void m_BorderButton_Click(object sender, System.EventArgs e) { NControlBorder border = nListBox1.Border; border.ShowEditor(); //apply the border change to all listboxes int count = Controls.Count; NListBox list; for (int i = 0; i < count; i++) { list = Controls[i] as NListBox; if (list == null || list == nListBox1) { continue; } list.Border.Copy(border); } }