/// <summary> /// конструктор /// </summary> public PriceOscillatorUi(PriceOscillator pO) { InitializeComponent(); _pO = pO; HostColorBase.Child = new TextBox(); HostColorBase.Child.BackColor = _pO.ColorBase; CheckBoxPaintOnOff.IsChecked = _pO.PaintOn; ComboBoxTypeSerch.Items.Add(PriceOscillatorSerchType.Persent); ComboBoxTypeSerch.Items.Add(PriceOscillatorSerchType.Punkt); ComboBoxTypeSerch.SelectedItem = _pO.TypeSerch; }
/// <summary> /// конструктор /// </summary> public PriceOscillatorUi(PriceOscillator pO) { InitializeComponent(); _pO = pO; HostColorBase.Child = new TextBox(); HostColorBase.Child.BackColor = _pO.ColorBase; CheckBoxPaintOnOff.IsChecked = _pO.PaintOn; ComboBoxTypeSerch.Items.Add(PriceOscillatorSerchType.Persent); ComboBoxTypeSerch.Items.Add(PriceOscillatorSerchType.Punkt); ComboBoxTypeSerch.SelectedItem = _pO.TypeSerch; ButtonColor.Content = OsLocalization.Charts.LabelButtonIndicatorColor; CheckBoxPaintOnOff.Content = OsLocalization.Charts.LabelPaintIntdicatorIsVisible; ButtonAccept.Content = OsLocalization.Charts.LabelButtonIndicatorAccept; LabelIndicatorType.Content = OsLocalization.Charts.LabelIndicatorType; }