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;
}