private void OnDeleteBranche(BrancheItem branche) { if (brancheList.Contains(branche)) { brancheList.Remove(branche); } }
private BrancheItem CreateNewBranche(int id) { var branche = new BrancheItem(OnDeleteBranche, id); outPointList.Add(new ConnectionPoint(this, ConnectionPointType.Out, brancheOutPointStyle, BracheClickConnectionPoint, id)); return(branche); }