Наследование: BcsExpressionNode
Пример #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;
        }
Пример #2
0
 protected override void VisitReactant(BcsReactantNode bcsReactant)
 {
     ResolveFromParent(bcsReactant);
 }
Пример #3
0
        protected override void VisitReactant(BcsReactantNode bcsReactant)
        {
            var item = new MenuItem() { Title = $"Reactant: {bcsReactant.Coeficient} {GetComplexFullName(bcsReactant.Complex)}" };

            AddToTree(bcsReactant, item);
        }
Пример #4
0
 protected abstract void VisitReactant(BcsReactantNode bcsReactant);