Example #1
0
        private void NewButtonClick(object sender, System.Windows.RoutedEventArgs e)
        {
            var unit = new ConstraintsUnit();

            unit.DeleteButtonClicked += new Action <ConstraintsUnit>(DeleteConstraintsUnit);
            this.stackPanel.Children.Add(unit);
        }
Example #2
0
 private void DeleteConstraintsUnit(ConstraintsUnit i)
 {
     this.stackPanel.Children.Remove(i);
 }