BcsExplorerDemo.Controls.GridHelper.CreateReactantGrid C# (CSharp) Метод

CreateReactantGrid() публичный статический Метод

public static CreateReactantGrid ( BcsReactantNode reactant ) : Grid
reactant BcsResolver.Parser.BcsReactantNode
Результат System.Windows.Controls.Grid
        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;
        }