public GemmingTemplateItem(GemmingTemplates parent, GemmingTemplate template)
        {
            this.parent = parent;
            this.template = template;
            DataContext = template;
            isCustom = template.Group == "Custom";
            InitializeComponent();

            template.PropertyChanged += new System.ComponentModel.PropertyChangedEventHandler(template_PropertyChanged);

            if (isCustom) DeleteButton.Visibility = Visibility.Visible;
            else DeleteButton.Visibility = Visibility.Collapsed;
        }
예제 #2
0
        public GemmingTemplateItem(GemmingTemplates parent, GemmingTemplate template)
        {
            this.parent   = parent;
            this.template = template;
            DataContext   = template;
            isCustom      = template.Group == "Custom";
            InitializeComponent();

            template.PropertyChanged += new System.ComponentModel.PropertyChangedEventHandler(template_PropertyChanged);

            if (isCustom)
            {
                DeleteButton.Visibility = Visibility.Visible;
            }
            else
            {
                DeleteButton.Visibility = Visibility.Collapsed;
            }
        }