/// <summary> /// конструктор /// </summary> /// <param name="rsi">индикатор который будем настраивать</param> public RsiUi(Rsi rsi) { InitializeComponent(); _rsi = rsi; TextBoxLenght.Text = _rsi.Lenght.ToString(); HostColor.Child = new TextBox(); HostColor.Child.BackColor = _rsi.ColorBase; }
/// <summary> /// constructor /// конструктор /// </summary> /// <param name="rsi">configuration indicator/индикатор который будем настраивать</param> public RsiUi(Rsi rsi) { InitializeComponent(); _rsi = rsi; TextBoxLenght.Text = _rsi.Lenght.ToString(); HostColor.Child = new TextBox(); HostColor.Child.BackColor = _rsi.ColorBase; ButtonColor.Content = OsLocalization.Charts.LabelButtonIndicatorColor; ButtonAccept.Content = OsLocalization.Charts.LabelButtonIndicatorAccept; LabelIndicatorPeriod.Content = OsLocalization.Charts.LabelIndicatorPeriod; }