public EventCommandListboxInternal(EventCommandListbox parent) { this.parent = parent; this.SelectedItem = new List<object>(); this.ContextMenuStrip = new EditContextMenuStrip(this); this.ContextMenuStrip.Items.Add(new System.Windows.Forms.ToolStripSeparator()); this.ContextMenuStrip.Items.Add(new System.Windows.Forms.ToolStripMenuItem("复制全部为 UBB(&B)", null, delegate { System.Windows.Forms.Clipboard.Clear(); System.Windows.Forms.Clipboard.SetText(ExportUBB(), System.Windows.Forms.TextDataFormat.UnicodeText); })); }
public EventCommandListboxInternal(EventCommandListbox parent) { this.parent = parent; this.SelectedItem = new List <object>(); this.ContextMenuStrip = new EditContextMenuStrip(this); this.ContextMenuStrip.Items.Add(new System.Windows.Forms.ToolStripSeparator()); this.ContextMenuStrip.Items.Add(new System.Windows.Forms.ToolStripMenuItem("复制全部为 UBB(&B)", null, delegate { System.Windows.Forms.Clipboard.Clear(); System.Windows.Forms.Clipboard.SetText(ExportUBB(), System.Windows.Forms.TextDataFormat.UnicodeText); })); }