//Display /// <summary> /// Adapt the method called when clicking on a component of the VisualPart for every components /// </summary> /// <returns> views as in a technical drawing, key : name of the view </returns> public Dictionary<string, VPPanel> Display() { Action<object> RuleSelected = SelectPiece; Rule selection = new Rule(RuleSelected, new OrderedDictionary() { { "sender", null } }, typeof(EventHandler), typeof(VisualPart)); this.selection = selection; foreach (string ref_piece in pieces.Keys) { VisualPart current = pieces[ref_piece].Item1; current.ChangeEventHandler(selection); } return Views; }