public ComboHorizontal(Boite _leftBox, Boite _rightBox) { leftBox = new Boite(); rigthBox = new Boite(); leftBox.Copy(ref _leftBox); rigthBox.Copy(ref _rightBox); Height = Math.Max(leftBox.Height, rigthBox.Height); Width = leftBox.Width + 1 + rigthBox.Width; Text = CombineHorizontalText(); }
public ComboVertical(Boite _topBox, Boite _bottomBox) { topBox = new Boite(); bottomBox = new Boite(); topBox.Copy(ref _topBox); bottomBox.Copy(ref _bottomBox); Height = topBox.Height + 1 + bottomBox.Height; Width = Math.Max(topBox.Width, bottomBox.Width); EqualizeLength(); Text = CombineVeticalText(); }