/// <summary> /// Erstellung des Venn Diagramms /// </summary> /// <param name="mengenOperation">Mengen Operation</param> private void MengenOperation(string mengenOperation) { StackPanel_Container.Children.Remove(elem); var l1 = GetCheckedBoxes("A"); var l2 = GetCheckedBoxes("B"); elem = new CirclesUI(farbeA, farbeB, mengenOperation, l1, l2); StackPanel_Container.Children.Add(elem); }
/// <summary> /// Zahlen Checkboxen werden ausgecheckt. Das Venn Diagramm wird gecleart /// </summary> /// <param name="sender">Der Button "Clear"</param> /// <param name="e"></param> private void Button_Clear(object sender, RoutedEventArgs e) { foreach (UIElement elem in Grid_A.Children) { if (elem is CheckBox check) { check.IsChecked = false; } } foreach (UIElement elem in Grid_B.Children) { if (elem is CheckBox check) { check.IsChecked = false; } } StackPanel_Container.Children.Remove(elem); elem = null; }