Exemplo n.º 1
0
        private void Button_Click_Remove_Grad(object sender, RoutedEventArgs e)
        {
            CriterionForm       parent     = (sender as ButtonWithParent).criterionParent;
            GradationWithButton gradParent = (sender as ButtonWithParent).gradationParent;

            parent.betweenSP.Children.Remove(parent.gradationsList[parent.gradationsList.IndexOf(gradParent)].line);
            parent.gradationsList.Remove(gradParent);
        }
Exemplo n.º 2
0
 public ButtonWithParent(CriterionForm criterionParent, GradationWithButton gradationParent)
 {
     this.Style           = (Style)Application.Current.Resources["Buttons"];
     this.criterionParent = criterionParent;
     this.gradationParent = gradationParent;
 }