private void ClassSelectionChanged(object sender, SelectionChangedEventArgs e) { ListInit(); opList = new List <Operation>(); ClassDiagram cd = XMLUtil.GetClassDiagramByName(this.cdList, (String)this.list_class.SelectedItem); if (cd != null) { this.list_ck.Items.Add("Dit: " + cd.Dit); this.list_ck.Items.Add("Cbo: " + cd.Cbo); this.list_ck.Items.Add("Noc: " + cd.Noc); foreach (String attribute in cd.Attributes) { this.list_attribute.Items.Add(attribute); } foreach (Operation operation in cd.Operations) { this.list_operation.Items.Add(operation.Name); opList.Add(operation); } } }