/// <summary> /// конструктор /// </summary> /// <param name="obv">индикатор для настроек</param> public OnBalanceVolumeUi(OnBalanceVolume obv) { InitializeComponent(); _obv = obv; HostColorBase.Child = new TextBox(); HostColorBase.Child.BackColor = _obv.ColorBase; CheckBoxPaintOnOff.IsChecked = _obv.PaintOn; }
/// <summary> /// конструктор /// </summary> /// <param name="obv">индикатор для настроек</param> public OnBalanceVolumeUi(OnBalanceVolume obv) { InitializeComponent(); _obv = obv; HostColorBase.Child = new TextBox(); HostColorBase.Child.BackColor = _obv.ColorBase; CheckBoxPaintOnOff.IsChecked = _obv.PaintOn; ButtonColor.Content = OsLocalization.Charts.LabelButtonIndicatorColor; CheckBoxPaintOnOff.Content = OsLocalization.Charts.LabelPaintIntdicatorIsVisible; ButtonAccept.Content = OsLocalization.Charts.LabelButtonIndicatorAccept; }