/// <summary> /// конструктор /// </summary> public MomentumUi(Momentum momentum) { InitializeComponent(); _momentum = momentum; TextBoxLenght.Text = _momentum.Nperiod.ToString(); HostColorBase.Child = new TextBox(); HostColorBase.Child.BackColor = _momentum.ColorBase; CheckBoxPaintOnOff.IsChecked = _momentum.PaintOn; CandleBox.Items.Add(PriceTypePoints.Close); CandleBox.Items.Add(PriceTypePoints.Open); CandleBox.Items.Add(PriceTypePoints.High); CandleBox.Items.Add(PriceTypePoints.Low); CandleBox.SelectedItem = _momentum.TypePoint; }
/// <summary> /// конструктор /// </summary> public MomentumUi(Momentum momentum) { InitializeComponent(); _momentum = momentum; TextBoxLenght.Text = _momentum.Nperiod.ToString(); HostColorBase.Child = new TextBox(); HostColorBase.Child.BackColor = _momentum.ColorBase; CheckBoxPaintOnOff.IsChecked = _momentum.PaintOn; CandleBox.Items.Add(PriceTypePoints.Close); CandleBox.Items.Add(PriceTypePoints.Open); CandleBox.Items.Add(PriceTypePoints.High); CandleBox.Items.Add(PriceTypePoints.Low); CandleBox.SelectedItem = _momentum.TypePoint; ButtonColor.Content = OsLocalization.Charts.LabelButtonIndicatorColor; LabelIndicatorCandleType.Content = OsLocalization.Charts.LabelIndicatorCandleType; CheckBoxPaintOnOff.Content = OsLocalization.Charts.LabelPaintIntdicatorIsVisible; ButtonAccept.Content = OsLocalization.Charts.LabelButtonIndicatorAccept; LabelIndicatorPeriod.Content = OsLocalization.Charts.LabelIndicatorPeriod; }