/// <summary> /// конструктор /// </summary> /// <param name="adx">индикатор который будем редактировать</param> public AdxUi(Adx adx) { InitializeComponent(); _adx = adx; TextBoxLenght.Text = _adx.Lenght.ToString(); HostColorBase.Child = new TextBox(); HostColorBase.Child.BackColor = _adx.ColorBase; CheckBoxPaintOnOff.IsChecked = _adx.PaintOn; }
/// <summary> /// конструктор /// </summary> /// <param name="adx">индикатор который будем редактировать</param> public AdxUi(Adx adx) { InitializeComponent(); _adx = adx; TextBoxLenght.Text = _adx.Lenght.ToString(); HostColorBase.Child = new TextBox(); HostColorBase.Child.BackColor = _adx.ColorBase; CheckBoxPaintOnOff.IsChecked = _adx.PaintOn; ButtonColorAdx.Content = OsLocalization.Charts.LabelButtonIndicatorColor; CheckBoxPaintOnOff.Content = OsLocalization.Charts.LabelPaintIntdicatorIsVisible; ButtonAccept.Content = OsLocalization.Charts.LabelButtonIndicatorAccept; LabelIndicatorPeriod.Content = OsLocalization.Charts.LabelIndicatorPeriod; }