/// <summary> /// конструктор /// </summary> /// <param name="roc">индикатор для настроек</param> public RocUi(Roc roc) { InitializeComponent(); _roc = roc; TextBoxLenght.Text = _roc.Period.ToString(); HostColorBase.Child = new TextBox(); HostColorBase.Child.BackColor = _roc.ColorBase; CheckBoxPaintOnOff.IsChecked = _roc.PaintOn; CandleBox.Items.Add(PriceTypePoints.Close); CandleBox.Items.Add(PriceTypePoints.Open); CandleBox.Items.Add(PriceTypePoints.High); CandleBox.Items.Add(PriceTypePoints.Low); CandleBox.SelectedItem = _roc.TypePoint; }
/// <summary> /// constructor /// конструктор /// </summary> /// <param name="roc">configuration indicator/индикатор для настроек</param> public RocUi(Roc roc) { InitializeComponent(); _roc = roc; TextBoxLenght.Text = _roc.Period.ToString(); HostColorBase.Child = new TextBox(); HostColorBase.Child.BackColor = _roc.ColorBase; CheckBoxPaintOnOff.IsChecked = _roc.PaintOn; CandleBox.Items.Add(PriceTypePoints.Close); CandleBox.Items.Add(PriceTypePoints.Open); CandleBox.Items.Add(PriceTypePoints.High); CandleBox.Items.Add(PriceTypePoints.Low); CandleBox.SelectedItem = _roc.TypePoint; ButtonColor.Content = OsLocalization.Charts.LabelButtonIndicatorColor; CheckBoxPaintOnOff.Content = OsLocalization.Charts.LabelPaintIntdicatorIsVisible; ButtonAccept.Content = OsLocalization.Charts.LabelButtonIndicatorAccept; LabelIndicatorPeriod.Content = OsLocalization.Charts.LabelIndicatorPeriod; LabelIndicatorCandleType.Content = OsLocalization.Charts.LabelIndicatorCandleType; }