private void menuCut_Click(object sender, EventArgs e) { if (hClip != null && hClip.CanCut) { hClip.Cut(); } }
protected void OnCut() { IClipboardHandler handler = GetContent <IClipboardHandler> (); if (handler != null) { handler.Cut(); } }
private void cutToolStripMenuItem_Click(object sender, EventArgs e) { IClipboardHandler clipboardHandler = GetHandler <IClipboardHandler>(); if (clipboardHandler != null) { clipboardHandler.Cut(); } }
private void menuEditCut_Click(object sender, EventArgs e) { IClipboardHandler h = this.DockPanel.ActiveContent as IClipboardHandler; if (h != null && h.CanCut) { h.Cut(); } }
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.Cut(null, null); return; } IWorkbenchWindow window = WorkbenchSingleton.Workbench.ActiveWorkbenchWindow; IClipboardHandler editable = window != null ? window.ActiveViewContent as IClipboardHandler : null; if (editable != null) { editable.Cut(); } } }
protected override void Run(IClipboardHandler editable) { editable.Cut(); }
protected override void Run(IClipboardHandler editable) { editable.Cut(); }