/// <summary> /// Initializes a new instance of the Product class. /// </summary> /// <param name="jobstodo"></param> public Product() { Color = Colors.Red; InitializeComponent(); Result = new ProductResults() { ResultId = ProductName, Nodes = _nodes }; MouseRightButtonUp += OnMouseRightButtonUp; PropertyChanged += Product_PropertyChanged; Nodes.CollectionChanged += Nodes_CollectionChanged; }
/// <summary> /// Initializes a new instance of the Product class. /// </summary> public Product() { Color = Colors.Red; InitializeComponent(); Result = new ProductResults { ResultId = ProductName, Nodes = _nodes }; MouseRightButtonUp += OnMouseRightButtonUp; PropertyChanged += Product_PropertyChanged; Nodes.CollectionChanged += Nodes_CollectionChanged; ResourceDefinitionModel.ConsumeblesAndProducts.Add(new Consumable { Product = this }); }