Inheritance: BcsExpressionNode
Exemplo n.º 1
0
        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;
        }
Exemplo n.º 2
0
 protected override void VisitReactant(BcsReactantNode bcsReactant)
 {
     ResolveFromParent(bcsReactant);
 }
Exemplo n.º 3
0
        protected override void VisitReactant(BcsReactantNode bcsReactant)
        {
            var item = new MenuItem() { Title = $"Reactant: {bcsReactant.Coeficient} {GetComplexFullName(bcsReactant.Complex)}" };

            AddToTree(bcsReactant, item);
        }
Exemplo n.º 4
0
 protected abstract void VisitReactant(BcsReactantNode bcsReactant);