public static Grid CreateReactantGrid(BcsReactantNode reactant) { var grid = new Grid { Background = Brushes.AliceBlue }; AddColumnControlToGrid(grid, new Label { Content = reactant.Coeficient, VerticalContentAlignment = VerticalAlignment.Center, HorizontalAlignment = HorizontalAlignment.Center, FontSize = 20, FontWeight = FontWeights.Bold, Background = Brushes.LawnGreen, }); AddColumnControlToGrid(grid, CreateComplexGrid(reactant.Complex)); return grid; }
protected override void VisitReactant(BcsReactantNode bcsReactant) { ResolveFromParent(bcsReactant); }
protected override void VisitReactant(BcsReactantNode bcsReactant) { var item = new MenuItem() { Title = $"Reactant: {bcsReactant.Coeficient} {GetComplexFullName(bcsReactant.Complex)}" }; AddToTree(bcsReactant, item); }
protected abstract void VisitReactant(BcsReactantNode bcsReactant);