public CryptoLineView(ConnectionModel model, ConnectorVisual source, ConnectorVisual target) { // TODO: Complete member initialization //Add connection to statistics: ComponentConnectionStatistics.IncrementConnectionUsage(source.Model.PluginModel.PluginType, source.Model.GetName(), target.Model.PluginModel.PluginType, target.Model.GetName()); Editor = (EditorVisual)model.WorkspaceModel.MyEditor.Presentation; InitializeComponent(); Canvas.SetZIndex(this, -1); this.Model = model; this.Source = source; this.Target = target; Line = new InternalCryptoLineView(model, source, target, Editor.VisualCollection, Editor.VisualsHelper); Line.SetBinding(InternalCryptoLineView.StartPointProperty, WorkspaceManager.View.Base.Util.CreateConnectorBinding(source, this)); Line.SetBinding(InternalCryptoLineView.EndPointProperty, WorkspaceManager.View.Base.Util.CreateConnectorBinding(target, this)); Editor.ItemsSelected += new EventHandler <SelectedItemsEventArgs>(itemsSelected); Line.ComputationDone += new EventHandler <ComputationDoneEventArgs>(LineComputationDone); Source.Update += new EventHandler(Update); Target.Update += new EventHandler(Update); if (model.PointList != null) { assembleGeo(); } }