private void CreateDiagramShape(OperationType operationType)
        {
            var shape = default(RadDiagramShape);

            switch (operationType)
            {
            case OperationType.Pipette:
                shape = new PipetteDiagramShape();
                break;

            case OperationType.Centrifugation:
                shape = new CentrifugationDiagramShape();
                break;

            case OperationType.Incubation:
                shape = new IncubationDiagramShape();
                break;

            case OperationType.MagneticSeparation:
                shape = new MagneticSeparationDiagramShape();
                break;
            }

            radDiagram1.AddShape(shape);
        }
        protected override RadDiagramShape CreateDiagramShape(PreviewDragStartEventArgs e)
        {
            var sourceItem = e.DragInstance as DiagramListViewVisualItem;
            var dataItem   = sourceItem?.Data as DiagramListViewDataItem;

            var shape = default(WorkflowCaptureDiagramShape);

            switch (dataItem.Key)
            {
            case "Pipette":
                shape = new PipetteDiagramShape();
                break;

            case "Incubation":
                shape = new IncubationDiagramShape();
                break;

            case "Centrifugation":
                shape = new CentrifugationDiagramShape();
                break;

            case "Magnetic\r\nSeparation":
                shape = new MagneticSeparationDiagramShape();
                break;
            }

            return(shape);
        }