Beispiel #1
0
        public LibraryNodeContentControl(NodeControl node_control, LibraryNodeContent library_node_content)
        {
            InitializeComponent();

            this.node_control         = node_control;
            this.library_node_content = new AugmentedBindable <LibraryNodeContent>(library_node_content);

            this.DataContext = this.library_node_content;

            Focusable = true;

            this.ImageIcon.Source = Icons.GetAppIcon(Icons.BrainstormLibrary);

            TextBorder.CornerRadius = NodeThemes.corner_radius;
        }
        public override bool Equals(object obj)
        {
            LibraryNodeContent other = obj as LibraryNodeContent;

            if (null == other)
            {
                return(false);
            }

            if (library_fingerprint != other.library_fingerprint)
            {
                return(false);
            }

            return(true);
        }