Beispiel #1
0
 public Task InvokeAsync()
 {
     try {
         PlotClipboardData.ToClipboard(VisualComponent.Device.DeviceId, VisualComponent.Device.ActivePlot.PlotId, _cut);
     } catch (ExternalException ex) {
         InteractiveWorkflow.Shell.ShowErrorMessage(ex.Message);
     }
     return(Task.CompletedTask);
 }
        public override Task InvokeAsync()
        {
            var selection = VisualComponent.SelectedPlots.ToList();

            if (selection.Count > 0)
            {
                try {
                    PlotClipboardData.ToClipboard(selection);
                } catch (ExternalException ex) {
                    InteractiveWorkflow.Shell.ShowErrorMessage(ex.Message);
                }
            }
            return(Task.CompletedTask);
        }