Inheritance: BcsExpressionNode
Beispiel #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;
        }
 protected override void VisitReactant(BcsReactantNode bcsReactant)
 {
     ResolveFromParent(bcsReactant);
 }
Beispiel #3
0
        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);