/// <summary> /// конструктор /// </summary> /// <param name="indicator">индикатор который будем редактировать</param> public KalmanFilterUi(KalmanFilter indicator) { InitializeComponent(); _indicator = indicator; TextBoxSharpness.Text = _indicator.Sharpness.ToString(); TextBoxK.Text = _indicator.K.ToString(); HostColorBase.Child = new TextBox(); HostColorBase.Child.BackColor = _indicator.ColorBase; CheckBoxPaintOnOff.IsChecked = _indicator.PaintOn; }
/// <summary> /// constructor /// конструктор /// </summary> /// <param name="indicator">configuration indicator/индикатор который будем редактировать</param> public KalmanFilterUi(KalmanFilter indicator) { InitializeComponent(); _indicator = indicator; TextBoxSharpness.Text = _indicator.Sharpness.ToString(); TextBoxK.Text = _indicator.K.ToString(); HostColorBase.Child = new TextBox(); HostColorBase.Child.BackColor = _indicator.ColorBase; CheckBoxPaintOnOff.IsChecked = _indicator.PaintOn; CheckBoxPaintOnOff.Content = OsLocalization.Charts.LabelPaintIntdicatorIsVisible; ButtonAccept.Content = OsLocalization.Charts.LabelButtonIndicatorAccept; ButtonColorAdx.Content = OsLocalization.Charts.LabelButtonIndicatorColor; }