public PivotPointsUi(PivotPoints pivotPoints) { InitializeComponent(); _pivotPoints = pivotPoints; CheckBoxPaintOnOff.IsChecked = _pivotPoints.PaintOn; HostR1.Child = new TextBox(); HostR1.Child.BackColor = _pivotPoints.ColorR1; HostR2.Child = new TextBox(); HostR2.Child.BackColor = _pivotPoints.ColorR2; HostR3.Child = new TextBox(); HostR3.Child.BackColor = _pivotPoints.ColorR3; HostS1.Child = new TextBox(); HostS1.Child.BackColor = _pivotPoints.ColorS1; HostS2.Child = new TextBox(); HostS2.Child.BackColor = _pivotPoints.ColorS2; HostS3.Child = new TextBox(); HostS3.Child.BackColor = _pivotPoints.ColorS3; CheckBoxPaintOnOff.Content = OsLocalization.Charts.LabelPaintIntdicatorIsVisible; ButtonAccept.Content = OsLocalization.Charts.LabelButtonIndicatorAccept; }
public PivotPointsUi(PivotPoints pivotPoints) { InitializeComponent(); _pivotPoints = pivotPoints; CheckBoxPaintOnOff.IsChecked = _pivotPoints.PaintOn; HostR1.Child = new TextBox(); HostR1.Child.BackColor = _pivotPoints.ColorR1; HostR2.Child = new TextBox(); HostR2.Child.BackColor = _pivotPoints.ColorR2; HostR3.Child = new TextBox(); HostR3.Child.BackColor = _pivotPoints.ColorR3; HostS1.Child = new TextBox(); HostS1.Child.BackColor = _pivotPoints.ColorS1; HostS2.Child = new TextBox(); HostS2.Child.BackColor = _pivotPoints.ColorS2; HostS3.Child = new TextBox(); HostS3.Child.BackColor = _pivotPoints.ColorS3; }