public void getClass() { int i = 0; MethodUnit_GUI methodUnit = new MethodUnit_GUI(current_class); UserControl1 valUnit = new UserControl1(current_class); ClassData_GUI classUnit = new ClassData_GUI(current_class); Label emptyLable = new Label(); emptyLable.Content = " "; classData.Children.Insert(i++, classUnit); classData.Children.Insert(i++, valUnit); /*foreach (Unit_Value t in valUnit.unit.val) * { * Label temp = new Label(); * temp.Content = t.str_Print; * classData.Children.Insert(i++, temp); * }*/ classData.Children.Insert(i++, emptyLable); classData.Children.Insert(i++, methodUnit); /*foreach (Unit_Method t in methodUnit.unit.method) * { * Label temp = new Label(); * temp.Content = t.str_Print; * classData.Children.Insert(i++, temp); * }*/ }
private void modifyMethod_Click(object sender, RoutedEventArgs e) { classData.Children.Clear(); int i = 0; MethodUnit_GUI methodUnit = new MethodUnit_GUI(current_class); Label emptyLable = new Label(); emptyLable.Content = " "; classData.Children.Insert(i++, methodUnit); classData.Children.Insert(i++, emptyLable); foreach (Unit_Method t in methodUnit.unit.method) { Label temp = new Label(); temp.Content = t.str_Print; classData.Children.Insert(i++, temp); } }