/// <summary> /// Handles the connection completed event. /// When node connection control is connected to the end and completed, /// this method stores the mapping from Experiment Node Connection (model) /// to Node Connection Control (view). /// </summary> /// <param name='sender'> /// Sender. /// </param> /// <param name='e'> /// E. /// </param> private void HandleConnectionCompleted(object sender, ConnectionCompletedEventArgs e) { NodeConnectionControl connectionControl = sender as NodeConnectionControl; m_mapEdgesToControls.Add(e.ExperimentNodeConnection, connectionControl); //listener now can be removed connectionControl.ConnectionCompleted -= HandleConnectionCompleted; }