Esempio n. 1
0
        private static void OnShowSkillPointsPropertyChanged(DependencyObject obj, DependencyPropertyChangedEventArgs e)
        {
            SkillsList skills = obj as SkillsList;
            Visibility vis    = (skills.ShowSkillPoints) ? Visibility.Visible : Visibility.Collapsed;

            skills.lblSkillPoints.Visibility  = vis;
            skills.SkillPointLabel.Visibility = vis;
        }
Esempio n. 2
0
        private static void OnEnableButtonsPropertyChanged(DependencyObject obj, DependencyPropertyChangedEventArgs e)
        {
            SkillsList skills = obj as SkillsList;

            foreach (var item in skills.list.Children)
            {
                if (item is SkillPanel)
                {
                    (item as SkillPanel).EnableButtons = skills.EnableButtons;
                }
            }
        }