/// <summary> /// конструктор /// </summary> /// <param name="bollinger">индикатор для настройки</param> public PriceChannelUi(PriceChannel bollinger) { InitializeComponent(); _bollinger = bollinger; TextBoxLenghtUp.Text = _bollinger.LenghtUpLine.ToString(); TextBoxLenghtDown.Text = _bollinger.LenghtDownLine.ToString(); HostColorUp.Child = new TextBox(); HostColorUp.Child.BackColor = _bollinger.ColorUp; HostColorDown.Child = new TextBox(); HostColorDown.Child.BackColor = _bollinger.ColorDown; CheckBoxPaintOnOff.IsChecked = _bollinger.PaintOn; }
/// <summary> /// constructor /// конструктор /// </summary> /// <param name="bollinger">configuration indicator/индикатор для настройки</param> public PriceChannelUi(PriceChannel bollinger) { InitializeComponent(); _bollinger = bollinger; TextBoxLenghtUp.Text = _bollinger.LenghtUpLine.ToString(); TextBoxLenghtDown.Text = _bollinger.LenghtDownLine.ToString(); HostColorUp.Child = new TextBox(); HostColorUp.Child.BackColor = _bollinger.ColorUp; HostColorDown.Child = new TextBox(); HostColorDown.Child.BackColor = _bollinger.ColorDown; CheckBoxPaintOnOff.IsChecked = _bollinger.PaintOn; ButtonColorUp.Content = OsLocalization.Charts.LabelButtonIndicatorColorUp; ButtonColorDown.Content = OsLocalization.Charts.LabelButtonIndicatorColorDown; CheckBoxPaintOnOff.Content = OsLocalization.Charts.LabelPaintIntdicatorIsVisible; ButtonAccept.Content = OsLocalization.Charts.LabelButtonIndicatorAccept; LabelIndicatorLongPeriod.Content = OsLocalization.Charts.LabelIndicatorLongPeriod; LabelIndicatorShortPeriod.Content = OsLocalization.Charts.LabelIndicatorShortPeriod; }