private void menuCopy_Click(object sender, EventArgs e) { if (hClip != null && hClip.CanCopy) { hClip.Copy(); } }
protected void OnCopy() { IClipboardHandler handler = GetContent <IClipboardHandler> (); if (handler != null) { handler.Copy(); } }
private void copyToolStripMenuItem_Click(object sender, EventArgs e) { IClipboardHandler clipboardHandler = GetHandler <IClipboardHandler>(); if (clipboardHandler != null) { clipboardHandler.Copy(); } }
private void menuEditCopy_Click(object sender, EventArgs e) { IClipboardHandler h = this.DockPanel.ActiveContent as IClipboardHandler; if (h != null && h.CanCopy) { h.Copy(); } }
public override void Run() { if (IsEnabled) { if (Owner is ICSharpCode.SharpDevelop.DefaultEditor.Gui.Editor.SharpDevelopTextAreaControl) { ((ICSharpCode.SharpDevelop.DefaultEditor.Gui.Editor.SharpDevelopTextAreaControl)Owner).ActiveTextAreaControl.TextArea.ClipboardHandler.Copy(null, null); return; } IWorkbenchWindow window = WorkbenchSingleton.Workbench.ActiveWorkbenchWindow; IClipboardHandler editable = window != null ? window.ActiveViewContent as IClipboardHandler : null; if (editable != null) { editable.Copy(); } } }
protected override void Run(IClipboardHandler editable) { editable.Copy(); }
protected override void Run(IClipboardHandler editable) { editable.Copy(); }