/// <summary> /// Handles the copy code event. /// </summary> /// <param name="view">The view.</param> /// <param name="args">The <see cref="OxyInputEventArgs"/> instance containing the event data.</param> private static void HandleCopyCode(IPlotView view, OxyInputEventArgs args) { args.Handled = true; var code = view.ActualModel.ToCode(); view.SetClipboardText(code); }
/// <summary> /// Handles the copy text report event. /// </summary> /// <param name="view">The view.</param> /// <param name="args">The <see cref="OxyInputEventArgs"/> instance containing the event data.</param> private static void HandleCopyTextReport(IPlotView view, OxyInputEventArgs args) { args.Handled = true; var text = view.ActualModel.CreateTextReport(); view.SetClipboardText(text); }
/// <summary> /// Handles the copy text report event. /// </summary> /// <param name="view">The view.</param> /// <param name="args">The <see cref="OxyInputEventArgs"/> instance containing the event data.</param> private static void HandleCopyTextReport(IPlotView view, OxyInputEventArgs args) { args.Handled = true; var text = view.ActualModel.CreateTextReport(); view.SetClipboardText(text); }
/// <summary> /// Handles the copy code event. /// </summary> /// <param name="view">The view.</param> /// <param name="args">The <see cref="OxyInputEventArgs"/> instance containing the event data.</param> private static void HandleCopyCode(IPlotView view, OxyInputEventArgs args) { args.Handled = true; var code = view.ActualModel.ToCode(); view.SetClipboardText(code); }